Skip to main content

Algorithm that uses genetic and MRMR for feature selection

Project description

GenMRMR

This repository proposes a new feature selection algorithm based on genetic and the MRMR algorithms. The algorithm aims to select a subset of features that maximizes classification accuracy. The algorithm works by creating a population of subsets of features, evaluating their weighted F1-score, and then hybridizing the best individuals to create new subsets. The probability of adding a feature during hybridization is estimated using the MRMR algorithm. Finally, the best subset of features is selected based on the F1-score.

Documentation

There are 3 methods available: fit, transform, fit_transform:

fit method is used to fit GenMRMR to given

Args:
    x_train, y_train, x_cv, y_cv(numpy.ndarray): train and cv data and labels that will be used for feature selection

transform method is used to transform fitted GenMRMR

Args:
    data(numpy.ndarray): data to transform

fit_transform method is used to fit and then transform data using GenMRMR

Args:
    data(pandas.core.frame.DataFrame): data to transform
    labels(pandas.core.series.Series): labels for data

Authors

  • Algorithm created by Maksim Tislenko(makstislenko@gmail.com)
    • Created the idea of algorithm
    • Implemented the whole algorithm
  • Сomparison with existing feature selection algorithms was conducted with the participation of Rustam Paringer (rusparinger@ssau.ru) from the Department of Technical Cybernetics at Samara University.

Acknowledgements

I would also like to express my gratitude to Arkadiy Sotnikov (cotnikoarkady@gmail.com) for assistance in preparing this readme.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genmrmr-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genmrmr-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file genmrmr-0.1.0.tar.gz.

File metadata

  • Download URL: genmrmr-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.0 Windows/10

File hashes

Hashes for genmrmr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 46f2029fccb724463d1a5a5afd551f541502ca0a6d9c0eadd2fda672c10a64ab
MD5 cde9350fee8f022d99fc898e8d54b39b
BLAKE2b-256 e2712e95348fb7de68fc7533be6fc93ef42b4f910c869cb3335ab9f7c036487c

See more details on using hashes here.

File details

Details for the file genmrmr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: genmrmr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.0 Windows/10

File hashes

Hashes for genmrmr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98530322fdec3d592b72eda4cfe59a0cc14e3b96c3aaf7eae6c481c733172b63
MD5 5970673566683047a3d68b9df2aaeaa2
BLAKE2b-256 8887fde4e5ccf68b6d94fef3b66a5561b6f70565e5ec7868d2cddb1aa82fe1f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page