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
機械学習のための数学 〜1次方程式と線形変換, マージンの距離〜
Search
kkeeth
December 12, 2016
Science
2
3.7k
機械学習のための数学 〜1次方程式と線形変換, マージンの距離〜
機械学習を学ぶ上で必要な数学の、「1次方程式」についての資料になります。先にベクトル・行列の計算ができる方が対象となりますのでご注意下さい。
kkeeth
December 12, 2016
Tweet
Share
More Decks by kkeeth
See All by kkeeth
Programming to play with p5.js
clown0082
0
33
とある EM の初めての育休からの学び
clown0082
1
4.2k
The history of Javascript frameworks: changes in front-end design philosophy
clown0082
2
180
Visually experience the beauty of mathematics with p5.js
clown0082
1
3.1k
Rediscover the joy of coding with Creative Coding
clown0082
0
1.7k
全員が意思決定する会社で開発者体験や生産性を見る大変さについて
clown0082
0
620
JavaScript × Mathematics go to Digital Art
clown0082
1
400
In-house study group at YUMEMI
clown0082
0
210
Playing Ionic Logo by p5.js
clown0082
0
290
Other Decks in Science
See All in Science
mathematics of indirect reciprocity
yohm
1
180
07_浮世満理子_アイディア高等学院学院長_一般社団法人全国心理業連合会代表理事_紹介資料.pdf
sip3ristex
0
600
CV_3_Keypoints
hachama
0
200
ttl2html (RDF/Turtle to HTML)
masao
0
110
LayerXにおける業務の完全自動運転化に向けたAI技術活用事例 / layerx-ai-jsai2025
shimacos
2
1.5k
モンテカルロDCF法による事業価値の算出(モンテカルロ法とベイズモデリング) / Business Valuation Using Monte Carlo DCF Method (Monte Carlo Simulation and Bayesian Modeling)
ikuma_w
0
250
凸最適化からDC最適化まで
santana_hammer
1
290
オンプレミス環境にKubernetesを構築する
koukimiura
0
340
My Favourite Book in 2024: Get Rid of Your Japanese Accent
lagenorhynque
1
110
Masseyのレーティングを用いたフォーミュラレースドライバーの実績評価手法の開発 / Development of a Performance Evaluation Method for Formula Race Drivers Using Massey Ratings
konakalab
0
190
論文紹介 音源分離:SCNET SPARSE COMPRESSION NETWORK FOR MUSIC SOURCE SEPARATION
kenmatsu4
0
310
ド文系だった私が、 KaggleのNCAAコンペでソロ金取れるまで
wakamatsu_takumu
2
1.3k
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Being A Developer After 40
akosma
90
590k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Testing 201, or: Great Expectations
jmmastey
45
7.7k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Building an army of robots
kneath
306
46k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Agile that works and the tools we love
rasmusluckow
330
21k
The Cost Of JavaScript in 2023
addyosmani
53
8.9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
131
19k
Automating Front-end Workflow
addyosmani
1370
200k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
840
Transcript
Copyright© 2016 Leprachaun Corp. All Rights Reserved 機械学習のための数学 1次方程式と線形変換, マージンの距離
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 1次方程式
Copyright© 2016 Leprachaun Corp. All Rights Reserved 方程式とは
Copyright© 2016 Leprachaun Corp. All Rights Reserved 方程式とは この子らは2次方程式 この子らは1次方程式
Copyright© 2016 Leprachaun Corp. All Rights Reserved 方程式の次数
Copyright© 2016 Leprachaun Corp. All Rights Reserved 方程式の次数 最大値は「1」 最大値は「2」
Copyright© 2016 Leprachaun Corp. All Rights Reserved 1次方程式を視覚的に見てみよう!
Copyright© 2016 Leprachaun Corp. All Rights Reserved 1次方程式のグラフ
Copyright© 2016 Leprachaun Corp. All Rights Reserved 1次方程式のグラフ 切片と傾きを制すれば、 1次方程式を制す!
Copyright© 2016 Leprachaun Corp. All Rights Reserved 方程式はベクトルで表現できる!
Copyright© 2016 Leprachaun Corp. All Rights Reserved ベクトル方程式 このtを媒介変数と言う このdを方向ベクトルと言う
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 線形変換
Copyright© 2016 Leprachaun Corp. All Rights Reserved 線形変換(イメージ) A x y
x+y Ax Ay A(x+y) 手書きですみません…
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 線形変換:拡大・縮小 f 3 0
0 2 0 2b 3a 0
Copyright© 2016 Leprachaun Corp. All Rights Reserved 線形変換:回転 1 0 0
1 -sinθ cosθ cosθ sinθ f
Copyright© 2016 Leprachaun Corp. All Rights Reserved 線形変換:反転 f 1 0
0 1 0 1 -1 0
Copyright© 2016 Leprachaun Corp. All Rights Reserved 線形変換(余談1) 解き方に興味がある方は、 ガウスの消去法で調べて みてください!
Copyright© 2016 Leprachaun Corp. All Rights Reserved 線形変換(余談2) Googleで検索すると 「線型」 「線形」 上記の二つを目にすると思いますが,
どちらでも構いません. 昔は「線型」がよく使われていたのですが, 岩波書店などの書籍が「線形」に統一した ため, 現在は「線形」が主流になりました. 「函数」と「関数」 の違いみたいなものです.
Copyright© 2016 Leprachaun Corp. All Rights Reserved マージン(点と直線の距離)
Copyright© 2016 Leprachaun Corp. All Rights Reserved マージン(点と直線の距離):イメージ
Copyright© 2016 Leprachaun Corp. All Rights Reserved この距離がマージンd マージン(点と直線の距離):イメージ
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 ありがとうございました!