实现dagging方法的python包
dagging的Python项目详细描述
实现匕首方法的python包
- 自由软件:3条款BSD许可证
示例
fromdaggingimportDaggingClassifierfromsklearn.datasetsimportload_iris# Load Iris from from scikit-learn.X,y=load_iris(True)model=DaggingClassifier(n_estimators=50,voting='hard',random_state=0)# Train the model.model.fit(X,y)# Accuracyprint(model.score(X,y))
依赖关系
依赖性要求基于最新的scikit学习版本:
- scipy
- 努比
- SCIKIT学习
安装
匕首目前在pypi的存储库中可用,您可以 通过pip安装
pip install -U dagging
如果愿意,可以克隆它并运行setup.py文件。使用以下命令 从github获取副本并安装所有依赖项的命令:
git clone https://github.com/chkoar/dagging.git cd dagging pip install .
或者使用pip和github安装:
pip install -U git+https://github.com/chkoar/dagging.git