ium_434788/Zadanie_09_MLflow_Predict.py
Dominik Strzako a852eae163 Predict?
2021-05-23 21:42:57 +02:00

7 lines
184 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='index')
print(data)
print(model.predict(data))