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

Incompatible with scikit-learn version 1.1 #2

Open
mononitogoswami opened this issue Nov 9, 2022 · 4 comments
Open

Incompatible with scikit-learn version 1.1 #2

mononitogoswami opened this issue Nov 9, 2022 · 4 comments

Comments

@mononitogoswami
Copy link

mononitogoswami commented Nov 9, 2022

Hi, Thank you for the excellent work! I am facing a scikit-learn version error. Would it be possible that VUS worked with the latest version of scikit-learn?

@boniolp
Copy link
Collaborator

boniolp commented Nov 15, 2022

Hi, some of the algorithms in our benchmark require an older version of scikit-learn. Though, I will work now to update all algorithms to work with the latest version of scikit-learn.

@fede-bello
Copy link

Hi, is this going to happen? It's still working only with a really old version of scikit-learn.
Loved the paper btw

@boniolp
Copy link
Collaborator

boniolp commented Nov 17, 2024

Hi @fede-bello,

Thanks for your interest (and for the reminder).
We pushed a more recent version of VUS (working with sklearn above 1.1) in the TSB-UAD repository (https://github.com/TheDatumOrg/TSB-UAD).

You can install the package with "pip install tsb-uad" and use vus as follows:

from TSB_UAD.vus.metrics import get_metrics

results = get_metrics(score, label, metric="all", slidingWindow=slidingWindow)

The latter returns a dictionary including VUS-ROC and VUS-PR (you can change the parameter metric to return only VUS-based measures). Below is an example of the returned dictionary:

AUC_ROC : 0.9216216369841076
AUC_PR : 0.6608577550833885
Precision : 0.7342093339374717
Recall : 0.4010891089108911
F : 0.5187770129662238
Precision_at_k : 0.4010891089108911
Rprecision : 0.7486112853253205
Rrecall : 0.3097733542316151
RF : 0.438214653167952
R_AUC_ROC : 0.989123018780308
R_AUC_PR : 0.9435238401582703
VUS_ROC : 0.9734357459251715
VUS_PR : 0.8858037295594041
Affiliation_Precision : 0.9630674176380548
Affiliation_Recall : 0.9809813654809071

I will push soon the same version on this repo as well.

Best,

Paul

@fede-bello
Copy link

That's awesome, thanks!

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

3 participants