Skip to Content
PythonによるAIプログラミング入門 ―ディープラーニングを始める前に身につけておくべき15の基礎技術
book

PythonによるAIプログラミング入門 ―ディープラーニングを始める前に身につけておくべき15の基礎技術

by Prateek Joshi, 相川 愛三
March 2019
Intermediate to advanced
424 pages
5h 18m
Japanese
O'Reilly Japan, Inc.
Content preview from PythonによるAIプログラミング入門 ―ディープラーニングを始める前に身につけておくべき15の基礎技術

3章アンサンブル学習を用いた予測分析

本章では、アンサンブル学習と、それを用いた予測分析について説明します。本章を通じて、次のような事柄を学びます。

  • アンサンブル学習を用いた学習モデルの構築
  • 決定木と分類器の作り方
  • ランダムフォレストと、Extremely Randomized Trees(ERT)と、これらを使った分類器の作り方
  • 予測の確信度の推定
  • クラス不均衡の扱い方
  • グリッドサーチを使った最適な訓練パラメータの発見法
  • 特徴量の相対重要度
  • ERT回帰モデルを使った交通量予測

3.1 アンサンブル学習とは?

アンサンブル学習(ensemble learning)とは、複数のモデルを組み合わせることによって、個々のモデルよりも良い結果を得られるようにする手法です。個々のモデルは、分類モデルや回帰モデルなど、データをモデル化するものならなんでもかまいません。アンサンブル学習は、データ分類、予測モデル、異常検知など幅広い分野で使われています。

そもそも、なぜアンサンブル学習が必要なのでしょうか? 実生活の例を用いて説明します。新しいテレビを買いたいのですが、最新モデルのことはよくわからないとします。最もお買い得なテレビを見つけることが目標ですが、判断するのに十分な知識を持ち合わせていません。このような状況では、その分野の専門家の何人かに意見を聞いて回ります。そうすればベストな判断に役立つでしょう。

多くの場合、ひとつの意見だけに頼らずに、複数の意見を組み合わせて最終判断をします。間違った判断や準最適な判断を下してしまう可能性を減らしたいからです。

3.1.1 アンサンブル学習

モデルを選択する場合に最も一般的な手順は、教師データに対して誤差が最小になるものを選ぶことです。しかし、常にうまくいくわけではありません。モデルが教師データに過剰適合したり、偏りが生じたりするかもしれません。交差検証を用いてモデルを計算しても、未知のデータをうまく処理できないことがあります。 ...

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

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也
詳説 イーサネット 第2版

詳説 イーサネット 第2版

Charles E. Spurgeon, Joann Zimmerman, 三浦 史光, 豊沢 聡

Publisher Resources

ISBN: 9784873118727Other