Giter Site home page Giter Site logo

gabil-ga's Introduction

GABIL-GA

Implementation of Genetic Algorithm (GABIL) for classification

Installation

Install project dependencies by running the following command

$ pip install -r requirements.txt

Execution

Execute gabil project by running the following command

$ python main.py <MANDATORY ARGS> <OPTIONAL ARGS>

Below there is a list of the mandatory and optional arguments to be provided respectively:

  • Mandatory Arguments
Argument Short Version Long Version Expected Value
Crossover Rate -c --crossover float number
Mutation Rate -m --mutation float number
Number of Generations -g --generations int number
Population Size -p --population int number
Dataset file Path -d --dataset path to dataset file
  • Optional Arguments
Argument Specification Expected Value Default Value
Length Penalization (Decay) --decay float number 1
Max Rules at Initialization --initrules int number 5
Max number of Rules on each individual --maxrules int number 50
Elitism --elitism true or false False
Parent Selection --pselection roulette or rank or tournament roulette
Results Folder --rfolder path to folder /gabil-runs

In case that any of the optional argument is not specified, its default value will be used instead

####Example of project invocation:

$ python main.py --crossover 0.6 -m 0.01 -g 1000 -p 8 --dataset datasets/crx.data --rfolder my-gabil-results

Note that short argument names and long argument names can be used indifferently

####Results description The following files will be created inside the result folders

  • gabil-learning.txt
  • hypothesis_out.txt
  • input_params.txt
  • test_dataset.txt
  • training_dataset.txt

A description of the content of each file is summarized in the following table

Filename Content Description Format
gabil-learning.txt The progress of the learning process, for each generation comma separated values
hypothesis_out.txt The best hypothesis found and its statistics. Accuracy and Error are computed with respect of both training and test dataset json
input_params.txt A summary of the input parameters provided by the user json
training_dataset.txt The dataset selected for training. Corresponds to 70% of the given dataset json
test_dataset.txt The dataset selected for testing. Corresponds to 30% of the given dataset json

gabil-ga's People

Contributors

andresosw avatar gamar avatar

Watchers

Eeshan Gupta 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.