9 lines
297 B
Python
9 lines
297 B
Python
import mlflow
|
|
logged_model = '/mlruns/12/1c2b9737c0204b0ca825811c35fb6c64/artifacts/s444409'
|
|
|
|
# Load model as a PyFuncModel.
|
|
loaded_model = mlflow.pyfunc.load_model(logged_model)
|
|
|
|
# Predict on a Pandas DataFrame.
|
|
import pandas as pd
|
|
print(f'Prediction: {loaded_model.predict(pd.DataFrame(data))}') |