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

Pip install doesn't work #3

Closed
Blackandwhite23 opened this issue Aug 7, 2023 · 1 comment
Closed

Pip install doesn't work #3

Blackandwhite23 opened this issue Aug 7, 2023 · 1 comment

Comments

@Blackandwhite23
Copy link

When I use "pip install vus" and try the sample code I get the following message:
"ImportError: cannot import name 'get_metrics' from 'vus.metrics' (.\envs\test-vus\lib\site-packages\vus\metrics.py)"
When I check the file mentioned above I see, that the source code looks different than in this repo. It only contains:

`from .utils.metrics import metricor
from .analysis.robustness_eval import generate_curve

def get_range_vus_roc(score, labels, slidingWindow):
grader = metricor()
R_AUC_ROC, R_AUC_PR, _, _, _ = grader.RangeAUC(labels=labels, score=score, window=slidingWindow, plot_ROC=True)
_, _, _, _, _, _,VUS_ROC, VUS_PR = generate_curve(labels, score, 2*slidingWindow)
metrics = {'R_AUC_ROC': R_AUC_ROC, 'R_AUC_PR': R_AUC_PR, 'VUS_ROC': VUS_ROC, 'VUS_PR': VUS_PR}

return metrics`

The function "get_metrics" doesn't exist. If I copy the files manually into the folder, the sample codes works.
I hope I did nothing wrong during installation.
Also I had compatability issues with my other code, it needs special versions of scikit-learn and also a special python version (like mentioned in this repo). But in this case it doesn't run together with other packages like pyod. I will try to use the evaluation in another program installed in a virtual environment.

@bogireddytejareddy
Copy link
Collaborator

I have updated the pip package with latest version of the code. Installing version 0.0.3 should help with the error.

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

2 participants