Skip to Content
面向数据科学家的实用统计学
book

面向数据科学家的实用统计学

by Peter Bruce, Andrew Bruce
October 2018
Beginner to intermediate
238 pages
6h 32m
Chinese
Posts & Telecom Press
Content preview from 面向数据科学家的实用统计学
分类
|
155
准确率
-
召回率曲线
除了
ROC
曲线之外,准确率
-
召回率(
PR
)曲线也很有启发意义。
PR
曲线
的计算方式与
ROC
曲线类似,只是数据按可能性从小到大进行排序,并且
计算的统计量是累积准确率和召回率。
PR
曲线对于评估具有高度不平衡结
果的数据非常有用。
5.4.5
 
AUC
ROC
曲线是一种十分有用的图形工具,但并非分类器性能的一种度量。然而,我们可以使
用
ROC
曲线生成
曲线下面积
(
AUC
)度量。
AUC
就是
ROC
曲线下的总面积。
AUC
的值
越大,分类器越有效。如果
AUC
为
1
,表示一个完美的分类器:将所有
1
正确分类,且没
有任何
0
被误分类为
1
。
一个完全无效的分类器在
ROC
中显示为对角线,它的
AUC
为
0.5
。
图
5-7
显示了贷款数据模型的
ROC
曲线下面积。可以使用数值积分计算
AUC
的值。
sum(roc_df$recall[-1] * diff(1-roc_df$specificity))
[1] 0.5924072
由此可见,贷款数据模型的
AUC
约为
0.59
,对应于一个相对较弱的分类器。
图 5-7:贷款数据的 ROC 曲线下面积
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的智能文本分析

Benjamin Bengfort, Rebecca Bilbro, Tony Ojeda
Python数据处理

Python数据处理

Jacqueline Kazil, Katharine Jarmul
精通機器學習

精通機器學習

Aurélien Géron
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787115493668