Giter Site home page Giter Site logo

ff4ml's Introduction

Description

ff4ml shows a framework that implements the proposed methodology validating its suitability, to evaluate and compare NIDS approaches ML-based.

FF4ML metodology

All experimentation has been carried out on a suitable dataset, UGR'16. The comparisons are made with studies by other authors in MSNM.

The results of the experiment are saved in the '/ffml4/results' folder. On the other hand the derived datasets, with which this framework starts, are located in the '/ffml4/data' folder

Installation

Requirements

FF4ml runs with python 3.6 and has been successfully tested on Ubuntu from 18.04 version and above. Also, the following dependencies has to be installed.

  • numpy>=1.16.5
  • pandas>=0.25.1
  • scikit-learn>=0.21.3
  • scikit-optimize>=0.5.2

How to install

Without a doubt, the best way to execute this development is through a Python execution environment. That is why it is recommended to create one before beginning the installation of the requirements. Thus, we recommend using Anaconda as an aid in this process.

The steps to follow if you want to use this environment are the following:

$ conda create -n ff4ml python=3.6 
$ conda activate ff4ml

Once the Anaconda environment has been created, and having been logged in, to install all the necessary requirements for the execution of our projects, it will be enough to execute the following instruction:

(ff4ml) $ pip install -r requirements.txt

How to run an example

To run an example, once the runtime environment is configured, the first thing to do is make sure that the source data sets are in the corresponding folder. We have to make sure that the 'data' folder is downloaded at '/ home'. Subsequently, the file 'main.py' must be executed, to which three arguments must be offered: model, repetition number and kfold number.

  • Model: lr, rf, svc. These correspond, respectively, to Logistic Regression, Random Forest and Support Vector Machine. (See paper to learn how the parameters have been chosen).

  • Repeat number: up to 20 repetitions have been implemented, so a number from 1 to 20 must be provided.

  • Kfold: 5 kfold have been implemented, so a 1-5 number must be provided.

A possible example of execution would be like this:

$ $ cd ~/ff4ml
$ conda activate ff4ml
$ python main.py lr 2 3

What would it mean for repetition 2 of kfold 3 to be executed for the Logistic Regression model.

ff4ml's People

Contributors

ignaciodc avatar ucadatalab avatar durda-ubu avatar robertomagan avatar

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.