ium_444356/registry.py
Maciej Czajka defc9740dd
All checks were successful
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head This commit looks good
update dockerfile, add jenkinsfile_registry, registry.py
2022-05-11 20:49:26 +02:00

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))}')