deepfence / flowmeter Goto Github PK
View Code? Open in Web Editor NEW⭐ ⭐ Use ML to classify flows and packets as benign or malicious. ⭐ ⭐
License: Apache License 2.0
⭐ ⭐ Use ML to classify flows and packets as benign or malicious. ⭐ ⭐
License: Apache License 2.0
I used flowmeter with recent pcap files from CIC but I always I get this errors and no csv file created
Error decoding some part of the packet:Packet decoding error: Layer type not currently supported
Error decoding some part of the packet:Packet decoding error: Unable to decode EthernetType 3
The training script Deepfence_ML_flowmeter.py
contains a bug that causes it to fail when executed. The error occurs in the clean_dataset
function, specifically with the any
method.
Traceback (most recent call last): File "/home/victor/FlowMeter/assets/Deepfence_ML_flowmeter.py", line 162, in <module> X, y = clean_dataset(pd_comb_features_cp) File "/home/victor/FlowMeter/assets/Deepfence_ML_flowmeter.py", line 154, in clean_dataset indices_to_keep = ~df_X.isin([np.nan, np.inf, -np.inf]).any(1) TypeError: any() takes 1 positional argument but 2 were given
Steps to Reproduce:
Suggested Fix:
The issue is due to incorrect usage of the any
method. The any
method should be called with the axis parameter explicitly specified. The correct line should be:
indices_to_keep = ~df_X.isin([np.nan, np.inf, -np.inf]).any(axis=1)
When am attempting to run below command
python3 Deepfence_ML_flowmeter.py
to generate ML parameters and classify packets, I am receiving this error:
File "/home/batool/FlowMeter/assets/Deepfence_ML_flowmeter.py", line 24, in <module> from sklearn.metrics import ( ImportError: cannot import name 'plot_confusion_matrix' from 'sklearn.metrics' (/home/batool/.local/lib/python3.10/site-packages/sklearn/metrics/__init__.py)
How can I fix it please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.