<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disable mlflow autologging in a helper notebook in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/disable-mlflow-autologging-in-a-helper-notebook/m-p/100410#M8813</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mlflow.&lt;/SPAN&gt;&lt;SPAN&gt;autolog&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;disable&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;silent&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;) fixes the printing. But my other problem with setting autologging back to previous state is still unsolved. I can't find any information about that problem in the docs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 29 Nov 2024 09:42:29 GMT</pubDate>
    <dc:creator>invalidargument</dc:creator>
    <dc:date>2024-11-29T09:42:29Z</dc:date>
    <item>
      <title>Disable mlflow autologging in a helper notebook</title>
      <link>https://community.databricks.com/t5/get-started-discussions/disable-mlflow-autologging-in-a-helper-notebook/m-p/100401#M8811</link>
      <description>&lt;P&gt;We have a helper function that uses a sklearn estimator. We don't want to to be logged to mlflow.&lt;/P&gt;&lt;P&gt;I can do&lt;/P&gt;&lt;P&gt;def myfunc():&lt;BR /&gt;&amp;nbsp; &amp;nbsp; import mlflow&lt;BR /&gt;&amp;nbsp; &amp;nbsp; with mlflow.autolog.ignore:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # train model&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # use model&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return predictions&lt;BR /&gt;But&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get info prints:&lt;BR /&gt;2024/11/29 08:33:05 INFO mlflow.tracking.fluent: Autologging successfully enabled for statsmodels.&lt;BR /&gt;2024/11/29 08:33:06 INFO mlflow.tracking.fluent: Autologging successfully enabled for sklearn.&lt;BR /&gt;2. I will change the state of autologging to True, even if the user had it to autologging = False before calling myfunc()&lt;/P&gt;&lt;P&gt;How can I solve this? Can I get state of autologging somehow so I can set it back? How to supress info prints?&lt;/P&gt;&lt;P&gt;It would be nice if something like this would be supported, but I cant find anything&lt;BR /&gt;def myfunc():&lt;BR /&gt;&amp;nbsp; &amp;nbsp; import mlflow&lt;BR /&gt;&amp;nbsp; &amp;nbsp; with mlflow.autolog.ignore:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # train model&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # use model&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return predictions&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 08:42:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/disable-mlflow-autologging-in-a-helper-notebook/m-p/100401#M8811</guid>
      <dc:creator>invalidargument</dc:creator>
      <dc:date>2024-11-29T08:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Disable mlflow autologging in a helper notebook</title>
      <link>https://community.databricks.com/t5/get-started-discussions/disable-mlflow-autologging-in-a-helper-notebook/m-p/100404#M8812</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/31193"&gt;@invalidargument&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to the below doc.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/mlflow/databricks-autologging.html#disable-databricks-autologging" target="_blank"&gt;https://docs.databricks.com/en/mlflow/databricks-autologging.html#disable-databricks-autologging&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 09:00:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/disable-mlflow-autologging-in-a-helper-notebook/m-p/100404#M8812</guid>
      <dc:creator>MuthuLakshmi</dc:creator>
      <dc:date>2024-11-29T09:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Disable mlflow autologging in a helper notebook</title>
      <link>https://community.databricks.com/t5/get-started-discussions/disable-mlflow-autologging-in-a-helper-notebook/m-p/100410#M8813</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mlflow.&lt;/SPAN&gt;&lt;SPAN&gt;autolog&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;disable&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;silent&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;) fixes the printing. But my other problem with setting autologging back to previous state is still unsolved. I can't find any information about that problem in the docs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Nov 2024 09:42:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/disable-mlflow-autologging-in-a-helper-notebook/m-p/100410#M8813</guid>
      <dc:creator>invalidargument</dc:creator>
      <dc:date>2024-11-29T09:42:29Z</dc:date>
    </item>
  </channel>
</rss>

