Skip to Content
数据科学中的实用统计学(第2版)
book

数据科学中的实用统计学(第2版)

by Peter Bruce, Andrew Bruce, Peter Gedeck
October 2021
Intermediate to advanced
289 pages
8h 31m
Chinese
Posts & Telecom Press
Content preview from 数据科学中的实用统计学(第2版)
统计机器学习
|
209
信息熵的计算公式是:
22
(A) log ( ) (1 ) log (1 )I pp p p=− −− −
从图
6-5
可知,
Gini
不纯度(缩放后的)和信息熵非常相似,对于中等和较高的准确率,
信息熵可以给出较高的不纯度分数。
图 6-5:Gini 不纯度与信息熵
Gini
系数
不要将
Gini
不纯度与
Gini
系数
相混淆。它们表示的概念类似,但
Gini
系数
只适用于二元分类问题,而且与
AUC
这种度量方式相关(参见
5.4.5
节
)。
前面讨论过的分割算法中使用了不纯度。对于每次分割数据得到的每个分区都要计算不纯
度。计算时会使用加权平均,最终选择能得到最小的加权平均结果的分割方式(每个阶段
都是这样)。
6.2.4
 让树停止生长
树原本是用来识别“大”规则的,即识别出数据之间真实而可靠的关系,但随着树的不断
增长,分割规则也变得越来越细致,这时树的功能就逐渐发生了转变,只能识别“微”规
则了,而这种规则只能反映出数据中的噪声。一棵充分生长的树会分出所有的叶子节点,
因此它对训练数据的分类准确度可以达到
100%
。当然
,这种准确度只是一种表象,其实
210
|
第
6
章
数据被过拟合了(参见
6.1.5
节中的“偏差与方差的权衡”部分),我们拟合的只是训练数
据中的噪声,并不是我们需要的能识别新数据的信号。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787115569028