Skip to main content

Minimal Learning Machine implementation using the scikit-learn API

Project description

scikit-mlm

GitHub PyPI GitHub commit activity GitHub last commit DOI

scikit-mlm is a Python module implementing the Minimal Learning Machine (MLM) machine learning technique using the scikit-learn API.

instalation

the scikit-mlm package is available in PyPI. to install, simply type the following command:

pip install scikit-mlm

basic usage

example of classification with the nearest neighbor MLM classifier:

from skmlm import NN_MLM
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import cross_val_score
from sklearn.pipeline import make_pipeline
from sklearn.datasets import load_iris

# load dataset
dataset = load_iris()

clf = make_pipeline(MinMaxScaler(), NN_MLM(rp_number=20))
scores = cross_val_score(clf, dataset.data, dataset.target, cv=10, scoring='accuracy')

print('AVG = %.3f, STD = %.3f' % (scores.mean(), scores.std()))

how to cite scikit-mlm

if you use scikit-mlm in your paper, please cite it in your publication.

@misc{scikit-mlm,
    author       = "Madson Luiz Dantas Dias",
    year         = "2019",
    title        = "scikit-mlm: An implementation of {MLM} for scikit-learn framework",
    url          = "https://github.com/omadson/scikit-mlm",
    doi          = "10.5281/zenodo.2875802",
    institution  = "Federal University of Cear\'{a}, Department of Computer Science" 
}

contributing

this project is open for contributions. here are some of the ways for you to contribute:

  • bug reports/fix
  • features requests
  • use-case demonstrations

to make a contribution, just fork this repository, push the changes in your fork, open up an issue, and make a pull request!

list of implemented technics

future improvements

list of methods that will be implemented in the next releases:

contributors

acknowledgement

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

scikit-mlm-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

scikit_mlm-0.1.0-py2-none-any.whl (8.6 kB view details)

Uploaded Python 2

File details

Details for the file scikit-mlm-0.1.0.tar.gz.

File metadata

  • Download URL: scikit-mlm-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for scikit-mlm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e86c44df6955694e3d391987a459d7b9f3857185d5965222120c87e7ac0e1aee
MD5 b8520138fff3e698aa9a79033d1e23c3
BLAKE2b-256 1a87f673ee869ea77da0fa7a4bfb54b403bfa9f5be7352828410315bf9aecd7f

See more details on using hashes here.

File details

Details for the file scikit_mlm-0.1.0-py2-none-any.whl.

File metadata

  • Download URL: scikit_mlm-0.1.0-py2-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for scikit_mlm-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 eaa4359548ffc95b69c7d4b7631866575091f356265e68079383b87e031fdaae
MD5 8bde56fec3d8a6ec2e11933c81149a45
BLAKE2b-256 c233611b02df060ce031e6e24ef6829cff144c2addd717ca79c73decf988fad5

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