Skip to content
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

How can I create counterfactual explanations on anomaly score? #1031

Open
Paippi opened this issue Nov 29, 2024 · 0 comments
Open

How can I create counterfactual explanations on anomaly score? #1031

Paippi opened this issue Nov 29, 2024 · 0 comments

Comments

@Paippi
Copy link

Paippi commented Nov 29, 2024

Hello,

I'm trying to create counterfactual explanations for an OCSVM model (sklearn's OCSVM to be precise). The target is to reduce anomaly score/distance from hyperplane to a given threshold which decides whether the given sample is considered anomalous or not.

The classes Counterfactual & CounterfactualProto both require the output of the predict function to have class probabilities. I also tried looking in to CounterfactualProto but that would require use of a encoder and a decoder, but I don't think I need one (perhaps I could just create a function that just returns the input for the encoder and the decoder?).

So any advice on this? How would I create counterfactual explanations on an OCSVM model?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant