tests.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:scikit-rebate 作者: EpistasisLab 项目源码 文件源码
def test_multisurf_pipeline():
    """Ensure that MultiSURF works in a sklearn pipeline when it is parallelized"""
    np.random.seed(320931)

    clf = make_pipeline(MultiSURF(n_features_to_select=2, n_jobs=-1),
                        RandomForestClassifier(n_estimators=100, n_jobs=-1))

    assert np.mean(cross_val_score(clf, features, labels, cv=3)) > 0.7
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号