Zaktualizuj 'train-mlflow.py'
This commit is contained in:
parent
65ebe4285c
commit
0c98990bb0
@ -28,7 +28,7 @@ import mlflow.sklearn
|
||||
from urllib.parse import urlparse
|
||||
from mlflow.models import infer_signature
|
||||
|
||||
mlflow.set_experiment("s478815")
|
||||
mlflow.set_experiment("s_478815")
|
||||
mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
||||
|
||||
# Model
|
||||
@ -108,7 +108,7 @@ 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="s478815", signature=siganture,
|
||||
mlflow.pytorch.log_model(model, "modelM", registered_model_name="s_478815", signature=siganture,
|
||||
input_example=input_example)
|
||||
else:
|
||||
mlflow.pytorch.log_model(model, "modelM", signature=siganture, input_example=input_example)
|
||||
|
Loading…
Reference in New Issue
Block a user