Skip to content

MRG Allow list of strings for type_filter in all_estimators. #3934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2014

Conversation

amueller
Copy link
Member

@amueller amueller commented Dec 4, 2014

Removes lines ;)

type_filter = [type_filter]
else:
# copy the list
type_filter = [x for x in type_filter]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type_filter = list(type_filter) # copy

-1 LOC :)

@amueller amueller force-pushed the common_test_slight_cleanup branch from a56e536 to f35116a Compare December 4, 2014 21:58
@amueller
Copy link
Member Author

amueller commented Dec 4, 2014

done

larsmans added a commit that referenced this pull request Dec 4, 2014
MRG Allow list of strings for type_filter in all_estimators.
@larsmans larsmans merged commit 165f949 into scikit-learn:master Dec 4, 2014
@raghavrv
Copy link
Member

raghavrv commented Dec 5, 2014

@amueller Is there a test for all_estimators? ( if not do we need one, perhaps in test_testing )?

@amueller
Copy link
Member Author

amueller commented Dec 5, 2014

@ragv that would be very welcome. I'm not sure how to test completeness (except by listing all estimators, which would a bit odd). There is a test to see if the meta-estimator are filtered correctly, but I don't think all the parameters are properly tested.

@amueller
Copy link
Member Author

amueller commented Dec 5, 2014

The test I was thinking about was this one: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tests/test_common.py#L62

@raghavrv
Copy link
Member

raghavrv commented Dec 6, 2014

I am thinking of moving them both along with the new tests I added to utils/tests/test_testing.py... Is that okay? or should I keep everything under tests/test_common.py itself?

@amueller
Copy link
Member Author

amueller commented Dec 6, 2014

I'd say feel free to move them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants