Skip to main content

Minimal Learning Machine implementation using the scikit-learn API

Project description

scikit-mlm

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

quickstart

With NumPy, SciPy and scikit-learn available in your environment, install with:

pip3 install scikit-mlm

Classification example 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()))

implemented methods

original proposal

speed up

reference points selection methods

classification

cost Sensitive

how to cite scikit-mlm

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

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

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.0.6.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

scikit_mlm-0.0.6-py2-none-any.whl (5.3 kB view hashes)

Uploaded Python 2

Supported by

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