当前位置:网站首页>Bias and variance
Bias and variance
2022-07-19 03:39:00 【elkluh】
deviation : Deviation refers to the difference between the result of model training and the real value .
explain : Deviation measures the deviation between the expected prediction and the real result of the learning algorithm , Immediately draw the fitting ability of learning algorithm itself . If the deviation is too large , We need to shrink it , That is to reduce the difference between the real value , The effect of this training will be better .
variance : Variance refers to the difference between the results obtained from different training sets . Expectation prediction is for the same sample under different training sets ( Test set ) The predicted value of is taken as the mean , Instead of taking the average of the predicted values of all samples in a training .
explain : Variance measures the change of learning performance caused by the change of training set of the same size , Immediately draws the impact of data perturbation .
(1) Define expectations as : ![\bar{f}(x) = E _{D}[f(x;D)]](http://img.inotgo.com/imagesLocal/202207/19/202207170006025138_5.gif)
among
As the training set
Medium
On the model
Output ,
Tag the model in the dataset ,
by
The true mark of .
(2) The calculation formula of variance is : ![var(x) = E_{D} [ (f(x;D)-\bar{f}(x))^{2} ]](http://img.inotgo.com/imagesLocal/202207/19/202207170006025138_7.gif)
( Every x Calculate the expectation based on the difference between the obtained value and the average value , Different D You will get different variances , See the generalization of the model by observing the change of variance )
(3) The calculation formula of deviation is : 
( First seek x Expectations of predicted values , Recalculate with actual value y Difference )

For deviations and variances , It can be estimated that . A model , Use different data sets for modeling , Test on a test set , Get a series of predicted values , The variance of the predicted value is the required variance , The difference between the mean value of the predicted value and the real value is a deviation .
Here is an example of my calculation


边栏推荐
- ES6學習筆記——B站小馬哥
- Shell script receives and returns parameters
- KubeCon + CloudNativeCon Europe 2022
- 二分查找(leetcode704.很简单必会的)
- ES6 learning notes - brother Ma at station B
- KubeCon + CloudNativeCon Europe 2022
- Common MySQL commands you can use
- Configure high availability using virtual ip+kept
- Oracle queries the host name and the corresponding IP address
- Through openharmony compatibility evaluation, the big brother development board and rich teaching and training resources have been ready
猜你喜欢

leetcode:50. Pow(x, n)

VGG (Visual Geometry Group)
![[Jianzhi offer] 31-35 questions (judge whether a sequence is one of the out of stack sequences, sequence print binary tree, branch print, and reverse print each line), judge whether the sequence is th](/img/fd/f0c0e17f2942525a78fbd443514992.png)
[Jianzhi offer] 31-35 questions (judge whether a sequence is one of the out of stack sequences, sequence print binary tree, branch print, and reverse print each line), judge whether the sequence is th

Neural network learning notes 2.2 -- write a simple convolution neural network image classifier with MATLAB

MySQL 增删查改(基础)

基于Pandoc与VSCode的 LaTeX环境配置

Visual analysis of ncnn param file and bin model
![Theoretical basis and code implementation of dueling dqn [pytoch + pendulum-v0]](/img/f6/cbfe32991449975fe51f2e2c0c1d47.png)
Theoretical basis and code implementation of dueling dqn [pytoch + pendulum-v0]

2002 - Can‘t connect to server on ‘127.0.0.1‘ (36)

By voting for the destruction of STI by Dao, seektiger is truly community driven
随机推荐
代理模式——B站动力节点
Detailed explanation of arrow function and this direction
Digital type processing and convenient method of ext JS
[Jianzhi offer] 31-35 questions (judge whether a sequence is one of the out of stack sequences, sequence print binary tree, branch print, and reverse print each line), judge whether the sequence is th
Go语言中的Iota关键字怎么使用
Shell script receives and returns parameters
Theoretical basis of doubledqn and its code implementation [pytoch + pendulum-v0]
Neural network learning notes 2.2 -- write a simple convolution neural network image classifier with MATLAB
Use RZ, SZ commands to upload and download files through xshell7
支持工业级瘦设备4G接入,润和软件DAYU120通过OpenHarmony兼容性测评
leetcode:78. subset
ES6學習筆記——B站小馬哥
Envi: (the most detailed tutorial in 2022) custom coordinate system
Rewrite equals why rewrite hashcode
Pure virtual function
Oracle queries the maximum partition of non self growing partition
Gnome boxes virtual machine creation and installation
Dive Into Deep Learning——2.2数据预处理
Yolov5 opencv DNN reasoning
10. Redis 面试常见问答