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
- thanks for @JamesRitchie, the initial idea of this project is inspired on the scikit-rvm repo
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for scikit_mlm-0.0.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85e5ddc6d1907eae8a77dee056d1f3f211548866882484fd3b6ea11363a7496 |
|
MD5 | b6ba639d81aea84fb0a8155213de9180 |
|
BLAKE2b-256 | fc73289adb28fb066d6d66810acacdcafba69c23c24da05bd2825ab7d7314670 |