当前位置:网站首页>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


边栏推荐
猜你喜欢

By voting for the destruction of STI by Dao, seektiger is truly community driven

Thinkphp5.0模型操作使用page进行分页

leetcode162. 寻找峰值

laravel的问题

基于MFC如何实现单个文档的文件读写

Rtx3090 installing pytorch3d
![Dqn theoretical basis and code implementation [pytoch + cartpole-v0]](/img/cf/32438e403544aa42e2fdd2e181327c.png)
Dqn theoretical basis and code implementation [pytoch + cartpole-v0]

Wechat applet -- Summary of problems in the actual development of taro framework

论文阅读:U-Net++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentation

Powertor500t reports an error 0x01806803
随机推荐
Using gatekeeper to restrict kubernetes to create specific types of resources
Oracle queries the maximum partition of non self growing partition
Agent mode - power node of station B
The WinRAR command copies the specified folder as a compressed file, and calls the scheduled task for backup.
leetcode 222. Number of nodes of a complete binary tree (required)
2022-07-16: what is the output of the following go language code? A:[]; B:[5]; C:[5 0 0 0 0]; D:[0 0 0 0 0]。 package main import ( “fmt“ )
zsh: command not found: mysql
The fifth day of the third question of Luogu daily
options has an unknown property ‘before‘
Note: light source selection and Application
MySQL log management and full backup incremental backup and recovery
XX市高中网络拓扑整体规划配置
leetcode:78. subset
10. Redis 面试常见问答
MySQL master-slave setup
Gdb+vscode for debugging 8 - use core to analyze dead cycles, deadlocks, and segment errors
洛谷每日三题之第五天
Visual analysis of ncnn param file and bin model
VGG (Visual Geometry Group)
MySQL addition, deletion, query and modification (basic)