Zaktualizuj 'train-mlflow.py'

This commit is contained in:
Kornelia Girejko 2022-05-15 21:53:23 +02:00
parent 6e476a06ff
commit 48e6844c1a

View File

@ -28,7 +28,7 @@ import mlflow.sklearn
from urllib.parse import urlparse
from mlflow.models import infer_signature
mlflow.set_experiment("s-478815")
mlflow.set_experiment("s478815")
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, "model", registered_model_name="s-478815", signature=siganture,
mlflow.pytorch.log_model(model, "model", registered_model_name="s478815", signature=siganture,
input_example=input_example)
else:
mlflow.pytorch.log_model(model, "model", signature=siganture, input_example=input_example)