-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Stronger common tests for setting init params? / check_estimator #7738
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
Comments
I am interested in contributing. It sounds to me like you want |
Thanks for wanting to contribute. Can you please double check that with the current common tests the example I gave above passes? |
Does "with the current common tests" mean use
Written like this the
|
Is it normal for
|
@absolutelyNoWarranty can you give details of the assertion error? No, that's not normal. And why would the And it's not so much about preventing people from using properties. If they are transparent in a way that works with The test is mostly to avoid people implementing estimators that clearly don't work with |
I think I had some virtualenv issues on my end. Only DummyClassifier throws an assertion error now.
Yes the
If I'm understanding this correctly, idempotent hyper-parameters is not a goal? It would be acceptable to have |
I'm not sure. Maybe that should be the bar? |
Yes, we need setters in such cases, and the transformation needs to be invertible. I've not read all the commentary above yet, but (*"wreck havoc" -> "wreak havoc") |
After doing a search it turns out that |
p = Pipeline([('clf', LogisticRegression())]) On 26 October 2016 at 14:58, absolutelyNoWarranty notifications@github.com
|
I meant for I opened a PR with the modification suggested by @amueller . |
In PR 7477, the bug is that What I am wondering is if something like the below is acceptable.
Problem 2: |
Something like that can be acceptable, used sparingly: we rather use the convention of validating in |
In #7477 a solution was proposed that did something like
The common tests let this pass, though that should wreck havoc on
get_params
andset_params
.I haven't looked into it but I think the tests should fail on this.
The text was updated successfully, but these errors were encountered: