Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Tree preprocessor order. #1447

Merged
merged 1 commit into from
Jul 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Orange/classification/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from Orange.base import Tree
from Orange.classification import SklLearner, SklModel
from Orange.preprocess import (RemoveNaNClasses, Continuize,
RemoveNaNColumns, SklImpute)

__all__ = ["TreeLearner"]

Expand All @@ -18,10 +16,6 @@ class TreeLearner(SklLearner):
__wraps__ = skl_tree.DecisionTreeClassifier
__returns__ = TreeClassifier
name = 'tree'
preprocessors = [RemoveNaNClasses(),
RemoveNaNColumns(),
SklImpute(),
Continuize()]

def __init__(self, criterion="gini", splitter="best", max_depth=None,
min_samples_split=2, min_samples_leaf=1,
Expand Down
4 changes: 0 additions & 4 deletions Orange/regression/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from Orange.base import Tree
from Orange.regression import SklLearner, SklModel
from Orange.preprocess import Continuize, RemoveNaNColumns, SklImpute

__all__ = ["TreeRegressionLearner"]

Expand All @@ -17,9 +16,6 @@ class TreeRegressionLearner(SklLearner):
__wraps__ = skl_tree.DecisionTreeRegressor
__returns__ = TreeRegressor
name = 'regression tree'
preprocessors = [RemoveNaNColumns(),
SklImpute(),
Continuize()]

def __init__(self, criterion="mse", splitter="best", max_depth=None,
min_samples_split=2, min_samples_leaf=1,
Expand Down