<?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 Error in automl.regress in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129820#M4256</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm running example notebook from&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/machine-learning/automl/regression-train-api" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/machine-learning/automl/regression-train-api&lt;/A&gt;&amp;nbsp;on a node with ML cluster&amp;nbsp;17.0 (includes Apache Spark 4.0.0, Scala 2.13) and getting error at&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; databricks &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; automl&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;summary &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; automl.&lt;/SPAN&gt;&lt;SPAN&gt;regress&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dataset&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;train_pdf, &lt;/SPAN&gt;&lt;SPAN&gt;target_col&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"MedHouseVal"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;timeout_minutes&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;TypeError: &lt;/SPAN&gt;Retry.__init__() got an unexpected keyword argument 'method_whitelist'&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;File &lt;SPAN class=""&gt;&lt;A target="_blank"&gt;&amp;lt;command-910054366217001&amp;gt;&lt;/A&gt;, line 2&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;databricks&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt; automl &lt;SPAN class=""&gt;----&amp;gt; 2&lt;/SPAN&gt; summary &lt;SPAN&gt;=&lt;/SPAN&gt; automl&lt;SPAN&gt;.&lt;/SPAN&gt;regress(dataset&lt;SPAN&gt;=&lt;/SPAN&gt;train_pdf, target_col&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;MedHouseVal&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;, timeout_minutes&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="staskh_0-1756215619847.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19387i990C1196830C0179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="staskh_0-1756215619847.png" alt="staskh_0-1756215619847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas/recommendations why and how to fix it?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stas&lt;/P&gt;</description>
    <pubDate>Tue, 26 Aug 2025 13:41:04 GMT</pubDate>
    <dc:creator>staskh</dc:creator>
    <dc:date>2025-08-26T13:41:04Z</dc:date>
    <item>
      <title>Error in automl.regress</title>
      <link>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129820#M4256</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm running example notebook from&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/machine-learning/automl/regression-train-api" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/machine-learning/automl/regression-train-api&lt;/A&gt;&amp;nbsp;on a node with ML cluster&amp;nbsp;17.0 (includes Apache Spark 4.0.0, Scala 2.13) and getting error at&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; databricks &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; automl&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;summary &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; automl.&lt;/SPAN&gt;&lt;SPAN&gt;regress&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dataset&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;train_pdf, &lt;/SPAN&gt;&lt;SPAN&gt;target_col&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"MedHouseVal"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;timeout_minutes&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;TypeError: &lt;/SPAN&gt;Retry.__init__() got an unexpected keyword argument 'method_whitelist'&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;File &lt;SPAN class=""&gt;&lt;A target="_blank"&gt;&amp;lt;command-910054366217001&amp;gt;&lt;/A&gt;, line 2&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;databricks&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt; automl &lt;SPAN class=""&gt;----&amp;gt; 2&lt;/SPAN&gt; summary &lt;SPAN&gt;=&lt;/SPAN&gt; automl&lt;SPAN&gt;.&lt;/SPAN&gt;regress(dataset&lt;SPAN&gt;=&lt;/SPAN&gt;train_pdf, target_col&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;MedHouseVal&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;, timeout_minutes&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="staskh_0-1756215619847.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19387i990C1196830C0179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="staskh_0-1756215619847.png" alt="staskh_0-1756215619847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas/recommendations why and how to fix it?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stas&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 13:41:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129820#M4256</guid>
      <dc:creator>staskh</dc:creator>
      <dc:date>2025-08-26T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in automl.regress</title>
      <link>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129829#M4257</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/135375"&gt;@staskh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the error, it looks related to the urllib3 library (used by requests), which Databricks AutoML relies on under the hood. The method_whitelist parameter was deprecated and removed starting from urllib3==1.26.0. As far as I know, databricks-automl is pulling in a later version, which causes the issue.&lt;/P&gt;&lt;P&gt;Can you try manually installing an earlier version of urllib3, for example:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%pip install "urllib3==1.25.11"
dbutils.library.restartPython()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then re-run the code.&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;If that doesn’t work, try installing:&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%pip install "requests==2.26.0" "urllib3==1.26.2"
dbutils.library.restartPython()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;and see if it resolves the problem.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hope that helps. Let me know how it goes, we can try something else if needed.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Ilir&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 15:10:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129829#M4257</guid>
      <dc:creator>ilir_nuredini</dc:creator>
      <dc:date>2025-08-26T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in automl.regress</title>
      <link>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129913#M4261</link>
      <description>&lt;P&gt;&lt;EM&gt;Ilir, greetings!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;EM&gt; you for a prompt response. Unfortunately, none of the suggested solutions works. I checked with Genie:&lt;BR /&gt;"The error occurs because databricks-automl is not available for Databricks Runtime 17.0.x. Databricks AutoML is not supported on this runtime version. You cannot install or use databricks-automl on 17.0.x clusters."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It seems correct, as I got AutoML working as expected once I switched to the 16.4 ML runtime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Stas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 14:10:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129913#M4261</guid>
      <dc:creator>staskh</dc:creator>
      <dc:date>2025-08-27T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error in automl.regress</title>
      <link>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129914#M4262</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/135375"&gt;@staskh&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Awesome, great you managed to solve it!&lt;BR /&gt;&lt;BR /&gt;Best, Ilir&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 14:12:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-in-automl-regress/m-p/129914#M4262</guid>
      <dc:creator>ilir_nuredini</dc:creator>
      <dc:date>2025-08-27T14:12:39Z</dc:date>
    </item>
  </channel>
</rss>

