From 2cf9fd0f8413a19622a1d698f95666de33e771a4 Mon Sep 17 00:00:00 2001 From: Tilman Krokotsch Date: Fri, 17 Nov 2023 09:18:51 +0100 Subject: [PATCH] fix: add dataset name property to pseudo labels (#53) --- rul_adapt/approach/pseudo_labels.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rul_adapt/approach/pseudo_labels.py b/rul_adapt/approach/pseudo_labels.py index 07656e47..2dbcc2a9 100644 --- a/rul_adapt/approach/pseudo_labels.py +++ b/rul_adapt/approach/pseudo_labels.py @@ -153,6 +153,10 @@ def __init__( self._inductive = inductive self._max_rul = max_rul + @property + def dataset_name(self) -> str: + return self._reader.dataset_name + @property def _patched_split(self) -> str: return "test" if self._inductive else "dev"