ium_434788/Zadanie_09_MLflow_Predict.py
Dominik Strzako 817b1a7cbb wiksa
2021-05-23 23:34:36 +02:00

8 lines
185 B
Python

import mlflow
import pandas as pd
model = mlflow.keras.load_model("my_model")
data = pd.read_json('my_model/input_example.json', orient='split')
print(data)
print(model.predict(data))