-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
EHN: Gat score optional epochs #1915
Conversation
gat.fit(epochs) | ||
assert_raises(RuntimeError, gat.score) | ||
gat.predict(epochs) | ||
gat.score() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't refit for just testing this. It's a waste of test time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
travis is not happy |
…crossvalidation and y is not explicitely defined
+1 for merge if @kingjr is happy. |
Happy I am |
EHN: Gat score optional epochs
Thanks @kingjr ! |
|
@cmoutard @dengemann @agramfort
This is a small EHN that allows using gat.score() without passing the epochs if and only if the user has already used gat.predict().
As the object already stores the epochs predictions (in gat.y_pred_) it already possess all the necessary information which can be useful when you want to happened to have already predicted your epochs and want to test several different scorers.