Zaktualizuj 'train-mlflow.py'
This commit is contained in:
parent
6c1f78852c
commit
7af611c9c3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user