scikit mlm
0.1.0
scikit-mlm是使用Scikit-Learn API實現最小學習機(MLM)機器學習技術的Python模塊。
scikit-mlm軟件包可在PYPI中找到。要安裝,只需鍵入以下命令:
pip install scikit-mlm
--user標誌來安裝在非系統位置(取決於您的環境)。另外,您可以使用sudo執行pip命令(不建議)。pip版本(現在是pip的默認二進制軟件包格式),則可能需要添加--use-wheel選項。 與最近的鄰居MLM分類器分類的示例:
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 ()))如果您在論文中使用scikit-mlm ,請在出版物中引用它。
@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"
}
該項目開放供款。以下是您貢獻的一些方法:
為了做出貢獻,只需分叉這個存儲庫,請推動叉子的更改,打開問題並提出拉動請求!
將在下一個發行版中實現的方法列表: