-
Notifications
You must be signed in to change notification settings - Fork 21
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
[WIP] Add new scorer: MaNoScorer #289
Conversation
At the time of writing, I haven't changed the skada/deep/tests/test_deep_scorer.py yet and there are already failing test when it comes to torch and to the deep methods. It seems that the error is I will investigate that while also adding the MaNoScorer test for the deep methods. |
Yes, deep learning tests are failling because skorch v1.0.0 is not compatible with sklearn 1.6.0. They fixed skorch and we are waiting for a new release (see skorch-dev/skorch#1085). In the meantine, you can test your PR with skorch 1.0.0 and sklearn 1.5.2. |
Thanks @antoinecollas, yes I am using skorch 1.0.0 and sklearn 1.5.2 in local, I will push the test_deep_scorers once it works locally for me |
@antoinecollas It seems that the skorch issue has been resolved :) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #289 +/- ##
==========================================
- Coverage 97.07% 96.92% -0.15%
==========================================
Files 63 63
Lines 6559 6671 +112
==========================================
+ Hits 6367 6466 +99
- Misses 192 205 +13 |
# Test softmax normalization | ||
scorer = MaNoScorer(threshold=-1) | ||
score_mean = scorer._score(estimator, X, y, sample_domain=sample_domain) | ||
assert isinstance(score_mean, float), "score_mean is not a float" |
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.
You don't check if it is the right normalization which is considered no?
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.
Understood, will do
skada/deep/tests/test_deep_scorer.py
Outdated
MaNoScorer(), | ||
], | ||
) | ||
def test_dev_exception_layer_name(scorer, da_dataset): |
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.
change name
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.
To what? it was the name already given
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.
understood, will do
Implementation of MaNo as an unsupervised realistic scorer.
This should answer #288.