tools.py 文件源码

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

项目:document_classification 作者: scotthlee 项目源码 文件源码
def model_diagnostics(mod, X, y, type='single'):
    if type == 'ensemble':
        g = mod.predict(X, y)
    else:
        g = mod.predict(X)
    return diagnostics(g, y)

#functions for accuracy statistics
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号