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

execution of netml classify command, gives numpy.ndarray error #35

Open
anirudh1626 opened this issue Sep 10, 2024 · 1 comment
Open

Comments

@anirudh1626
Copy link

Hi Team,

I am using the latest 0.7.1 version of netml and facing issue in execution of netml classify command

"netml classify --model=/root/noise-lab/netml/examples/out/data/demo_IAT.dat -p /root/noise-lab/netml/examples/data/srcIP_10.42.0.1/srcIP_10.42.0.119_anomaly.pcap"
pcap_file: <_io.BufferedReader name='/root/noise-lab/netml/examples/data/srcIP_10.42.0.1/srcIP_10.42.0.119_anomaly.pcap'>
[AttributeError] 'numpy.ndarray' object has no attribute 'predict'

Can someone please help

@anirudh1626
Copy link
Author

anirudh1626 commented Sep 10, 2024

UPDATE

Earlier I was trying to use the demo_IAT.dat and OCSVM-results.dat models which were committed in the github 0.7.1 netml release, but they were 4 years old model.
I created my own mode using the below command

netml learn --pcap=1stPhase-0-0.pcap --output=ac.dat

After creating my own model named "ac.dat", I tried re-executing the command and got the below error,

netml classify --model=ac.dat -p 1stPhase-0-5.pcap
pcap_file: <_io.BufferedReader name='1stPhase-0-5.pcap'>
[TypeError] 'EDecimal' object cannot be interpreted as an integer

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