From 147b2f2212bc111a3241eb26f60ec3ab499b6a0b Mon Sep 17 00:00:00 2001 From: Andrea Esuli Date: Thu, 6 May 2021 16:28:30 +0200 Subject: [PATCH] Added back n_classes to Dataset --- quapy/data/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quapy/data/base.py b/quapy/data/base.py index e68bcfa..ffd7e31 100644 --- a/quapy/data/base.py +++ b/quapy/data/base.py @@ -189,6 +189,10 @@ class Dataset: def classes_(self): return self.training.classes_ + @property + def n_classes(self): + return self.training.n_classes + @property def binary(self): return self.training.binary