check_test.py 文件源码

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

项目:MetaHeuristic 作者: gonzalesMK 项目源码 文件源码
def test_predict():
    dataset = load_breast_cancer()
    X, y = dataset['data'], dataset['target_names'].take(dataset['target'])

    # Classifier to be used in the metaheuristic
    sa = SimulatedAnneling(size_pop=2, number_gen=2)
    sa.fit(X,y, normalize=True)
    sa.predict(X)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号