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
bakunyo
February 14, 2017
Technology
0
930
NNにふれてみて
開発合宿@鎌倉で発表した際に使用した資料です
bakunyo
February 14, 2017
Tweet
Share
More Decks by bakunyo
See All by bakunyo
合宿成果@日本色
bakunyo
0
110
GitHub Actions CI/CD Update
bakunyo
0
120
AMP 完全に理解した
bakunyo
0
240
RoRoRoRoR
bakunyo
0
750
Other Decks in Technology
See All in Technology
TypeScript開発にモジュラーモノリスを持ち込む
sansantech
PRO
3
870
能動的ドメイン名ライフサイクル管理のすゝめ / Practice on Active Domain Name Lifecycle Management
nttcom
0
310
20240522 - 躍遷創作理念 @ PicCollage Workshop
dpys
0
310
Visual StudioとかIDE関連小ネタ話
kosmosebi
1
290
大規模言語モデル・対話型生成AIによるテスト支援の広さと深さ / Exploring Use of LLM/AI for Testing 2024
ishikawafyu
0
100
型情報を用いたLintでコード品質を向上させる
sansantech
PRO
2
230
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
2
830
組織に自動テストを書く文化を根付かせる戦略(2024冬版) / Building Automated Test Culture 2024 Winter Edition
twada
PRO
26
7.1k
Fabric 移行時の躓きポイントと対応策
ohata_ds
1
130
SpiderPlus & Co. エンジニア向け会社紹介資料
spiderplus_cb
0
480
Unsafe.BitCast のすゝめ。
nenonaninu
0
160
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
33k
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
550
Practical Orchestrator
shlominoach
186
10k
Six Lessons from altMBA
skipperchong
27
3.5k
Done Done
chrislema
182
16k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.5k
Navigating Team Friction
lara
183
15k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
Automating Front-end Workflow
addyosmani
1366
200k
Become a Pro
speakerdeck
PRO
26
5.1k
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ͱ͔Ͱਖ਼֬ʹΠϝʔδ ม͍ͨ͠
ࠓޙ • ·ͣຊΛ࠷ޙ·ͰಡΉ • ྲྀΕ͕ΠϝʔδͰ͖ͯ͘Δͱָ͍͠ • ը૾ྨΓ͍ͨɺ͚Ͳը૾ͷऩूͱϥϕϦ ϯά͕໘ͦ͏
͓ΘΓ