Zaktualizuj 'train-mlflow.py'
This commit is contained in:
parent
05a03711d7
commit
c71170ef92
@ -103,9 +103,12 @@ def my_main(epochs):
|
||||
siganture = pd.DataFrame(X_training, y_predicted_train)
|
||||
tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme
|
||||
|
||||
mlflow.pytorch.log_model(model, "model", registered_model_name="s478815", signature=siganture, input_example=input_example)
|
||||
|
||||
torch.save(model, "model.pkl")
|
||||
if tracking_url_type_store != "file":
|
||||
mlflow.pytorch.log_model(model, "model", registered_model_name="s478815", signature=siganture,
|
||||
input_example=input_example)
|
||||
else:
|
||||
mlflow.pytorch.log_model(model, "model", signature=siganture, input_example=input_example)
|
||||
mlflow.pytorch.save_model(model, "model", signature=siganture, input_example=input_example)
|
||||
|
||||
rmse = mean_squared_error(y_testing, y_predicted)
|
||||
#print(rmse)
|
||||
|
Loading…
Reference in New Issue
Block a user