ium_434788/Zadanie_09_MLflow_Predict.py

7 lines
238 B
Python
Raw Normal View History

2021-05-23 21:42:57 +02:00
import mlflow
import pandas as pd
2021-05-23 21:55:25 +02:00
model = mlflow.keras.load_model("movies_on_streaming_platforms_model")
2021-05-23 22:03:25 +02:00
data = pd.read_json('movies_on_streaming_platforms_model/input_example.json', orient='index')
2021-05-23 21:42:57 +02:00
print(data)
print(model.predict(data))