Zaktualizuj 'train-mlflow.py'

This commit is contained in:
Kornelia Girejko 2022-05-15 15:23:56 +02:00
parent c1f60f6b38
commit 619e7f6645

View File

@ -107,11 +107,11 @@ def my_main(epochs):
tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme
if tracking_url_type_store != "file":
mlflow.pytorch.log_model(model, "model", registered_model_name="s478815", signature=siganture,
mlflow.pytorch.log_model(model, "modelM", 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, "modelM", signature=siganture, input_example=input_example)
mlflow.pytorch.log_model(model, "modelM", signature=siganture, input_example=input_example)
#mlflow.pytorch.save_model(model, "modelM", signature=siganture, input_example=input_example)
rmse = mean_squared_error(y_testing, y_predicted)
#print(rmse)