当前位置:网站首页>Maximum likelihood estimation, divergence, cross entropy
Maximum likelihood estimation, divergence, cross entropy
2022-07-03 05:48:00 【code bean】
If this message , You can put things that were very uncertain before , To determine the , It shows that this information is very informative !
This picture is to explain , How mathematicians define the process of information quantity :
in other words , The amount of information about Argentina winning the championship = The amount of information about Argentina reaching the finals + The amount of information that Argentina won the finals , however x Itself is probability , So here 1/8 yes x1*x2 Result . And :
This characteristic is log Peculiar . Then the base number is greater than 1 When ,log Monotone increasing , So add a minus sign to make it decrease separately .
The definition of this information quantity is completed .
Next, let's look at the definition of information entropy :
The process of seeking information entropy is the process of seeking expectation : Multiply the amount of information by the probability of the event , Then sum it .
Information entropy , Describe the “ news ” The degree of uncertainty or confusion . And here it is “ news ” It can be regarded as a probability model . And find the information entropy of the probability model , Is to find the expectation of the probability model !
If you want to compare the distribution differences between the two models , We need a concept called relative entropy (KL The divergence )
Here is a proof , Cross entropy must be greater than entropy :
So if you want the two models to be the closest , That is to find the minimum value of cross entropy . What deep learning does is to make the neural network model approach the human brain model . So the cross entropy of neural network and human brain model , It can be used as a loss function !( The smaller the cross entropy , The closer the two models are )
Then the following function , It's actually , The expansion of cross entropy of a binary classification :
here Y It's human judgment , There are only two possibilities ,1 perhaps 0, and yhead, Is the output value of neural network , It's a probability . The cross entropy formed between them constitutes the loss function of two classifications .
Reference resources :
《PyTorch Deep learning practice 》 Complete the collection _ Bili, Bili _bilibili
边栏推荐
- 期末复习DAY8
- chromedriver对应版本下载
- Export the altaro event log to a text file
- Strategy pattern: encapsulate changes and respond flexibly to changes in requirements
- The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"
- 70 shell script interview questions and answers
- ansible防火墙firewalld设置
- 卷积神经网络CNN中的卷积操作详解
- EMD distance - example of use
- redis 遇到 NOAUTH Authentication required
猜你喜欢
Redhat7 system root user password cracking
一起上水硕系列】Day 9
今天很多 CTO 都是被幹掉的,因為他沒有成就業務
[written examination question analysis] | | get [sizeof and strlen] [pointer and array] graphic explanation + code analysis
Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
Export the altaro event log to a text file
Latest version of source insight
Apache+PHP+MySQL环境搭建超详细!!!
How do I migrate my altaro VM backup configuration to another machine?
[teacher Zhao Yuqiang] Cassandra foundation of NoSQL database
随机推荐
【一起上水硕系列】Day 7 内容+Day8
[Zhao Yuqiang] deploy kubernetes cluster with binary package
redis 遇到 NOAUTH Authentication required
深度学习,从一维特性输入到多维特征输入引发的思考
2022.6.30DAY591
一起上水硕系列】Day 9
If function of MySQL
"C and pointer" - Chapter 13 function of function pointer 1 - callback function 1
理解 期望(均值/估计值)和方差
@Import annotation: four ways to import configuration classes & source code analysis
Capacity expansion mechanism of map
Map的扩容机制
Redhat7 system root user password cracking
Redis cannot connect remotely.
Txt document download save as solution
ansible防火墙firewalld设置
Btrfs and ext4 - features, strengths and weaknesses
MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)
2022.6.30DAY591
Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)