From c850c60042ff153f45337fedc62624a1d59e95b9 Mon Sep 17 00:00:00 2001 From: samuelesabella Date: Tue, 17 Nov 2026 14:44:37 +0100 Subject: [PATCH 1/3] dnotebooks/plots/plots.py: add max in legend, fix ylabel --- dnotebooks/plots/plots.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dnotebooks/plots/plots.py b/dnotebooks/plots/plots.py index d6e39fe..b1947b5 100644 --- a/dnotebooks/plots/plots.py +++ b/dnotebooks/plots/plots.py @@ -763,16 +763,21 @@ def draw(self): self.epoch[0], self.epoch[1] )[:len(Y)] self._ax.fill_between(X, Y_lower_bound, Y_upper_bound, color=c, alpha=.1) + label = f"{label} ยท {round(max(Y), 3)}%" self._ax.plot(X, Y, color=c, label=label, alpha=1, **linestyle) if self.ylimit: self._ax.set_ylim(ymin=self.ylimit[0], ymax=self.ylimit[1]) if self._xlabel: self._ax.set_xlabel(self._xlabel) - self._ax.set_ylabel(self.metric.name) if self._title: self._ax.set_title(self._title) + if self._ylabel: + self._ax.set_ylabel(self._ylabel) + else: + self._ax.set_ylabel(self.metric.name) + if self._external_legend: self._ax.legend(loc='center left', bbox_to_anchor=(1, 0.5)) else: From 418edb3825c23472cebde1059b65692a6c86c500 Mon Sep 17 00:00:00 2001 From: samuelesabella Date: Tue, 17 Nov 2026 14:45:07 +0100 Subject: [PATCH 2/3] dnotebooks/utils.py: change markevery --- dnotebooks/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnotebooks/utils.py b/dnotebooks/utils.py index 01b2ce9..0de3e73 100644 --- a/dnotebooks/utils.py +++ b/dnotebooks/utils.py @@ -81,7 +81,7 @@ def to_kwargs(self): return { "marker": self.marker, "linestyle": self.linestyle, - "markevery": .2, + "markevery": .1, "markerfacecolor": 'white' } From ad6b7454f04f1cf1aa570596aba4f2b8a5f46f35 Mon Sep 17 00:00:00 2001 From: samuelesabella Date: Tue, 17 Nov 2026 14:46:29 +0100 Subject: [PATCH 3/3] dnotebooks/widgets/selection.py: fix time in experiment group --- dnotebooks/widgets/selection.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dnotebooks/widgets/selection.py b/dnotebooks/widgets/selection.py index a58a40a..a3ee60e 100644 --- a/dnotebooks/widgets/selection.py +++ b/dnotebooks/widgets/selection.py @@ -39,6 +39,9 @@ def aggregate_mean(self) -> ExperimentMetric: time_devices_confusion_matrices=m0.time_data ) + all_times_are_equal = all(np.all(m0.time_data == x.time_data) for x in self.metrics) + agg_time_data = m0.time_data if all_times_are_equal else None + metrics_mean = [m.mean() for m in self.metrics] metrix_epoch = min([x.shape[0] for x in metrics_mean]) metrics_truncated_mean = [x[:metrix_epoch] for x in metrics_mean] @@ -46,6 +49,7 @@ def aggregate_mean(self) -> ExperimentMetric: return ExperimentConfusionMatrix( devices_confusion_matrices=stacked_means, description=m0.description, + time_devices_confusion_matrices=agg_time_data )