GithubHelp home page GithubHelp logo

jzyjade / geneticfs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from philipkalinda/geneticfs

0.0 1.0 0.0 39 KB

GeneticFS is a library for feature selection in Machine Learning using a Genetic Algorithm as an optimisation method.

Home Page: http://philipkalinda.com/ds8

License: MIT License

Python 100.00%

geneticfs's Introduction

N|Solid

GeneticFS

GeneticFS is a library for feature selection in Machine Learning using a Genetic Algorithm as an optimisation method. More about the development and tests related to the package are explained HERE

Build Status

PyPI version

New Features!

  • Replaced accuracy score for classification models with F1 score
  • Added hyperparameter descriptions to improve ease of use

Tech

GeneticFS uses a number of open source projects to work properly:

  • Sci-Kit Learn
  • Numpy
  • Matplotlib

And of course GeneticFS itself is open source with a public repository on GitHub.

Installation

Install the dependencies

$ pip install numpy
$ pip install matplotlib
$ pip install sklearn

Install the package

$ pip install geneticfs

How to Use

Regression Model:

from geneticfs import GeneticFS
from sklearn.linear_model import LinearRegression

lin_model = LinearRegression()
gfs = GeneticFS()

# fit the optimizer
gfs.fit(model=lin_model, _type='regression', X=X, y=y) # regression model

# get results output
binary_output_of_optimal_variables, indicies_of_optimal_variables = gfs.results()

# plot results of progress
gfs.plot_progress()

Classification Model:

from geneticfs import GeneticFS
from sklearn.linear_model import LogisticRegression

log_model = LogisticRegression()
gfs = GeneticFS()

# fit the optimizer
gfs.fit(model=log_model, _type='classification', X=X, y=y) # classification model

# get results output
binary_output_of_optimal_variables, indicies_of_optimal_variables = gfs.results()

# plot results of progress
gfs.plot_progress()

Todos

  • Write more Tests
  • Add more flexibility in use

License

MIT

geneticfs's People

Contributors

philipkalinda avatar

Watchers

James Cloos 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.