Skip to content
Snippets Groups Projects
Commit 8e6cc266 authored by Laura Christine Kühle's avatar Laura Christine Kühle
Browse files

Adapted plot labels to new model testing.

parent 2a3bd19a
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ TODO: Add log to pipeline
TODO: Remove object set-up
TODO: Add testing rule to Snakefile -> Done
TODO: Give option to change 'num_epochs' for testing -> Done
TODO: Adapt plot labels to new set-up
TODO: Adapt plot labels to new set-up -> Done
"""
import numpy as np
......@@ -126,7 +126,7 @@ class ModelTrainer(object):
# print(np.array(classification_stats).mean(axis=0))
classification_stats = np.array(classification_stats).mean(axis=0)
plot_classification_accuracy(*classification_stats, ['real'])
plot_classification_accuracy([self._model_name], *classification_stats)
# Set paths for plot files if not existing already
plot_dir = self._dir + '/model evaluation'
......
......@@ -235,7 +235,7 @@ def calculate_exact_solution(mesh, cell_len, wave_speed, final_time, interval_le
return grid, exact
def plot_classification_accuracy(precision, recall, accuracy, xlabels):
def plot_classification_accuracy(xlabels, precision, recall, accuracy):
"""Plots classification accuracy.
Plots the accuracy, precision, and recall in a bar plot.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment