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.8
 詳細:決定木とランダムフォレスト
433
9 0.96 0.98 0.97 46
avg / total 0.98 0.98 0.98 450
そして、どの程度正しいのかを混合行列を使って測ります( 5-79)。
In[16]: from sklearn.metrics import confusion_matrix
mat = confusion_matrix(ytest, ypred)
sns.heatmap(mat.T, square=True, annot=True, fmt='d', cbar=False, cmap='RdPu')
plt.xlabel('true label')
plt.ylabel('predicte
d label');
真のラベル
図5-79 ランダムフォレストによる文字認識の混合行列
特に調整を行っていない単純なランダムフォレストでも、文字が非常に正確に分類できることが
わかります。
5.8.5
 ランダムフォレストまとめ
この節では、アンサンブルの概念、特にランダムな決定木のアンサンブルであるランダムフォレ
ストモデルについて簡単に紹介しました。ランダムフォレストは、いくつかの利点を持つ強力な手
法です。
基礎となる決定木の単純さにより、学習と予測の両方が非常に高速に動作します。さらに、
個々の決定木が完全に独立した存在なので、それぞれのタスクの並列化が容易です。
複数の決定木による確率的な分類が可能です。推定器ごとの確率(
scikit-learn
では ...
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