predict registry
All checks were successful
s444417-training/pipeline/head This commit looks good
s444417-evaluation/pipeline/head This commit looks good

This commit is contained in:
s444417 2022-05-15 10:56:11 +02:00
parent 329240227d
commit ded8277c27

View File

@ -24,7 +24,7 @@ model = mlflow.pyfunc.load_model(registry_path)
with open(f'{registry_path}/input_example.json') as f:
input_example_data = json.load(f)
input_example = np.array(input_example_data['inputs']).reshape(-1, 8)
input_example = np.array(input_example_data['inputs'])
print(f'Input: {input_example}')
print(f'Prediction: {model.predict(input_example)}')