Repository navigation
added test for improving test coverage - #13137
Merged
Merged
Conversation
rajdeepd
force-pushed
the
test_coverage
branch
from
February 12, 2019 04:30
2546bb5 to
6073531
Compare
adrinjalali
reviewed
Feb 12, 2019
| from sklearn.utils.testing import ignore_warnings | ||
|
|
||
| from sklearn.base import BaseEstimator, clone, is_classifier | ||
| from sklearn.base import BaseEstimator, clone, is_classifier, \ |
Member
There was a problem hiding this comment.
we kinda prefer this style:
from sklearn.base import (BaseEstimator, clone, is_classifier,
_first_and_last_element)
adrinjalali
reviewed
Feb 12, 2019
| def test_first_and_last_element(): | ||
| numpy_array_input = np.array([1, 2, 3]) | ||
| numpy_array_returned = _first_and_last_element(numpy_array_input) | ||
| assert_equal(numpy_array_returned[0], 1) |
Member
There was a problem hiding this comment.
please use simple assert instead.
Member
|
Although it doesn't improve coverage on the non-external codebase, I don't see why not. |
Member
|
_first_and_last_element appears to be unused in the entire repository. Shouldn't we be removing it? |
Member
|
+1 to remove then. |
Contributor
Author
|
@adrinjalali i will remove it then. |
rajdeepd
force-pushed
the
test_coverage
branch
2 times, most recently
from
February 12, 2019 15:08
44f06dc to
7ebfe18
Compare
rajdeepd
force-pushed
the
test_coverage
branch
from
February 12, 2019 15:22
7ebfe18 to
50b7258
Compare
Contributor
Author
|
@jnothman removed the method |
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
This reverts commit ea1d7cb.
xhluca
pushed a commit
to xhluca/scikit-learn
that referenced
this pull request
Apr 28, 2019
This reverts commit ea1d7cb.
koenvandevelde
pushed a commit
to koenvandevelde/scikit-learn
that referenced
this pull request
Jul 12, 2019
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Any other comments?