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
NNにふれてみて
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
bakunyo
February 14, 2017
Technology
0
970
NNにふれてみて
開発合宿@鎌倉で発表した際に使用した資料です
bakunyo
February 14, 2017
Tweet
Share
More Decks by bakunyo
See All by bakunyo
合宿成果@日本色
bakunyo
0
120
GitHub Actions CI/CD Update
bakunyo
0
190
AMP 完全に理解した
bakunyo
0
330
RoRoRoRoR
bakunyo
0
880
Other Decks in Technology
See All in Technology
Digitization部 紹介資料
sansan33
PRO
1
6.8k
Frontier Agents (Kiro autonomous agent / AWS Security Agent / AWS DevOps Agent) の紹介
msysh
3
150
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
360
使いにくいの壁を突破する
sansantech
PRO
1
120
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.3k
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
220
CDKで始めるTypeScript開発のススメ
tsukuboshi
1
340
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
Ruby版 JSXのRuxが気になる
sansantech
PRO
0
120
データ民主化のための LLM 活用状況と課題紹介(IVRy の場合)
wxyzzz
2
680
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
180
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
210
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
300
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
130
It's Worth the Effort
3n
188
29k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.9k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
580
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
Transcript
NNʹ;ΕͯΈͯ 2017/02/12 @ ݹయ෦߹॓ Izuta Hiroyuki
Γ͔ͨͬͨ͜ͱ • Ξχϝը૾ྨث • Deep LearningͰϥϒϥΠϒʂΩϟϥΛࣝผ͢Δ - http://christina.hatenablog.com/entry/2015/01/23/212541 • TensorFlowͰΞχϝΏΔΏΓͷ੍࡞ձࣾΛࣝผ͢Δ
- http://kivantium.hateblo.jp/entry/2015/11/18/233834
ͬͨ͜ͱ • DeepLearningຊͷ3~4ষ • χϡʔϥϧωοτϫʔΫͰ࿈ཱํఔࣜΛղ͘ • TensorFlowΛͪΐͬͱ৮ͬͯΈΔ • CIFAR-10ͷը૾ྨ
1࣍ؔ y = 0.3x + 0.1 ॳظ: W(eight) = -1
~ 1ͷϥϯμϜͳ b(ias) = 1 ଛࣦؔ: ̎ޡࠩ ޯ߱Լ๏
1࣍ؔ y = 0.3x + 0.1 ʹۙͮ͘ ʹۙͮ͘
࿈ཱํఔࣜ • ͔ͨ͠܅1݁ࠗࣜʹग़੮ͨ͜͠ͱ͕ແ͘ɺ͝ॕّͷ ૬͕Θ͔Βͳ͍ • طࠗͷ༑ਓ3ਓʹฉ͍ͯɺͦΕͧΕ͝ॕّͷ߹ܭ͕͍͘Β ͔֬ೝͨ͠ • ͝ॕّͷύλʔϯྨɾ༑ਓɾਓͷ3ύλʔϯ ͰɺͦΕͧΕ͍͘Βʁ
͝ॕّ ྨ ਓ ༑ਓ ਓ ਓ ਓ ߹ܭ ສԁ
͝ॕّ
CIFAR-10Ͱը૾ྨ
CIFAR-10 • 10छྨͷը૾ྨʹΘΕΔσʔληοτ
ਪϞσϧ: ଟͷCNN • CNNʢConvolutional Neural Networkʣ ΈࠐΈχϡʔϥϧωοτϫʔΫ • ΈࠐΈɾϓʔϦϯάɾશ݁߹͔ΒͳΔ •
ΈࠐΈ: ಛඍྔͷநग़ • ϓʔϦϯά: Ԡෆมੑͷ֫ಘ
TensorBoard • TensorFlow ඪ४ఴͷՄࢹԽπʔϧ • tensorboard --logdir={logσΟϨΫτϦ}
Demo
CNNͷ్த Accurancy: 0.2 -> 0.5 ͘Β͍·Ͱ্ঢ͢Δͷݟͯதஅ
ϋϚͬͨͱ͜Ζ
TensorFlowͰHello, World • ͍͖ͳΓίέΔɾɾɾ • AttributeError: module 'tensorflow' has no
attribute ‘constant' • import tensorflow as tf • ϑΝΠϧ໊Λ tensorflow.py ʹͯͨ͠ͷ͕ݪҼ • tfͰͳ͘Pythonͷ • http://stackoverflow.com/questions/37383812/tensorflow- module-object-has-no-attribute-placeholder
Depreciated Methods • มͷॳظԽ (چ) tf.initialize_all_variables() (৽) tf.global_variables_initializer() • TensorBoardͷೖྗ
(چ) tf.train.SummaryWriter() (৽) tf.summary.FileWriter() • άϥϑఆٛ (چ) sess.graph_def (৽) sess.graph
(༨ஊ) DocumentʹDepreciated͕͋ͬͨͷͰ PRૹΖ͏ͱͨ͠Βɾɾɾ
(༨ஊ) DocumentʹDepreciated͕͋ͬͨͷͰ PRૹΖ͏ͱͨ͠Βɾɾɾ
(༨ஊ) DocumentʹDepreciated͕͋ͬͨͷͰ PRૹΖ͏ͱͨ͠Βɾɾɾ
ײ • Γ͔ͨͬͨ͜ͱ·ͰḷΓண͚ͳ͔ͬͨ • PythonTensorFlowෆ׳Εײ • ଟ࣍ݩྻɺreshapeͱ͔Ͱਖ਼֬ʹΠϝʔδ ม͍ͨ͠
ࠓޙ • ·ͣຊΛ࠷ޙ·ͰಡΉ • ྲྀΕ͕ΠϝʔδͰ͖ͯ͘Δͱָ͍͠ • ը૾ྨΓ͍ͨɺ͚Ͳը૾ͷऩूͱϥϕϦ ϯά͕໘ͦ͏
͓ΘΓ