Skip to Content
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
book

Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

by Jake VanderPlas, 菊池 彰
May 2018
Intermediate to advanced
556 pages
13h 21m
Japanese
O'Reilly Japan, Inc.
Content preview from Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
5.10
 詳細:多様体学習
453
5.10.4
 非線形埋め込み:
MDS
がうまくいかない場合
これまでの議論では、高次の空間で構成されるデータの回転、平行移動、および拡大などの線形
埋め込みについて考えてきました。埋め込みが非線形であるとき、つまりこの単純な操作の集合を
超えた場合には
MDS
はうまく働きません。次の埋め込みを考えてみましょう。入力を
3
次元空間
内で「
S
」の形に曲げた配置にします。
In[12]: def make_hello_s_curve(X):
t = (X[:, 0] - 2) * 0.75 * np.pi
x = np.sin(t)
y = X[:, 1]
z = np.sign(t) * (np.cos(t) - 1)
return np.vstack((x, y, z))
.T
XS = make_hello_s_curve(X)
これもまた
3
次元データですが、埋め込みがはるかに複雑であることがわかります( 5-100)。
In[13]: from mpl_toolkits import mplot3d
ax = plt.axes(projection='3d')
ax.scatter3D(XS[:, 0], XS[:, 1], XS[:, 2],
**colorize);
図5-100 3次元に非線形に埋め込まれたデータ
データポイント間の基本的な関係は依然として存在しますが、今回はデータが非線形に変換され
ました。これは「
S
」の形に巻かれています。
このデータに対して単純な ...
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.
Start your free trial

You might also like

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Jake VanderPlas, 菊池 彰
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9784873118413Other