Skip to Content
Scikit-LearnとPyTorchによる実践的マシン学習
book

Scikit-LearnとPyTorchによる実践的マシン学習

by Aurélien Géron
October 2025
Intermediate to advanced
878 pages
15h 23m
Japanese
O'Reilly Media, Inc.
Content preview from Scikit-LearnとPyTorchによる実践的マシン学習

第2章 機械学習プロジェクト エンド・ツー・エンド機械学習プロジェクト

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

この章では、不動産会社で最近雇われたデータサイエンティストになりきって、例のプロジェクトを最後までやり通す。この例は架空のものである。ゴールは機械学習プロジェクトの主なステップを説明することであり、不動産ビジネスについて何かを学ぶことではない。これから説明する主なステップは以下の通りだ:

  1. 全体像を見よう。

  2. データを入手する。

  3. データを探索し、可視化して洞察を得る。

  4. 機械学習アルゴリズムのためにデータを準備する。

  5. モデルを選択し、トレーニングする。

  6. モデルをファインチューニングする。

  7. 解決策を提示する。

  8. システムを立ち上げ、監視し、保守する。

実際のデータを扱う

あなたがマシン学習について学んでいるとき、人工的なデータセットではなく、実世界のデータで実験するのがベストである。幸いなことに、あらゆるドメインにわたる何千ものオープンデータセットから選ぶことができる。ここでは、データを入手するのに使える人気のオープンデータリポジトリをいくつか紹介しよう:

この章では、StatLibリポジトリのCalifornia Housing Pricesデータセット を使う(図2-1参照)。1(を使う(図2-1参照)。このデータセットは1990年のカリフォルニア州国勢調査のデータに基づいている。これは正確には最近のデータではないが(ベイエリアのいい家は当時まだ手ごろだった)、学習に適した品質を持っているので、最近のデータであることにする。教える目的のために、カテゴリー属性を追加し、いくつかの特徴を除去した。

Map of California displaying housing price data with colored dots representing median house values and dot size indicating population density.
図2-1. カリフォルニア州の住宅価格

全体像を見る

マシンラーニング住宅公社へようこそ!最初のタスクは、カリフォルニア州の国勢調査データを使って、同州の住宅価格のモデルを構築することだ。このデータには、カリフォルニア州の各ブロックグループの人口、中央値収入、中央値住宅価格などのメトリックが含まれている。ブロックグループとは,米国国勢調査局がサンプ リングデータを公表している最小の地理的単位であ る(ブロックグループの人口は,通常 600 人から 3,000 人である)。略して「地区」と呼びたい。

あなたのモデルは、このデータから学習し、他のすべてのメトリックが与えられた場合、どの地区の住宅価格の中央値も予測できるはずである。

ヒント

あなたはよく整理されたデータ・サイエンティストなので、最初にすべきことは、あなたのマシン学習プロジェクトのチェックリスト を引っ張り出すことである。https://homl.info/checklist にあるものから始めてもよい ...

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

AIネイティブのソフトウェアデリバリー

AIネイティブのソフトウェアデリバリー

Nick Durkin, Eric Minick, Chinmay Gaikwad
ファストAPI

ファストAPI

Bill Lubanovic
高リスク分野のための機械学習 ―責任あるAI構築のための実践アプローチ

高リスク分野のための機械学習 ―責任あるAI構築のための実践アプローチ

Patrick Hall, James Curtis, Parul Pandey, 高江洲 勲, 伊東 道明, 園田 道夫, 北條 孝佳, 石川 太一

Publisher Resources

ISBN: 0642572270087