Skip to Content
Python数据科学手册
book

Python数据科学手册

by Jake VanderPlas
January 2018
Intermediate to advanced
470 pages
13h 23m
Chinese
Posts & Telecom Press
Content preview from Python数据科学手册
366
|
第
5
章
图 5-66:人脸数据混淆矩阵
这幅图可以帮助我们清晰地判断哪些标签容易被分类器误判。
真实环境中的人脸识别问题的照片通常不会被切割得这么整齐(即使像素相同),两类人
脸分类机制的唯一差别其实是特征选择:你需要用更复杂的算法找到人脸,然后提取图片
中与像素化无关的人脸特征。这类问题有一个不错的解决方案,就是用
OpenCV
(
http://
opencv.org
)配合其他手段,包括最先进的通用图像和人脸图像的特征提取工具,来获取
人脸特征数据。
5.7.4
 支持向量机总结
前面已经简单介绍了支持向量机的基本原则。支持向量机是一种强大的分类方法,主要有
四点理由。
•
模型依赖的支持向量比较少,说明它们都是非常精致的模型,消耗内存少。
•
一旦模型训练完成,预测阶段的速度非常快。
•
由于模型只受边界线附近的点的影响,因此它们对于高维数据的学习效果非常好——即
使训练比样本维度还高的数据也没有问题,而这是其他算法难以企及的。
•
与核函数方法的配合极具通用性,能够适用不同类型的数据。
但是,
SVM
模型也有一些缺点。
•
随着样本量
N
的不断增加,最差的训练时间复杂度会达到
[
N
3
]
;经过高效处理后,也
只能达到
[
N
2
]
。因此,大样本学习的计算成本会非常高。
•
训练效果非常依赖于边界软化参数
C
的选择是否合理。这需要通过交叉检验自行搜索;
当数据集较大时,计算量也非常大。
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

Luciano Ramalho
Python数据分析基础

Python数据分析基础

Clinton W. Brownley
Python数据处理

Python数据处理

Jacqueline Kazil, Katharine Jarmul

Publisher Resources

ISBN: 9787115475893