Zaktualizuj 'train-mlflow.py'

This commit is contained in:
Kornelia Girejko 2022-05-15 22:28:21 +02:00
parent 28e50142f0
commit 87956fcb3c

View File

@ -113,7 +113,7 @@ def my_main(epochs):
mlflow.log_metric("mae", mae)
input_example = pd.DataFrame(X_testing[0])
siganture = mlflow.models.signature.infer_signature(np.array(X_training.detach().numpy()), np.array(y_predicted_train.detach().numpy()))
siganture = mlflow.models.signature.infer_signature(pd.DataFrame(X_training.detach().numpy()), pd.DataFrame(y_predicted_train.detach().numpy()))
tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme
if tracking_url_type_store != "file":