zoukankan
html css js c++ java
Gini 系数与熵的关系
首先来看二者的基本定义:
⎧
⎩
⎨
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
H
(
X
)
=
−
∑
k
=
1
K
p
k
ln
p
k
Gini
(
X
)
=
∑
k
=
1
K
p
k
(
1
−
p
k
)
将
f
(
x
)
=
−
ln
x
在
x
=
1
处进行一阶泰勒展开(忽略高阶无穷小):
f
(
x
)
=
=
=
f
(
x
0
)
+
f
′
(
x
0
)
(
x
−
x
0
)
+
o
(
⋅
)
f
(
1
)
+
f
′
(
1
)
(
x
−
1
)
+
o
(
⋅
)
1
−
x
因此,熵可近似转化为:
H
(
X
)
=
−
∑
k
=
1
K
p
k
ln
p
k
=
∑
k
=
1
K
p
k
(
−
ln
p
k
)
≃
∑
k
=
1
K
p
k
(
1
−
p
k
)
=
Gini
(
X
)
查看全文
相关阅读:
【leetcode】496. Next Greater Element I
工具网站
[err]Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip._internal import main ImportError: No module named 'pip._internal'
[]TLD code run
【动手学深度学习】
【论文阅读】Wing Loss for Robust Facial Landmark Localisation with Convolutional Neural Networks
【linux基础】ubuntu系统NVIDIA驱动安装
【linux基础】linux不能进入系统
【leetcode】492. Construct the Rectangle
【leetcode】485. Max Consecutive Ones
原文地址:https://www.cnblogs.com/mtcnn/p/9421901.html
最新文章
leetcode算法:Trim a Binar Search Tree
CCTargetedAction
CCToggleVisibility和CCPlace
CCRepeatForever和CCDelayTime
removeFromParentAndCleanup和callfuncN_selector
CCFollow和ActionCallFunc
CCOrbitCamera
action(四)
action(三)
cocos2d-x 2.0通过CCAnimation实例获取CCSpriteFrame
热门文章
cocos2d-x实例学习之常用类及其概要作用
【leetcode】506. Relative Ranks
【leetcode】504. Base 7
【leetcode】501. Find Mode in Binary Search Tree
【leetcode】500_Keyboard Row
【error】 for i in range(len(shape)/2): TypeError: 'float' object cannot be interpreted as an integer
【计算机视觉】MTCNN基于NCNN的测试过程
【计算机视觉】MTCNN的windows-cpu配置
【c++基础】二进制格式输出char类型
【c++基础】C++编写Config类读取配置文件
Copyright © 2011-2022 走看看