Skip to Content
ディープラーニング実践ガイド ―クラウド、モバイル、ブラウザ、エッジデバイス向けAIアプリ開発入門
book

ディープラーニング実践ガイド ―クラウド、モバイル、ブラウザ、エッジデバイス向けAIアプリ開発入門

by Anirudh Koul, Siddha Ganju, Meher Kasam, 足立 昌彦, 太田 満久, 新村 拓也, 藤原 秀平, 松田 実法, 牧野 聡
April 2023
Beginner to intermediate
616 pages
9h 35m
Japanese
O'Reilly Japan, Inc.
Content preview from ディープラーニング実践ガイド ―クラウド、モバイル、ブラウザ、エッジデバイス向けAIアプリ開発入門

3章犬か、猫か: Kerasのコード30行で行う転移学習

 読者が鍵盤ハーモニカの練習中だとします。音楽についての知識がなく、鍵盤ハーモニカが初めて触れる楽器だったとしたら、上手に演奏できるようになるには数ヶ月必要かもしれません。しかし、すでにピアノなどの演奏が得意なら、習得には数日もあれば十分でしょう。これらの楽器が似ているからです。このように、ある作業で得られた知識をファインチューニングして別の作業に適用するということはよくあります(図3-1)。両者の類似度が高ければ、その分だけ知識の適用が容易になります。

図3-1 実世界での転移学習

図3-1 実世界での転移学習

 この現象はディープラーニングにも当てはまります。訓練済みのモデルがあれば、ディープラーニングのプロジェクトは比較的容易に進められます。訓練の際に得られた知識を再利用して、必要な作業へと適応させることができます。このプロセスは転移学習と呼ばれます。

 この章では、転移学習を行い既存のモデルを我々の分類器向けに修正します。必要な時間は数分です。今回も引き続きKerasを利用します。この章をすべて読めば、どんな処理向けにも高精度な画像分類器を作成できるようになるでしょう。

3.1 訓練済みモデルの転用

 転移学習のプロセスについて議論する前に、ディープラーニングが流行している理由についてもう一度考えてみましょう。

  • ImageNetのような大規模で高品質なデータセットの出現
  • 計算機環境の向上(高速で安価なGPUなど)
  • モデルのアーキテクチャー、オプティマイザー、訓練手法などでのアルゴリズムの改良 ...
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

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

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

Prateek Joshi, 相川 愛三
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9784814400287Other