tests.py 文件源码

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

项目:scikit-rebate 作者: EpistasisLab 项目源码 文件源码
def test_multisurf_pipeline_mixed_attributes():
    """Ensure that MultiSURF works in a sklearn pipeline with mixed attributes"""
    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_mixed_attributes, labels_mixed_attributes, cv=3)) > 0.7
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号