Skip to main content

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

Metadata

Release files for scikit-mlm 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scikit-mlm 0.1.1
File Size Uploaded Provenance Actions
scikit-mlm-0.1.1.tar.gz 7.4 kB Without provenance Details for scikit-mlm-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scikit-mlm 0.1.1
File Interpreter ABI Platform Actions
scikit_mlm-0.1.1-py2-none-any.whl Python 2 none any Details for scikit_mlm-0.1.1-py2-none-any.whl

Total release size: 16.3 kB

Release files / scikit-mlm-0.1.1.tar.gz

Download URL scikit-mlm-0.1.1.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2c2a97a286f11c74c791ec5b7aca90966f0e66f7f686984ff148876dff037ed6
BLAKE2b-256 checksum
How to use checksums
03df4beec31e0d421ee4daffc7838ca262b4811340acca83b689f4020f180e1f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / scikit_mlm-0.1.1-py2-none-any.whl

Download URL scikit_mlm-0.1.1-py2-none-any.whl
Size 8.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
c8e0bef9fad7766ca130403e42984524db33e58183cc9e0bd2241ff3382946b0
BLAKE2b-256 checksum
How to use checksums
d833e01214e7a3187b79c8f747f92a1ff9981d38a4affc30cfb6f5e4376a0f10
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for scikit-mlm 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page