-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[WIP] TST Add test to check if estimators reset model when fit is called #4162
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
Conversation
I would change as much as possible about that data, that is number of data points, number of features, number of classes, scale of features. Maybe fix the random state but scale the whole data or separate features differently. |
2d07e59
to
31a2626
Compare
How do these look?
|
can you fix the import failures on travis so we can see if anything actually fails? |
btw, I would rather add this in the |
How does that work with current master btw, you are testing clustering algorithms, but the fix for clustering algorithms to work with optional |
This needs
Sure! thanks will add it...
The Actually this was supposed to be a part of that PR itself... but I thought it would be less relevant to the |
ok, got it. |
You can make this one also "on top" of the other one, so continue the commits from there, if this one relies on it. That might make the changes here harder to review, but at least you have working code. |
Okay will remove those in both these PRs... and wait for #4064 to be merged... |
No don't. I'm not sure which will be merged first, yours or #4064. |
Sure! I'll do that... ;) |
Oh okay... I'll cross reference it so that I remember to clean it all up after all three gets merged... |
@amueller A few clusterers like We could :
which would be preferable? ( Also why are they designed such ( without |
They're transductive, rather than inductive, algorithms. They're not designed to create a general model that can then be applied to other data, but a model of the specific data they're given. It's a bit annoying that they can't be tested in this manner. One option is to test |
31a2626
to
2183d28
Compare
Thanks for the response :) I feel we could special case them inside the These are the transductive algorithms and their results to be checked ( Please feel free to edit this comment ):
|
And yeah this will look ugly :/ please feel free to suggest a better way... BTW I cannot use |
Can you elaborate on the last comment? Why not try |
Because we're trying to evaluate whether two models are the same after they've been fit in different ways. So the Yes, we could consider falling back to directly looking for and comparing attributes, where they are of appropriate type and dtype. |
2183d28
to
602856b
Compare
closing in favour of #4841 |
Partially fixes #406
Merge after
#3907#4841Also see #3907 for
partial_fit
tests...@amueller Ping!