Forum Discussion
Unable to load ML model
I've tried over the past couple of days to get ML models working in Fabric Notebooks with MLFlow using the MS Learn document here. 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:
"RuntimeError: Unable to load model: An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext"
The model definitely exists within the same workspace I'm accessing and the call appears to work when using
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.
The main issue I had was using this particular function:
from synapse.ml.predict import MLFlowTransformer
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:
Fabric Data Science Sales Forecasting: Predict sales numbers for product categories at a superstore. (youtube.com)
6 Replies
- AnonymousNot applicable
Hi abm_chris ,
Thanks for using Fabric Community.
At this time, we are reaching out to the internal team to get some help on this .
We will update you once we hear back from them.- abm_chrisAdvocate I
The main issue I had was using this particular function:
from synapse.ml.predict import MLFlowTransformer
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:
Fabric Data Science Sales Forecasting: Predict sales numbers for product categories at a superstore. (youtube.com)- AnonymousNot applicable
Hi abm_chris ,
I am unable to understand your previous reply and was just checking back to see if you have a resolution yet .
Thank you