<?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: Unable to load ML model in Data Science</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/4034536#M239</link>
    <description>&lt;P&gt;To restate the question, the code sample provided results in the error saying that it&amp;nbsp;&lt;SPAN&gt;cannot import name 'MLflowTransformer' from 'synapse.ml.predict'. The question is why is this and what is the proposed fix?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 11:39:57 GMT</pubDate>
    <dc:creator>LukeHe</dc:creator>
    <dc:date>2024-07-10T11:39:57Z</dc:date>
    <item>
      <title>Unable to load ML model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3977352#M202</link>
      <description>&lt;P&gt;I've tried over the past couple of days to get ML models working in Fabric Notebooks with MLFlow using the MS Learn document &lt;A href="https://learn.microsoft.com/en-us/fabric/data-science/model-scoring-predict" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;I have tried both using the transformer API as well as loading through a Lakehouse table in the UI and keep getting the same error:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"RuntimeError: Unable to load model: An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model definitely exists within the same workspace I'm accessing and the call appears to work when using&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model = MLFlowTransformer() function.&lt;BR /&gt;&lt;BR /&gt;Is there something else that I may be missing where it is erroring due to something else as I'd really like to be able to proceed with this as I've got tons of ideas I can use the platform for this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2024 14:29:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3977352#M202</guid>
      <dc:creator>abm_chris</dc:creator>
      <dc:date>2024-06-06T14:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load ML model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3979892#M206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="606434" data-lia-user-login="abm_chris" class="lia-mention lia-mention-user"&gt;abm_chris&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;At this time, we are reaching out to the internal team to get some help on this .&lt;BR /&gt;We will update you once we hear back from them.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 12:40:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3979892#M206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-07T12:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load ML model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3980072#M207</link>
      <description>&lt;P&gt;The main issue I had was using this particular function:&lt;BR /&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; synapse.ml.predict &lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; MLFlowTransformer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I've since used a different method available at the below video around 21-23 minutes which has been less troublesome and I've been able to put together what I was after:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=YZP5DWdqUYo&amp;amp;ab_channel=AzureSynapseAnalytics" target="_blank" rel="noopener"&gt;Fabric Data Science Sales Forecasting: Predict sales numbers for product categories at a superstore. (youtube.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 13:50:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3980072#M207</guid>
      <dc:creator>abm_chris</dc:creator>
      <dc:date>2024-06-07T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load ML model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3983211#M208</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="606434" data-lia-user-login="abm_chris" class="lia-mention lia-mention-user"&gt;abm_chris&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I am unable to understand your previous reply and was just checking back to see if you have a resolution yet .&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 11:28:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3983211#M208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-10T11:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load ML model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3985821#M210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="606434" data-lia-user-login="abm_chris" class="lia-mention lia-mention-user"&gt;abm_chris&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .&lt;BR /&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others . &lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help . &lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 10:39:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/3985821#M210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-11T10:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load ML model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/4034534#M238</link>
      <description>&lt;P&gt;I think what they're saying is that they've found another totally separate resource (That video link) that fixes the missing information in the documentation that's causing the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ImportError&lt;/SPAN&gt;&lt;SPAN&gt; Traceback (most recent call last) Cell &lt;/SPAN&gt;&lt;SPAN class=""&gt;In[13], line 3&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;#Test the model on new sample data points:&lt;/SPAN&gt; &lt;SPAN class=""&gt;2&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Inference with loading the logged model&lt;/SPAN&gt; &lt;SPAN class=""&gt;----&amp;gt; 3&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;synapse&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ml&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;predict&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; MLflowTransformer &lt;/SPAN&gt;&lt;SPAN class=""&gt;5&lt;/SPAN&gt;&lt;SPAN&gt; spark&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;conf&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;set(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;spark.synapse.ml.predict.enabled&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;true&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN class=""&gt;7&lt;/SPAN&gt;&lt;SPAN&gt; model &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; MLflowTransformer( &lt;/SPAN&gt;&lt;SPAN class=""&gt;8&lt;/SPAN&gt;&lt;SPAN&gt; inputCols&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;x&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;], &lt;/SPAN&gt;&lt;SPAN class=""&gt;9&lt;/SPAN&gt;&lt;SPAN&gt; outputCol&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;prediction&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;10&lt;/SPAN&gt;&lt;SPAN&gt; modelName&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;sample-sklearn&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;11&lt;/SPAN&gt;&lt;SPAN&gt; modelVersion&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;12&lt;/SPAN&gt;&lt;SPAN&gt; ) &lt;/SPAN&gt;&lt;SPAN class=""&gt;ImportError&lt;/SPAN&gt;&lt;SPAN&gt;: cannot import name 'MLflowTransformer' from 'synapse.ml.predict' (/home/trusted-service-user/cluster-env/trident_env/lib/python3.10/site-packages/synapse/ml/predict/__init__.py)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm experiencing the same error when simply following the tutorial steps exactly. I'm surprised that you've not been able to answer the initial question in a more satisfactory way (Ie, actually provide a reason and suggested resolution) especially considering this is marked as resolved when from my perspective it totally isn't.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 11:38:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/4034534#M238</guid>
      <dc:creator>LukeHe</dc:creator>
      <dc:date>2024-07-10T11:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load ML model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/4034536#M239</link>
      <description>&lt;P&gt;To restate the question, the code sample provided results in the error saying that it&amp;nbsp;&lt;SPAN&gt;cannot import name 'MLflowTransformer' from 'synapse.ml.predict'. The question is why is this and what is the proposed fix?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 11:39:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-load-ML-model/m-p/4034536#M239</guid>
      <dc:creator>LukeHe</dc:creator>
      <dc:date>2024-07-10T11:39:57Z</dc:date>
    </item>
  </channel>
</rss>

