Path slash fix test
This commit is contained in:
parent
42cd90462d
commit
1e526fa5a0
@ -5,8 +5,8 @@ import os
|
|||||||
|
|
||||||
|
|
||||||
print('################\n\n', os.listdir('scripts/'), "\n\n###############")
|
print('################\n\n', os.listdir('scripts/'), "\n\n###############")
|
||||||
model = mlflow.pyfunc.load_model(
|
model = mlflow.pyfunc.load_model('/mlruns/13/da5c6167bb45403fa35569849a1fbc13/artifacts/model')
|
||||||
'mlruns/13/da5c6167bb45403fa35569849a1fbc13/artifacts/model')
|
|
||||||
with open('mlruns/13/da5c6167bb45403fa35569849a1fbc13/artifacts/model/input_example.json') as f:
|
with open('/mlruns/13/da5c6167bb45403fa35569849a1fbc13/artifacts/model/input_example.json') as f:
|
||||||
data = np.array([json.load(f)['inputs'][0]], dtype=np.float64)
|
data = np.array([json.load(f)['inputs'][0]], dtype=np.float64)
|
||||||
print(f"Predicted values: {model.predict(data.reshape(-1, 2))}")
|
print(f"Predicted values: {model.predict(data.reshape(-1, 2))}")
|
||||||
|
Loading…
Reference in New Issue
Block a user