Skip to content

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

Merged
larsmans merged 1 commit intoscikit-learn:masterfrom
amueller:common_test_slight_cleanup
Dec 4, 2014
Merged

MRG Allow list of strings for type_filter in all_estimators.#3934
larsmans merged 1 commit intoscikit-learn:masterfrom
amueller:common_test_slight_cleanup

Conversation

@amueller
Copy link
Copy Markdown
Member

@amueller amueller commented Dec 4, 2014

Removes lines ;)

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

amueller commented Dec 5, 2014

@raghavrv
Copy link
Copy Markdown
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
Copy Markdown
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