-
Notifications
You must be signed in to change notification settings - Fork 75
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
* allow custom model #322
* allow custom model #322
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #322 +/- ##
==========================================
- Coverage 91.20% 91.18% -0.03%
==========================================
Files 66 66
Lines 3887 3889 +2
==========================================
+ Hits 3545 3546 +1
- Misses 342 343 +1 ☔ View full report in Codecov by Sentry. |
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.
Could there be any functions calling this function where this statement needs to hold true, i.e., where we want to return the ModelInterface from this function? @aaarrti
Hi, import quantus
class MyOwnCustomModel(quantus.ModelInterface):
"""
User-defined wrapper around model,
which is not supported out of the box by Quantus
"""
def predict(x_batch, **kwargs):
...
model = MyOwnCustomModel()
scores = quantus.RandomLogit()(model, ...) |
hi @aaarrti great example! can you formulate that as a test case? that would be golden! |
Hi @annahedstroem, |
Description
TensorFlowModel
orPyTorchModel
fromquantus
Implemented changes
ModelInterface