-
Notifications
You must be signed in to change notification settings - Fork 224
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
Refactor drift detector score methods #489
Conversation
Note that there are other detectors where the same change needs to be made (basically every detector doing a permutation test I think), e.g. learned kernel or LSDD. |
Ah yeh, I'll have a look at updating those too! |
@arnaudvl I think I've covered all the necessary detectors in the latest commits ( |
…IO#489). Merge branch 'master' into linear_time_mmd # Conflicts: # alibi_detect/cd/base.py # alibi_detect/cd/mmd.py # alibi_detect/cd/pytorch/mmd.py # alibi_detect/cd/tensorflow/mmd.py
This PR moves the
distance_threshold
computation from.predict()
to.score()
methods, for all drift detectors that perform permutation tests.This simplifies detector
predict
methods, and aids consistency between the existingMMDDrift
detectors and the new linear-time MMD detectors introduced by #475.