def test_sample_weight_elm():
"""Smoke test - AdaBoostClassifier should work with ELMClassifer."""
X = Xdigits_binary[:50]
y = ydigits_binary[:50]
elm = ELMClassifier(n_hidden=20)
clf = AdaBoostClassifier(n_estimators=3, base_estimator=elm)
clf.fit(X, y)
assert_greater(clf.score(X, y), 0.9)
test_elm.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录