Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add non-strict mode to AnomalibMetric #2508
Add non-strict mode to AnomalibMetric #2508
Changes from all commits
148f789
b4652f7
785679a
9ede7bc
1feebc0
6000512
8b76900
2923d1e
b187761
e8e5be3
91a3947
2dbc9e5
5ec700d
fedd932
a447fd9
4f91157
af94c9c
61c588b
1e9f647
09d7505
5745d5f
faec7eb
640f05a
0f2eb0e
af984ea
d5104e7
1661250
06120f8
e8666b2
fe3c117
f307638
aced62c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can you elaborate the types are ignored?
compute
always expected to return tensor?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.
Without the ignore, mypy raises the following error:
Mypy does not recognize the parent class, because this class can be added to any Metric class, sort of like a mixin. We do assert that the super class is a Metric, in the
__init_subclass__
method above, so it's safe to ignore this check here.