stop tracking imdb_movies.csv
This commit is contained in:
parent
fad0251a1c
commit
4588dc909d
23007
imdb_movies.csv
23007
imdb_movies.csv
File diff suppressed because one or more lines are too long
21
lab09_02_predict.py
Normal file
21
lab09_02_predict.py
Normal file
@ -0,0 +1,21 @@
|
||||
import json
|
||||
import mlflow
|
||||
import pandas as pd
|
||||
|
||||
import mlflow.pyfunc
|
||||
|
||||
model_name = "country_vaccination"
|
||||
stage = '1'
|
||||
|
||||
model = mlflow.pyfunc.load_model(
|
||||
model_uri=f"models:/{model_name}/{stage}"
|
||||
)
|
||||
|
||||
|
||||
with open('country_vaccination/input_example.json', 'r') as datafile:
|
||||
data = json.load(datafile)
|
||||
example_input = data["inputs"]
|
||||
|
||||
input_dictionary = {i : x for i, x in enumerate(example_input) }
|
||||
input_ex = pd.DataFrame(input_dictionary, index=[0])
|
||||
print(model.predict(input_ex))
|
Loading…
Reference in New Issue
Block a user