reshape
This commit is contained in:
parent
bcaba678d3
commit
f5175a9517
@ -24,7 +24,7 @@ model = mlflow.pyfunc.load_model(registry_path)
|
|||||||
with open(f'{registry_path}/input_example.json') as f:
|
with open(f'{registry_path}/input_example.json') as f:
|
||||||
input_example_data = json.load(f)
|
input_example_data = json.load(f)
|
||||||
|
|
||||||
input_example = np.array(input_example_data['inputs']).reshape(-1, 1)
|
input_example = np.array(input_example_data['inputs']).reshape(-1,)
|
||||||
|
|
||||||
print(f'Input: {input_example}')
|
print(f'Input: {input_example}')
|
||||||
print(f'Prediction: {model.predict(input_example)}')
|
print(f'Prediction: {model.predict(input_example)}')
|
Loading…
Reference in New Issue
Block a user