mlflow attempt task 2 prediction
This commit is contained in:
parent
e9ebc9a95b
commit
484aa77a51
@ -14,5 +14,5 @@ model =mlflow.pyfunc.load_model(f"{PATH}")
|
||||
with open(f'{PATH}{input}', 'r') as file:
|
||||
json_data = json.load(file)
|
||||
|
||||
print(f"Input: {json_data['inputs'][0]}")
|
||||
print(f"Prediction: {model.predict(np.array([json_data['inputs'][0]], dtype=np.float32))}")
|
||||
print(f"Input: {json_data['inputs']}")
|
||||
print(f"Prediction: {model.predict(np.array([json_data['inputs']], dtype=np.float32))}")
|
Loading…
Reference in New Issue
Block a user