Skip to Content
実践 機械学習システム
book

実践 機械学習システム

by Willi Richert, Luis Pedro Coelho, 斎藤 康毅
October 2014
Intermediate to advanced
288 pages
6h 27m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 機械学習システム
5.6
 ロジスティック回帰を用いる
101
5.6
 ロジスティック回帰を用いる
ロジスティック回帰という手法があります。これはその名前(ロジスティック回帰)にかかわらず、
分類に関する手法です。この手法はテキストベースの分類問題において威力を発揮します。「ロジス
ティック回帰」という名前は、ロジスティック関数で回帰を行い、その結果から分類を行うため、その
ような名前が付けられました。
5.6.1
 ロジスティック回帰の簡単な例
ロジスティック回帰の仕組みを理解するために、ここでは次の例について考えたいと思います。例と
して用いるデータセットは人工的に生成したものです。各データは特徴量と対応するクラス(ラベル)
を持ちます。クラスは
0
1
のどちらかの値を取るものとします。ここで、X軸に特徴量をY軸に対応
するクラスをとってプロットします。図5-7を見てわかる通り、データにはノイズが含まれており、特
徴量が
1
から
6
の間では両方のクラスが存在していることがわかります。そのため、
0
1
の離散的な
値を直接出力するような関数をモデル化するよりは、特徴量
X
がクラス1に属する確率を
P(X)
とし
て、その確率関数をモデル化したほうが良いでしょう。そのようにモデル化を行えば、
P(X)
0.5
り大きければクラス1に、それ以外であればクラス0に分類することができます。
図5-7
ある関数について、その出力値がある決められた範囲(有限範囲)に収まるようにモデル化すること
は、数学的には難しいことです。ここではラベルが01の離散値
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

実践 時系列解析 ―統計と機械学習による予測

実践 時系列解析 ―統計と機械学習による予測

Aileen Nielsen, 山崎 邦子, 山崎 康宏

Publisher Resources

ISBN: 9784873116983Other