<?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: Problems with the AutoML process in Data Science</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4130419#M287</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="709739" data-lia-user-login="RobertoNavarro" class="lia-mention lia-mention-user"&gt;RobertoNavarro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems like I forget the recently update on the spark runtime environments, they may affect all the packages usage that requires the specific environment versions.&lt;/P&gt;
&lt;P&gt;For this scenario, you can wait for the new version release or try to contact to the AutoML package dev team to update the compatibility version.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 05:35:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-03T05:35:35Z</dc:date>
    <item>
      <title>Problems with the AutoML process</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4120471#M279</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having an issue with the AutoML functionlity in Fabric (trial).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Several months ago (around 4 or 5), I followed the example provided on Microsoft Learn (&lt;A href="https://learn.microsoft.com/en-us/fabric/data-science/how-to-use-automated-machine-learning-fabric" target="_new" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-science/how-to-use-automated-machine-learning-fabric&lt;/A&gt;), and it worked perfectly. However, when I tried to execute it again a couple of months ago, I encountered issues with the FLAML library. Considering that this feature is still in preview, I decided to wait. Unfortunately, when I tested it again yesterday, I encountered the same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Import the AutoML class from the FLAML package&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; flaml &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;# Create an AutoML instance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;automl = AutoML()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And this is the error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;---------------------------------------------------------------------------&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;ImportError&lt;/SPAN&gt; Traceback (most recent call last) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cell &lt;SPAN class=""&gt;In[52], line 2&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Import the AutoML class from the FLAML package&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;----&amp;gt; 2&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;flaml&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt; AutoML &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;3&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;# Create an AutoML instance&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;4&lt;/SPAN&gt;&amp;nbsp;automl &lt;SPAN class=""&gt;=&lt;/SPAN&gt; AutoML()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;ImportError&lt;/SPAN&gt;: cannot import name 'AutoML' from 'flaml' (unknown location)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have tried different options, but none worked for me, do you have any idea...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Aug 2024 09:57:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4120471#M279</guid>
      <dc:creator>RobertoNavarro</dc:creator>
      <dc:date>2024-08-27T09:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoML process</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4121711#M280</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="709739" data-lia-user-login="RobertoNavarro" class="lia-mention lia-mention-user"&gt;RobertoNavarro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems like the import package operation failed before processing, have you tried to use %pip command to inline install the library to the notebook?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/library-management#manage-python-public-libraries-through-inline-installation" target="_blank"&gt;Manage Apache Spark libraries - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In addition, you can also try attach this library to the environment or upload the library package.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/environment-manage-library" target="_blank"&gt;Library management in Fabric environments - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 02:10:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4121711#M280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-28T02:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoML process</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4122286#M281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your question, yes, I have tried using pip with various options—upgrading, installing, and uninstalling/reinstalling the library. I’ve also created a new environment and manually included the library, but the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I exported and executed the notebook in a Conda environment on my laptop, and it worked perfectly. Interestingly, when I run the following commands:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; flaml&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; inspect&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;(inspect.getmembers(flaml, inspect.isclass)) &lt;SPAN class=""&gt;# Lists all classes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;(inspect.getmembers(flaml, inspect.isfunction)) &lt;SPAN class=""&gt;# Lists all functions&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Fabric:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;[]&lt;/SPAN&gt; &lt;SPAN class=""&gt;[]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Conda:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;[(&lt;SPAN class=""&gt;'AutoML'&lt;/SPAN&gt;, &amp;lt;&lt;SPAN class=""&gt;class&lt;/SPAN&gt; &lt;SPAN class=""&gt;'flaml.automl.automl.AutoML'&lt;/SPAN&gt;&amp;gt;), (&lt;SPAN class=""&gt;'AutoVW'&lt;/SPAN&gt;, &amp;lt;&lt;SPAN class=""&gt;class&lt;/SPAN&gt; &lt;SPAN class=""&gt;'flaml.onlineml.autovw.AutoVW'&lt;/SPAN&gt;&amp;gt;), (&lt;SPAN class=""&gt;'BlendSearch'&lt;/SPAN&gt;, &amp;lt;&lt;SPAN class=""&gt;class&lt;/SPAN&gt; &lt;SPAN class=""&gt;'flaml.tune.searcher.blendsearch.BlendSearch'&lt;/SPAN&gt;&amp;gt;), (&lt;SPAN class=""&gt;'BlendSearchTuner'&lt;/SPAN&gt;, &amp;lt;&lt;SPAN class=""&gt;class&lt;/SPAN&gt; &lt;SPAN class=""&gt;'flaml.tune.searcher.blendsearch.BlendSearchTuner'&lt;/SPAN&gt;&amp;gt;), (&lt;SPAN class=""&gt;'CFO'&lt;/SPAN&gt;, &amp;lt;&lt;SPAN class=""&gt;class&lt;/SPAN&gt; &lt;SPAN class=""&gt;'flaml.tune.searcher.blendsearch.CFO'&lt;/SPAN&gt;&amp;gt;), (&lt;SPAN class=""&gt;'FLOW2'&lt;/SPAN&gt;, &amp;lt;&lt;SPAN class=""&gt;class&lt;/SPAN&gt; &lt;SPAN class=""&gt;'flaml.tune.searcher.flow2.FLOW2'&lt;/SPAN&gt;&amp;gt;), (&lt;SPAN class=""&gt;'RandomSearch'&lt;/SPAN&gt;, &amp;lt;&lt;SPAN class=""&gt;class&lt;/SPAN&gt; &lt;SPAN class=""&gt;'flaml.tune.searcher.blendsearch.RandomSearch'&lt;/SPAN&gt;&amp;gt;)]&lt;/DIV&gt;&lt;DIV class=""&gt;[]&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if this is helpful...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another point that I mentioned in my previous message, I ran this notebook in Fabric about 4 or 5 months ago, and it worked perfectly back then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 08:04:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4122286#M281</guid>
      <dc:creator>RobertoNavarro</dc:creator>
      <dc:date>2024-08-28T08:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoML process</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4124383#M284</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="709739" data-lia-user-login="RobertoNavarro" class="lia-mention lia-mention-user"&gt;RobertoNavarro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;According to the result, it seems like these package havn't initialized correctly in fabric environment and Conda environment works well.&lt;/P&gt;
