偏差方差及其与欠拟合过度拟合的关系

Assume you have a classification model, training data and testing data假设您有一个分类模型,训练数据和测试数据x_train , y_train // This is the training datax_test , y_test // This is the testing datay_predicted // the v...
摘要由CSDN通过智能技术生成

Assume you have a classification model, training data and testing data

假设您有一个分类模型,训练数据和测试数据

x_train , y_train // This is the training data
x_test , y_test // This is the testing data
y_predicted // the values predicted by the model given an input

The error rate is the average error of value predicted by the model and the correct value.

误差率是模型预测的值和正确值的平均误差。

偏压 (Bias)

Let’s assume we have trained the model and are trying to predict values with input ‘x_train’. The predicted values are y_predicted. Bias is the error rate of y_predicted and y_train.

假设我们已经训练了模型,并尝试使用输入“ x_train”预测值。 预测值是y_predicted。 偏差是y_predicted和y_train的错误率。

In simple terms,think of bias as the error rate of the training data.

简而言之,可以将偏差视为训练数据的错误率。

When the error rate is high, we call it High Bias and when the error rate is low, we call it Low Bias

当错误率高时,我们将其称为高偏差;当错误率低时,我们将其称为低偏差

方差(Variance)

Let’s assume we have trained the model and this time we are trying to predict values with input ‘x_test’. Again, the predicted values are y_predicted. Variance is the error rate of the y_predicted and y_test

假设我们已经训练了模型,这次我们尝试使用输入“ x_test”预测值。 同样,预测值是y_predicted。 方差是y_predicted和y_test的错误率

In simple terms, think of variance as the error rate of the testing data.

简单来说,将方差视为测试数据的错误率。

When the error rate is high, we call it High Variance and when the error rate is low, we call it Low Variance

当错误率高时,我们称之为高方差;当错误率低时,我们称之为低方差。

不合身 (Underfitting)

When the model has a high error rate in the training data, we can say the model is underfitting. This usually occurs when the number of training samples is too low. Since our model p

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值