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

IndexError #1

Open
eldraco opened this issue Aug 25, 2023 · 0 comments
Open

IndexError #1

eldraco opened this issue Aug 25, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@eldraco
Copy link
Contributor

eldraco commented Aug 25, 2023

Describe the bug

[GroundTruthParser] Extracting ground truth labels from: /xxxxxxxxxx/zeek_labeled/http.log.labeled
[GroundTruthParser] Number of parsed flows: 25920
[GroundTruthParser] Number of parsed flows: 26100
[GroundTruthParser] Number of parsed flows: 26280
[GroundTruthParser] Number of parsed flows: 26460
[Main] Total flows read by parsers:
['type_', 'count']
('suricata', 26507)
('slips', 7986)
('ground_truth', 26624)
[Main] Done. For labels db check: output/2023-08-25-09:31:58/

Traceback (most recent call last):
File "/xxxxxxxxxx/IDPS-Comparison-Tool/./main.py", line 122, in
calc.get_confusion_matrix('slips')
File "/xxxxxxxxxx/IDPS-Comparison-Tool/metrics/calculator.py", line 66, in get_confusion_matrix
tp = cm[1, 1]
IndexError: index 1 is out of bounds for axis 0 with size 1

To Reproduce
See private message

Expected behaviour
not failing

@eldraco eldraco added the bug Something isn't working label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants