mlflow
This commit is contained in:
parent
c685f36b54
commit
f8025ad3fc
@ -11,8 +11,7 @@ import pandas as pd
|
|||||||
|
|
||||||
# MLFlow
|
# MLFlow
|
||||||
mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
||||||
restore_experiment('15')
|
mlflow.set_experiment("444501")
|
||||||
mlflow.set_experiment("s444501")
|
|
||||||
|
|
||||||
|
|
||||||
# Parametry z konsoli
|
# Parametry z konsoli
|
||||||
@ -118,13 +117,13 @@ def train_main(epochs, run):
|
|||||||
|
|
||||||
if tracking_url_type_store != "file":
|
if tracking_url_type_store != "file":
|
||||||
mlflow.pytorch.log_model(model,
|
mlflow.pytorch.log_model(model,
|
||||||
's444501',
|
'444501',
|
||||||
registered_model_name='s444501',
|
registered_model_name='444501',
|
||||||
signature=signature,
|
signature=signature,
|
||||||
input_example=X_test.numpy())
|
input_example=X_test.numpy())
|
||||||
else:
|
else:
|
||||||
mlflow.pytorch.log_model(model,
|
mlflow.pytorch.log_model(model,
|
||||||
's444501',
|
'444501',
|
||||||
signature=signature,
|
signature=signature,
|
||||||
input_example=X_test.numpy())
|
input_example=X_test.numpy())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user