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数据科学手册
机器学习
|
397
档有一篇非常精彩的流形学习算法对比文章(
http://scikit-learn.org/stable/modules/manifold.
html
)。基于我的个人经验,给出以下几点建议。
• LLE
在 sklearn.manifold.LocallyLinearEmbedding 中实现。它对于简单问题,例如前面
介绍过的
S
曲线、局部线性嵌入(
LLE
)及其变体(特别是
modified LLE
)的学习效果
非常好。
• Isomap
在 sklearn.manifold.Isomap 中实现。虽然
LLE
通常对现实世界的高维数据源的
学习效果比较差,但是
Isomap
算法往往会获得比较好的嵌入效果。
•
t-
分布邻域嵌入算法
(
t-distributed stochastic neighbor embedding
,
t-SNE
)在 sklearn.
manifold.TSNE 中实现。将它用于高度聚类的数据效果比较好,但是该方法比其他方法
学习速度慢。
如果你对这些方法的工作方式感兴趣,那么我建议你用本节的数据运行这些方法,进而进
行对比。
5.10.7
 示例
:
用
Isomap
处理人脸数据
流形学习经常被用于探索高维数据点内部的关系。常见的高维数据示例就是图像数据。例
如,一组
1000
像素的图像经常被看成是
1000
维度的点集合,每幅图像中每一个像素的亮
度信息定义了相应维度上的坐标值。
这次我们将用
Isomap
方法处理一些人脸数据——使用
Wild
数据集中带标签的人脸数据,
这个数据集在
5.9
节已经出现过。执行以下命令就会下载数据 ...
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