ペア相関

Pythonで学ぶ次元削減

Jeroen Boeye

Head of Machine Learning, Faktion

ペア相関

sns.pairplot(ansur, hue="gender")

ansur ペアプロット

Pythonで学ぶ次元削減

ペア相関

sns.pairplot(ansur, hue="gender")

ansur ペアプロット(注釈付き)

Pythonで学ぶ次元削減

相関係数

極端な相関

Pythonで学ぶ次元削減

相関係数

乱れた相関

Pythonで学ぶ次元削減

相関行列

weights_df.corr()

相関行列 ansur

Pythonで学ぶ次元削減

相関行列

weights_df.corr()

相関行列 ansur 重複あり

Pythonで学ぶ次元削減

相関行列

weights_df.corr()

相関行列 ansur 重複 2

Pythonで学ぶ次元削減

相関行列

weights_df.corr()

相関行列 ansur 対角

Pythonで学ぶ次元削減

相関行列の可視化

cmap = sns.diverging_palette(h_neg=10, 
                             h_pos=240, 
                             as_cmap=True)

sns.heatmap(weights_df.corr(), center=0, 
            cmap=cmap, linewidths=1, 
            annot=True, fmt=".2f")

相関行列の可視化

Pythonで学ぶ次元削減

相関行列の可視化

corr = weights_df.corr()

mask = np.triu(np.ones_like(corr, dtype=bool))
array([[ True,  True,  True],
       [False,  True,  True],
       [False, False,  True]])
Pythonで学ぶ次元削減

相関行列の可視化

sns.heatmap(weights_df.corr(), mask=mask, 
            center=0, cmap=cmap, linewidths=1, 
            annot=True, fmt=".2f")

身長・体重の相関(マスクあり)

Pythonで学ぶ次元削減

相関行列の可視化

ansur 相関行列の一部

Pythonで学ぶ次元削減

Vamos praticar!

Pythonで学ぶ次元削減

Preparing Video For Download...