From cab7da870467ce79bf1efd3dc45cf313e6056d07 Mon Sep 17 00:00:00 2001 From: samuelesabella Date: Mon, 9 Nov 2026 10:07:15 +0100 Subject: [PATCH] dnotebooks/plots/plots.py: fix loss plots --- dnotebooks/plots/plots.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dnotebooks/plots/plots.py b/dnotebooks/plots/plots.py index 3c63802..d6e39fe 100644 --- a/dnotebooks/plots/plots.py +++ b/dnotebooks/plots/plots.py @@ -824,7 +824,9 @@ def stack_mean_node_metric( ) -> np.ndarray: exps_metric: List[np.ndarray] = [] for cf in experiments: - if metric == "accuracy": + if len(cf.data.shape) == 2: + X = cf.data + elif metric == "accuracy": X = cf.accuracy() else: assert class_label is not None