-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH make tools to list estimators within the project
- Loading branch information
Showing
7 changed files
with
31 additions
and
2 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
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 +1,4 @@ | ||
# Authors: scikit-learn-contrib developers | ||
# License: BSD 3 clause | ||
|
||
__version__ = "0.0.4.dev0" |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Authors: scikit-learn-contrib developers | ||
# License: BSD 3 clause |
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,13 +1,16 @@ | ||
"""This file shows how to write test based on the scikit-learn common tests.""" | ||
|
||
# Authors: scikit-learn-contrib developers | ||
# License: BSD 3 clause | ||
|
||
from sklearn.utils.estimator_checks import parametrize_with_checks | ||
|
||
from skltemplate import TemplateClassifier, TemplateEstimator, TemplateTransformer | ||
from skltemplate.utils.discovery import all_estimators | ||
|
||
|
||
# parametrize_with_checks allows to get a generator of check that is more fine-grained | ||
# than check_estimator | ||
@parametrize_with_checks([TemplateEstimator(), TemplateTransformer(), TemplateClassifier()]) | ||
@parametrize_with_checks([est() for _, est in all_estimators()]) | ||
def test_estimators(estimator, check, request): | ||
"""Check the compatibility with scikit-learn API""" | ||
check(estimator) |
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