Zaktualizuj 'train-mlflow.py'

This commit is contained in:
Kornelia Girejko 2022-05-15 22:01:37 +02:00
parent 6c1f78852c
commit 7af611c9c3

View File

@ -108,11 +108,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, "modelM", registered_model_name="478815", signature=siganture,
mlflow.pytorch.log_model(model, "model_new", registered_model_name="478815", signature=siganture,
input_example=input_example)
else:
mlflow.pytorch.log_model(model, "modelM", signature=siganture, input_example=input_example)
mlflow.pytorch.save_model(model, "modelM", signature=siganture, input_example=input_example)
mlflow.pytorch.log_model(model, "model_new", signature=siganture, input_example=input_example)
mlflow.pytorch.save_model(model, "modelM_new", signature=siganture, input_example=input_example)
rmse = mean_squared_error(y_testing, y_predicted)
#print(rmse)