MLP.py 文件源码

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

项目:ML_algorithm 作者: luoshao23 项目源码 文件源码
def test():
    from sklearn.neural_network import MLPClassifier
    records = np.random.randint(0, 2, (10, 6))
    results = np.random.randint(0, 2, (10, 3))
    # records = np.eye(6)
    # results = records

    nn = mynn()
    nn2 = MLPClassifier()

    nn._fit(records, results)
    nn2.fit(records, results)
    print results
    print nn._predict(records)
    print nn2.predict(records)
    # print nn.ww

    # print results
    # print nn.predict(records)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号