ium_434695/predict434788.py

8 lines
174 B
Python
Raw Normal View History

2021-05-23 23:02:17 +02:00
import mlflow
import pandas as pd
model = mlflow.keras.load_model("my_model")
2021-05-23 23:21:33 +02:00
data = pd.read_json('my_model/input_example.json', orient='index')
2021-05-23 23:02:17 +02:00
2021-05-23 23:21:33 +02:00
print(model.predict(data))