Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
機械学習のための数学 〜ベクトルと行列の意味と計算〜
Search
kkeeth
December 12, 2016
Science
1
2.2k
機械学習のための数学 〜ベクトルと行列の意味と計算〜
機械学習を学ぶ上で必要となる、「ベクトル」と「行列」についてのスライドになります。ベクトル同士・行列同士の計算、内積の計算ができることが目標です。
kkeeth
December 12, 2016
Tweet
Share
More Decks by kkeeth
See All by kkeeth
Programming to play with p5.js
clown0082
0
19
とある EM の初めての育休からの学び
clown0082
1
3.7k
The history of Javascript frameworks: changes in front-end design philosophy
clown0082
2
170
Visually experience the beauty of mathematics with p5.js
clown0082
1
3k
Rediscover the joy of coding with Creative Coding
clown0082
0
1.6k
全員が意思決定する会社で開発者体験や生産性を見る大変さについて
clown0082
0
620
JavaScript × Mathematics go to Digital Art
clown0082
1
390
In-house study group at YUMEMI
clown0082
0
210
Playing Ionic Logo by p5.js
clown0082
0
280
Other Decks in Science
See All in Science
統計的因果探索: 背景知識とデータにより因果仮説を探索する
sshimizu2006
4
930
機械学習 - K近傍法 & 機械学習のお作法
trycycle
PRO
0
1.2k
CV_5_3dVision
hachama
0
140
データベース08: 実体関連モデルとは?
trycycle
PRO
0
720
研究って何だっけ / What is Research?
ks91
PRO
1
100
mathematics of indirect reciprocity
yohm
1
150
3次元点群を利用した植物の葉の自動セグメンテーションについて
kentaitakura
2
1.3k
MoveItを使った産業用ロボット向け動作作成方法の紹介 / Introduction to creating motion for industrial robots using MoveIt
ry0_ka
0
510
02_西村訓弘_プログラムディレクター_人口減少を機にひらく未来社会.pdf
sip3ristex
0
500
モンテカルロDCF法による事業価値の算出(モンテカルロ法とベイズモデリング) / Business Valuation Using Monte Carlo DCF Method (Monte Carlo Simulation and Bayesian Modeling)
ikuma_w
0
190
データマイニング - グラフ構造の諸指標
trycycle
PRO
0
100
LayerXにおける業務の完全自動運転化に向けたAI技術活用事例 / layerx-ai-jsai2025
shimacos
2
1.2k
Featured
See All Featured
It's Worth the Effort
3n
185
28k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
The Pragmatic Product Professional
lauravandoore
35
6.7k
Become a Pro
speakerdeck
PRO
29
5.4k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
6
310
Practical Orchestrator
shlominoach
189
11k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Gamification - CAS2011
davidbonilla
81
5.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Thoughts on Productivity
jonyablonski
69
4.7k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
820
BBQ
matthewcrist
89
9.7k
Transcript
Copyright© 2016 Leprachaun Corp. All Rights Reserved 機械学習のための数学 ベクトルと行列の意味と計算
Copyright© 2016 Leprachaun Corp. All Rights Reserved 自己紹介 var my_info =
{ name : ‘Kiyohito Kuwahara’, twitter: ‘@kuwahara_jsri(ちょこちょこ変わります)’, github : ‘k-kuwahara’, qiita : ‘@clown0082’, workplace: ‘Leprachaun Corp.’ }
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトル
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルとは
Copyright© 2016 Leprachaun Corp. All Rights Reserved 単位ベクトル
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルの和、差
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルの和の性質
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルのスカラー倍
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルの大きさ(ノルム)
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルの内積
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルの積(外積)・商について 結論から述べると, 今回はベクトルの積(外積), 商については扱わない.
・積(外積)について 「外積」というものが存在するが, 今回は不要と判断. ※興味のある方はGoogle先生にお聞き下さいw ・商について ベクトルについては「商」が定義できないため, 扱えないことが理由となる. 厳密には, あるベクトルの逆元が一意に定まらないからだが, この議論は話がそれるため割愛.
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルの転置
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列とは(1)
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列とは(2)
Copyright© 2016 Leprachaun Corp. All Rights Reserved 単位行列
Copyright© 2016 Leprachaun Corp. All Rights Reserved 単位行列
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の和・差
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列のスカラー倍
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の和とスカラー倍の性質
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(1)
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(1) なんでこんな計算の仕方なの?
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(余談) 問題) 工場Aでは「車」と「トラック」を製造している. それぞれを1台製造するのに必要な人員は以下.
・車の製造 :専門技術者3人, 作業員5人 ・トラックの製造:専門技術者4人, 作業員8人 では車2台, トラック3台を製造するのに必要な専門技術者, 作業員は何名? (http://www.slideshare.net/taketo1024/ss-44063603 より ※多少変更点有り)
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(余談) 答え) 2 × (専門技術者:3人 + 作業員:5人): 車2台
+) 3 × (専門技術者:4人 + 作業員:8人): トラック3台 専門技術者: (2×3 + 3×4) = 18人 作業員: (2×5 + 3×8) = 34人 (http://www.slideshare.net/taketo1024/ss-44063603 より ※多少変更点有り) 専門技術者 作業員 車 3人/台 5人/台 トラック 4人/台 8人/台
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(余談) 答え) 2 × (専門技術者:3人 + 作業員:5人): 車2台
+) 3 × (専門技術者:4人 + 作業員:8人): トラック3台 専門技術者: (2×3 + 3×4) = 18人 作業員: (2×5 + 3×8) = 34人 (http://www.slideshare.net/taketo1024/ss-44063603 より ※多少変更点有り) 専門技術者 作業員 車 3人/台 5人/台 トラック 4人/台 8人/台
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(余談) 行列の積で書き直すと…
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(余談) 専門技術者 作業員
車 3人/台 5人/台 トラック 4人/台 8人/台 車, トラック 専門技術者, 作業員
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(余談) 専門技術者 作業員
車 3人/台 5人/台 トラック 4人/台 8人/台 車, トラック 専門技術者, 作業員
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(余談) 専門技術者 作業員
車 3人/台 5人/台 トラック 4人/台 8人/台 車, トラック 専門技術者, 作業員
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(1) では話を戻します.
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(2)
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(2) 対応する行が 存在しない!
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(3)
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(3) 行列の積を計算する際は、 右からか、左からかに注意する!
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の積(4)
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトルと行列の積
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の転置(1)
Copyright© 2016 Leprachaun Corp. All Rights Reserved 行列の転置(2)
Copyright© 2016 Leprachaun Corp. All Rights Reserved 復習
Copyright© 2016 Leprachaun Corp. All Rights Reserved 復習 ・ベクトルとは?単位ベクトルとは? ・ベクトルの「ノルム」とは? ・ベクトルの「内積」はどう計算する?
・行列とは?単位行列とは? ・行列の掛け算はどう計算する? ・どういう時行列は掛け算ができない?
Copyright© 2016 Leprachaun Corp. All Rights Reserved 以上です。
Copyright© 2016 Leprachaun Corp. All Rights Reserved ありがとうございました!