cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

ModuleNotFoundError: No module named 'databricks.feature_store.mlflow_model'

SOlivero
New Contributor III

I'm using runtime DBR 12.2 LTS ML
Getting this error when running. 

 

import mlflow
logged_model = 'runs:/.../model' #my run id

# Load model as a PyFuncModel.
loaded_model = mlflow.pyfunc.load_model(logged_model)

# Predict on a Pandas DataFrame.
import pandas as pd
loaded_model.predict(pd.DataFrame(data))

 


 

7 REPLIES 7

SOlivero
New Contributor III

In mi logged model the MLModel has the following flavor:

flavors:
  python_function:
    data: data/feature_store
    env:
      conda: conda.yaml
      virtualenv: python_env.yaml
    loader_module: databricks.feature_store.mlflow_model
    python_version: 3.9.5

I think here is where the problem is, but I don't know how to solve it 

Kumaran
Databricks Employee
Databricks Employee

Hi @SOlivero,

Thank you for posting the question in Databricks community.

Please share with us the error message for further analysis.

hollybaker354
New Contributor II

Hi @SOlivero I'm having the same issue, have you found a solution?

hollybaker354
New Contributor II

hollybaker354_0-1692267918824.png

 

Kumaran
Databricks Employee
Databricks Employee

Hi @hollybaker354 and @SOlivero,

Thank you for the reply.

Can you check by setting the maxDepth to the default value and let us know how it works?

Kumaran
Databricks Employee
Databricks Employee

Hi @SOlivero and @hollybaker354,

Can you check by setting the maxDepth to the default value and see how it works?

x_y
New Contributor II

hi @Kumaran 

Could you please let me know where to set the "maxDepth" to the default value? What do you mean?

I'm having the same issue. Below please see the error, the artifacts of the logged model, and how I logged the model with feature store.

fs.log_model()fs.log_model()error messageerror messagelog_model artifactslog_model artifacts

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group