Zaktualizuj 'lab_09_predict_coop.py'
This commit is contained in:
parent
fc75b12246
commit
3abf59d624
@ -12,10 +12,10 @@ model = mlflow.pyfunc.load_model(
|
|||||||
model_uri=f"models:/{model_name}/{model_version}"
|
model_uri=f"models:/{model_name}/{model_version}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# with open('artifacts/model/input_example.json', 'r') as datafile:
|
with open('/tmp/mlruns/0/6be4f90846214df8913a553bc53b1019/artifacts/movies_imdb2/input_example.json', 'r') as datafile:
|
||||||
# data = json.load(datafile)
|
data = json.load(datafile)
|
||||||
# example_input = data["inputs"]
|
example_input = data["inputs"]
|
||||||
|
|
||||||
# input_dictionary = {i: x for i, x in enumerate(example_input)}
|
input_dictionary = {i: x for i, x in enumerate(example_input)}
|
||||||
# input_ex = pd.DataFrame(input_dictionary, index=[0])
|
input_ex = pd.DataFrame(input_dictionary, index=[0])
|
||||||
print(model.predict(input_example))
|
print(model.predict(input_ex))
|
||||||
|
Loading…
Reference in New Issue
Block a user