当前位置:网站首页>交叉熵损失函数
交叉熵损失函数
2022-07-22 09:24:00 【沙子是沙子】
目录
一、交叉熵损失函数含义
交叉熵是一个信息论中的概念,它原来是用来估算平均编码长度的。给定两个
概率分布p和q,通过q来表示p的交叉熵为
交叉熵刻画的是两个概率分布之间的距离, p代表正确答案, q代表的是预测值,
交叉熵越小,两个概率的分布约接近
二、交叉熵损失函数定义为:

其中: 𝒚𝒊为标签值, 𝑦𝑖′为预值测
三、交叉熵损失函数计算案例
假设有一个3分类问题,某个样例的正确答案是(1, 0, 0)
甲模型经过softmax回归之后的预测答案是(0.5, 0.2, 0.3)
乙模型经过softmax回归之后的预测答案是(0.7, 0.1, 0.2)
边栏推荐
- numpy 求矩阵非零元素的均值
- NRF24L01无线模块设置发射接受模式方法
- Wechat scans the QR code of the website, but only displays the link address, and cannot jump to the web page
- 1.Qt之打包发布程序 (NSIS);
- NRF24L01 wireless module setting transmit receive mode method
- 预算dll要达到的效果,Qt将第三方窗口嵌入程序内,excel操作,数据库外键,判断程序是否启动
- LeetCode 653. 两数之和 IV - 输入 BST
- 在各类数据库中随机查询n条数据
- Leetcode 653. sum of two IV - input BST
- LeetCode 720. 词典中最长的单词
猜你喜欢
Summary of all usage of join in SQL syntax (simple example)
Flink learning notes (III) Flink installation and deployment
微信扫网址的二维码,却只显示链接地址,无法跳转到网页的解决办法
1.Qt之打包发布程序 (NSIS);
The detailed analysis of the divide () method in BigDecimal takes you into the world of source code
程序员面试金典面试题 01.05. 一次编辑
1.常量中有换行符Qt5-》vs的解决方案;2.同一份代码Qt和vs共同编译的问题和解决方案
程序员面试金典面试题 01.04. 回文排列
STM32+ESP8266+MQTT协议连接OneNet物联网平台
Important knowledge points of go language: string, UTF-8 encoding, Rune
随机推荐
1. MySQL null and in; What is 2.127.0.0.2?
PCV, PIL, pilot installation
程序员面试金典面试题 01.04. 回文排列
Leetcode 2039. when the network is idle
Strncpy() copy string (limited by length)
程序员面试金典面试题 01.01. 判定字符是否唯一
程序员面试金典面试题 01.02. 判定是否互为字符重排
QT的sprintf重写;qt下内容按界面的缩放而缩放(不改变字体大小)
各种资料汇总-网络
Go memory model
Ways of data optimization
JVM-JVM概述
After the project is started, the mapper XML file is loaded circularly
Summary 20215 (Kruskal and PRIM)
Summary 20220213 (Floyd and Dijkstra)
Leetcode 654. maximum binary tree
PTA 6-11 find the median of self-determined type element sequence (25 points)
Flink learning notes (V) datastream API
Stm32+esp8266+mqtt protocol connects onenet IOT platform
mysql执行过程以及顺序