-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2138 from pavlin-policar/fitter-sklearn-quick
[FIX] Fitter: Fix used_vals and params not being set
- Loading branch information
Showing
9 changed files
with
30 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from Orange.classification import KNNLearner as KNNClassification | ||
from Orange.modelling import Fitter | ||
from Orange.modelling import SklFitter | ||
from Orange.regression import KNNRegressionLearner | ||
|
||
__all__ = ['KNNLearner'] | ||
|
||
|
||
class KNNLearner(Fitter): | ||
class KNNLearner(SklFitter): | ||
__fits__ = {'classification': KNNClassification, | ||
'regression': KNNRegressionLearner} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from Orange.classification import NNClassificationLearner | ||
from Orange.modelling import Fitter | ||
from Orange.modelling import SklFitter | ||
from Orange.regression import NNRegressionLearner | ||
|
||
__all__ = ['NNLearner'] | ||
|
||
|
||
class NNLearner(Fitter): | ||
class NNLearner(SklFitter): | ||
__fits__ = {'classification': NNClassificationLearner, | ||
'regression': NNRegressionLearner} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters