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の基礎技術

2章教師あり学習を用いた分類と回帰

本章では、教師あり学習を用いたデータ分類と回帰について説明します。本章を通じて、次のような事柄を学びます。

  • 教師あり学習と教師なし学習の違い
  • 分類とは?
  • さまざまなデータ前処理法
  • ラベルのエンコーディング
  • ロジスティック回帰による分類器の作り方
  • 単純ベイズ分類器
  • 混同行列
  • サポートベクターマシン(SVM)に基づく分類器
  • 線形回帰と多項式回帰
  • 1変数と多変数の線形回帰
  • サポートベクター回帰を用いた住宅費の推定

2.1 教師あり学習と教師なし学習

機械に人工知能を導入する最も一般的な手法のひとつが機械学習です。機械学習は、教師あり学習と教師なし学習の2つに大きく分けられます。ほかの分け方もありますが、あとで説明することにします。

教師あり学習(supervised learning)とは、ラベル付きの教師データを用いて学習モデルを構築する方法です。例として、年齢や学歴、住所などから、その人の所得を自動推定するシステムを開発することを考えます。そのためには、人々の詳細属性データを集めたデータベースを作り、それに所得データをラベル付けします。こうすることにより、どの属性がいくらの所得に対応するのかを、アルゴリズムに伝えることができます。この対応づけに基づいて、属性群からその人の所得を計算する方法を学習できるのです。

一方、教師なし学習(unsupervised learning)とは、ラベル付きのデータを用いずに学習モデルを構築する方法です。ある意味、前段落の話と真逆です。ラベルがないため、与えられたデータだけに基づいて潜在的な本質を抽出する必要があります。例えば、データの点群を複数のグループに分けるシステムを構築するとします。難しいのは、どのように分けるべきなのか、その基準が厳密にはわからない、ということです。したがって、教師なし学習のアルゴリズムは、与えられたデータセットを可能な限り最適な方法でグループ分けするしかありません。 ...

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