mlflow attempt

This commit is contained in:
Kamila 2022-05-15 10:14:18 +02:00
parent e4fc560238
commit 0879e7ed2a
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ pipeline {
sh 'python3 ./nn_train_mlflow.py'
archiveArtifacts artifacts: 'mlruns/**'
sh 'rm -r mlruns'
sh 'rm -r my_model_mlflow'
}
}
}

View File

@ -83,6 +83,6 @@ with mlflow.start_run():
mlflow.log_param("1st_activation_funct", first_activation_funct)
mlflow.log_param("2nd_activation_funct", second_activation_funct)
#mlflow.keras.log_model(model, 'my_model')
mlflow.keras.save_model(model, "my_model")
mlflow.keras.save_model(model, "my_model_mlflow")
mlflow.log_metric("accuracy", accuracy_score(y_true, y_pred))