Skip to Content
初めてのTensorFlow.js ―JavaScriptで学ぶ機械学習
book

初めてのTensorFlow.js ―JavaScriptで学ぶ機械学習

by Gant Laborde, あんどうやすし
June 2022
Intermediate to advanced
368 pages
5h 36m
Japanese
O'Reilly Japan, Inc.
Content preview from 初めてのTensorFlow.js ―JavaScriptで学ぶ機械学習

6章高度なモデルとUI

実際に達成されるまでは、いつも不可能に思える。

—— ネルソン・マンデラ

モデルについて基本的なことは理解できました。ただモデルを利用するだけでなく、その結果を画像上にオーバーレイして表示することも可能です。これでなんでもできるようになったと思うかもしれません。しかし、モデルの返す結果は多様で複雑なものもあるいうことをあなたはすでに理解しているはずです。Tic-Tac-Toeモデルで必要なのは次の一手だけでしたが、それにもかかわらず9個のコマがすべて返され、モデルの出力を実際に利用するには事前に少し整理する必要がありました。モデルが複雑になると、このような出力の解釈に関する問題はさらに難しくなります。この章では物体検出に関する複雑なモデルをいくつか取り上げ、そのUIとコンセプトを見ながら、どのような問題が起こりえるのかを確認します。

まずは現在のワークフローがどのようになっているか再確認してみましょう。初めに、モデルを選択します。それから、それがレイヤーモデルかグラフモデルかを確認してください。その情報が見つけられなくても、実際にロードしてみると簡単に確認できます。

次にモデルの入力と出力がどのようになるかについて、形状だけでなくデータが実際に何を表現しているかを確認する必要があります。その後でデータをバッチ化してモデルのpredictを呼び出すと、期待どおりの結果が得られます。と、そのように思っていますよね?

残念ながら、ほかにも知っておかなければいけないことがあります。最高の最新モデルの中には、あなたの考えと大きく異なるものがあります。さまざまな点でそれらは非常に高度で、言い換えればより面倒です。といっても心配しないでください。これまでの章でテンソルを理解し、基礎を固めて、canvas上に認識結果もオーバーレイできるようになりました。あと少し説明を読めば、高度なモデルが提供する新しい世界を扱うことができるようになるでしょう。 ...

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

入門 モダンLinux ―オンプレミスからクラウドまで、幅広い知識を会得する

入門 モダンLinux ―オンプレミスからクラウドまで、幅広い知識を会得する

Michael Hausenblas, 武内 覚, 大岩 尚宏
行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

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

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也

Publisher Resources

ISBN: 9784873119939Other