jutil.py 文件源码

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

项目:jamespy_py3 作者: jskDr 项目源码 文件源码
def estimate_accuracy4(yEv, yEv_calc, disp = False):
    """
    It was originally located in jchem. However now it is allocated here
    since the functionality is more inline with jutil than jchem. 
    """

    r_sqr = metrics.r2_score( yEv, yEv_calc)
    RMSE = np.sqrt( metrics.mean_squared_error( yEv, yEv_calc))
    MAE = metrics.mean_absolute_error( yEv, yEv_calc)
    DAE = metrics.median_absolute_error( yEv, yEv_calc)

    if disp:
        print("r^2={0:.2e}, RMSE={1:.2e}, MAE={2:.2e}, DAE={3:.2e}".format( r_sqr, RMSE, MAE, DAE))

    return r_sqr, RMSE, MAE, DAE
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号