-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ichkoar
committed
Jan 3, 2019
1 parent
a8e81c0
commit d9f7260
Showing
4 changed files
with
145 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from ._version import get_versions | ||
from ._dagging import Dagging, DaggingClassifier # noqa | ||
from ._dagging import DaggingClassifier, DaggingRegressor # noqa | ||
|
||
__version__ = get_versions()['version'] | ||
del get_versions |
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,8 +1,13 @@ | ||
from sklearn.utils.estimator_checks import check_estimator | ||
|
||
from dagging import Dagging | ||
from dagging import DaggingClassifier, DaggingRegressor | ||
|
||
|
||
def test_check_estimator(): | ||
model = Dagging(random_state=0) | ||
def test_check_dagging_classifier(): | ||
model = DaggingClassifier(random_state=0, n_estimators=2) | ||
check_estimator(model) | ||
|
||
|
||
def test_check_dagging_regressor(): | ||
model = DaggingRegressor(random_state=0) | ||
check_estimator(model) |