Skip to content

Commit 9ed8b9c

Browse files
committed
Explicitly add preprocessors to the list of parameters in the constructor.
1 parent 1a4652a commit 9ed8b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orange/classification/tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class TreeLearner(Learner):
5858
def __init__(
5959
self, *args, binarize=False, max_depth=None,
6060
min_samples_leaf=1, min_samples_split=2, sufficient_majority=0.95,
61-
**kwargs):
62-
super().__init__(*args, **kwargs)
61+
preprocessors=None, **kwargs):
62+
super().__init__(preprocessors=preprocessors)
6363
self.params = {}
6464
self.binarize = self.params['binarize'] = binarize
6565
self.min_samples_leaf = self.params['min_samples_leaf'] = min_samples_leaf

0 commit comments

Comments
 (0)