Zaktualizuj 'train-mlflow.py'

This commit is contained in:
Kornelia Girejko 2022-05-15 21:55:12 +02:00
parent 48e6844c1a
commit 65ebe4285c

View File

@ -108,10 +108,10 @@ 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.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)