【sklearn】四种评估尺度

摘自博客:https://blog.csdn.net/Softdiamonds/article/details/80061191

在sklearn中包含四种评价尺度,分别为mean_squared_error、mean_absolute_error、explained_variance_score 和 r2_score。

1、均方差(mean-squared-error)

觉得这里应该是计算平方的

2、平均绝对值误差(mean_absolute_error)

3.可释方差得分(explained_variance_score) 

explained variation(变化) measures the proportion to which a mathematical model accounts(占有) for the variation (dispersion:离散) of a given data set

4.中值绝对误差(Median absolute error)

扫描二维码关注公众号,回复: 4089363 查看本文章

5.R2 决定系数(拟合优度)

模型越好:r2→1

模型越差:r2→0

可能存在负数,红色标明的真实的y值的均值,蓝色的是预测值

猜你喜欢

转载自blog.csdn.net/feifei_csdn/article/details/84102759