Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Minimal Learning Machine implementation using the scikit-learn API.

License

NotificationsYou must be signed in to change notification settings

omadson/scikit-mlm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHubPyPIGitHub commit activityGitHub last commitDownloadsDOI

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

instalation

thescikit-mlm package is available inPyPI. to install, simply type the following command:

pip install scikit-mlm

Having problems?

  • you may need to use the--user flag for the commands above to install in a non-system location (depends on your environment). alternatively, you can execute thepip commands withsudo (not recommended).
  • you may need to add the--use-wheel option if you have an olderpip version (wheels are now the default binary package format forpip).

basic usage

example of classification with thenearest neighbor MLM classifier:

fromskmlmimportNN_MLMfromsklearn.preprocessingimportMinMaxScalerfromsklearn.model_selectionimportcross_val_scorefromsklearn.pipelineimportmake_pipelinefromsklearn.datasetsimportload_iris# load datasetdataset=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 usescikit-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


[8]ページ先頭

©2009-2025 Movatter.jp