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.6.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for scikit_mlm-0.0.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9876387deaa694d263622ea994760c268e914ce132ef1e63dccf1d5ffd273535 |
|
MD5 | 3ff3c8d1a83c75d6258903668cd67b1e |
|
BLAKE2b-256 | 96e1e99b59cc5181b33a40cdca87179573d8b6d4fb7fd2d4a71d1448d0998a1f |