From cade934db39e94a675b517ec0ade2169a07a689a Mon Sep 17 00:00:00 2001 From: PawelDopierala Date: Wed, 15 May 2024 01:43:14 +0200 Subject: [PATCH] Change plot (JenkinsfileEvaluation) --- JenkinsfileEvaluation | 2 +- evaluate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/JenkinsfileEvaluation b/JenkinsfileEvaluation index a41937d..634f539 100644 --- a/JenkinsfileEvaluation +++ b/JenkinsfileEvaluation @@ -51,7 +51,7 @@ pipeline { } stage('CreateArtifacts') { steps { - archiveArtifacts artifacts: 'hp_test_predictions.csv,hp_test_metrics.csv,metrics_plt.png' + archiveArtifacts artifacts: 'hp_test_predictions.csv,hp_test_metrics.csv,plot_mae.png, plot_r2.png, plot_rmse.png' } } } diff --git a/evaluate.py b/evaluate.py index 4770716..81b3ba9 100644 --- a/evaluate.py +++ b/evaluate.py @@ -46,6 +46,6 @@ for metric in metrics: plt.xlabel('Build Number') plt.ylabel(metric) plt.grid(True) - plot_file = f'{metric.lower()}_plt.png' + plot_file = f'plot_{metric.lower()}.png' plt.savefig(plot_file) plt.close()