ium_444501/s444356.py
s444501 0f5edfcc26
All checks were successful
s444501-training/pipeline/head This commit looks good
s444501-evaluation/pipeline/head This commit looks good
mlflow
2022-05-13 02:39:21 +02:00

13 lines
366 B
Python

import json
import mlflow
import numpy as np
model = mlflow.pyfunc.load_model('mlruns/1/4b83e774512444188fb587288818c298/artifacts/model')
with open('input_example.json') as file:
data = json.load(file)
input_example = np.array([data['inputs'][0]]).reshape(-1, 2)
print('Predictions:')
for pred in model.predict(input_example):
print(pred)