Git Product home page Git Product logo

afagarap / gru-svm Goto Github PK

View Code? Open in Web Editor NEW
151.0 151.0 39.0 100.32 MB

[ICMLC 2018] A Neural Network Architecture Combining Gated Recurrent Unit (GRU) and Support Vector Machine (SVM) for Intrusion Detection

Home Page: https://arxiv.org/pdf/1709.03082.pdf

License: GNU Affero General Public License v3.0

Python 98.60% Shell 1.40%
artificial-intelligence artificial-neural-networks classification classification-task gru gru-model gru-svm intrusion-detection machine-learning recurrent-neural-networks rnn rnn-tensorflow softmax supervised-learning support-vector-machine svm svm-classifier tensorflow

gru-svm's People

Contributors

afagarap avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gru-svm's Issues

to-do

  • Add the trained model from the research experiments.
  • Add an example Flask app for demonstration.
  • Add a stand-alone classifier that uses trained model, to classify a single example.

Field 17 is the IDS prediction label, but training data also contains IDS/malware detection results

Hi,
I noticed that field 17 is the only prediction label [1]. However, fields 14, 15 and 16 are also IDS/malware detection results [2] and they are part of training data.
How does this model can be implemented over real traffic? Does it depend on Symantec/clamav/ashula systems?

[1]

labels = data[:, 17]

[2] http://www.takakura.com/Kyoto_data/BenchmarkData-Description-v5.pdf

one question in csv_to_npy.py

hello,sir. Recently I want to run your code. I download the dataset and have processed it with text_to_csv.py , normalize_data.py , bin_data.py. But when I run the csv_to_npy.py,I meet a bug just like this:
Traceback (most recent call last):
File "csv_to_npy.py", line 61, in
main(args)
File "csv_to_npy.py", line 55, in main
csv_to_npy(arguments.csv_path, arguments.npy_path, arguments.npy_filename)
File "csv_to_npy.py", line 17, in csv_to_npy
df = df.drop_duplicates(subset=df, keep="first", inplace=False)
File "C:\Users\DELL\Anaconda3\envs\tf2.0-gpu\lib\site-packages\pandas\core\frame.py", line 4811, in drop_duplicates
duplicated = self.duplicated(subset, keep=keep)
File "C:\Users\DELL\Anaconda3\envs\tf2.0-gpu\lib\site-packages\pandas\core\frame.py", line 4883, in duplicated
diff = Index(subset).difference(self.columns)
File "C:\Users\DELL\Anaconda3\envs\tf2.0-gpu\lib\site-packages\pandas\core\indexes\base.py", line 420, in new
return Index(np.asarray(data), dtype=dtype, copy=copy, name=name, **kwargs)
File "C:\Users\DELL\Anaconda3\envs\tf2.0-gpu\lib\site-packages\pandas\core\indexes\base.py", line 390, in new
return Int64Index(data, copy=copy, dtype=dtype, name=name)
File "C:\Users\DELL\Anaconda3\envs\tf2.0-gpu\lib\site-packages\pandas\core\indexes\numeric.py", line 78, in new
raise ValueError("Index data must be 1-dimensional")
ValueError: Index data must be 1-dimensional
The code "df = df.drop_duplicates(subset=df, keep="first", inplace=False)" seems do not work well. I do not make any change in code.I also try to print the head of df, the result is that
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
0 1 4 0 2 6 4 6 2 4 1 6 6 4 1 0 0 0 1 2 4 0 1
1 6 6 1 3 6 4 6 2 4 1 6 6 4 2 0 0 0 0 7 0 0 1
2 9 4 9 9 6 4 6 2 4 1 6 6 4 3 0 0 0 0 3 0 0 1
3 5 4 0 2 6 4 6 2 4 1 6 6 4 1 0 0 0 1 2 4 0 1
4 5 4 0 2 6 4 6 2 4 1 6 6 4 1 0 0 0 1 2 4 0 1
5 1 4 0 2 6 4 6 2 4 1 6 6 4 1 0 0 0 1 5 9 0 2
6 5 4 0 2 6 4 6 2 4 1 6 6 4 1 0 0 0 1 2 4 0 1
7 1 4 0 2 6 4 6 2 4 1 6 6 4 1 0 0 0 0 9 0 0 1
8 5 4 0 2 6 4 6 2 4 1 6 6 4 1 0 0 0 1 2 4 0 1
9 5 4 0 2 6 4 6 2 4 1 6 6 4 1 0 0 0 1 2 4 0 1
can you help me and give me some questions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.