&lt;P&gt;If this works at previous, I suppose they may relate to the package update and it seems not compatible with the version that fabric supported. (normally the notebook environment library not update immediately followed the packages and it will keep use the most popular stable versions)&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 07:13:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4124383#M284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-29T07:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoML process</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4124922#M285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that I have found a possible answer, if I execute help(modules) among all the output, I have got this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;****** AutoML Prerequisites ****** &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AutoML requires an Apache Spark pool (version 2.4) in your Azure Synapse Analytics workspace. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You are using a Spark 3.x pool, please use Spark 2.x pool. For details, see: &lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/synapse-analytics/machine-learning/tutorial-automl#prerequisites" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/azure/synapse-analytics/machine-learning/tutorial-automl#prerequisites&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in this webpage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Warning&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Effective September 29, 2023, Azure Synapse will discontinue official support for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-24-runtime" target="_blank" rel="noopener"&gt;Spark 2.4 Runtimes&lt;/A&gt;. Post September 29, 2023, we will not be addressing any support tickets related to Spark 2.4. There will be no release pipeline in place for bug or security fixes for Spark 2.4. Utilizing Spark 2.4 post the support cutoff date is undertaken at one's own risk. We strongly discourage its continued use due to potential security and functionality concerns.&lt;/LI&gt;&lt;LI&gt;As part of the deprecation process for Apache Spark 2.4, we would like to notify you that AutoML in Azure Synapse Analytics will also be deprecated. This includes both the low code interface and the APIs used to create AutoML trials through code.&lt;/LI&gt;&lt;LI&gt;Please note that AutoML functionality was exclusively available through the Spark 2.4 runtime.&lt;/LI&gt;&lt;LI&gt;For customers who wish to continue leveraging AutoML capabilities, we recommend saving your data into your Azure Data Lake Storage Gen2 (ADLSg2) account. From there, you can seamlessly access the AutoML experience through Azure Machine Learning (AzureML). Further information regarding this workaround is available&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/synapse-analytics/machine-learning/access-data-from-aml" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So I think that this feature of AutoML cannot be use either in fabric regarding that the underlying engine is Synapse Spark Pools, is this correct?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 11:30:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4124922#M285</guid>
      <dc:creator>RobertoNavarro</dc:creator>
      <dc:date>2024-08-29T11:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoML process</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4129285#M286</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any comment about this? I have received a couple of e-mails about if this issue is closed, but I don't have a solution, is it necessary more time to analize the problem from your side?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards and thanks for your support&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 09:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4129285#M286</guid>
      <dc:creator>RobertoNavarro</dc:creator>
      <dc:date>2024-09-02T09:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoML process</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4130419#M287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="709739" data-lia-user-login="RobertoNavarro" class="lia-mention lia-mention-user"&gt;RobertoNavarro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems like I forget the recently update on the spark runtime environments, they may affect all the packages usage that requires the specific environment versions.&lt;/P&gt;
&lt;P&gt;For this scenario, you can wait for the new version release or try to contact to the AutoML package dev team to update the compatibility version.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 05:35:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Problems-with-the-AutoML-process/m-p/4130419#M287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-03T05:35:35Z</dc:date>
    </item>
  </channel>
</rss>

