Make classifiers and regressors clonable

This commit is contained in:
2021-04-01 07:41:59 -05:00
parent ac29b5213f
commit 820a6256c2
7 changed files with 62 additions and 14 deletions

View File

@@ -40,3 +40,6 @@ class CountingClassifier(Classifier):
def __repr__(self):
return "CountingClassifier(mean=%s)" % self.mean
def clone(self) -> "CountingClassifier":
return CountingClassifier()