forked from scikit-learn/scikit-learn
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MRG+1] Fix estimators to work if sample_weight parameter is pandas S…
…eries type (scikit-learn#7825) * addressed comments in the PR about parameters in check_array * update the test case for the evaluation of estimators with pandas series * bug fix, need to check for *not* None explicitly * updated with isinstance check if the documentation says there is acceptance of floats * ran pep8 linter on modified files * moving the test case to estimators_check * add a predict function into the testing pandas.Series class * avoid running anything beyond the newly added meta checks * check if pandas is installed before running the specific test * changed the order of the try-catch to check for sample_weight param beforehand * pass on import error rather than printing something to std out * improve test case naming and pd.Series check in the bad estimator class * address a pep8 linter error with unused import * pep8 warning disabled for potential unused import * throw a warning when SkipTest is raised * add a SkipTestWarning * updated the whats_new.rst with this issue * rebase and fix a spacing issue
- Loading branch information
1 parent
6d05b1a
commit 383bf8e
Showing
7 changed files
with
82 additions
and
4 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
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