Zaktualizuj 'train-mlflow.py'
This commit is contained in:
parent
0c98990bb0
commit
001b82e11e
@ -28,8 +28,8 @@ import mlflow.sklearn
|
||||
from urllib.parse import urlparse
|
||||
from mlflow.models import infer_signature
|
||||
|
||||
mlflow.set_experiment("s_478815")
|
||||
mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
||||
mlflow.set_experiment("478815")
|
||||
#mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
||||
|
||||
# Model
|
||||
class Model(nn.Module):
|
||||
@ -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="s_478815", signature=siganture,
|
||||
mlflow.pytorch.log_model(model, "modelM", registered_model_name="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