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
960
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
170
AMP 完全に理解した
bakunyo
0
300
RoRoRoRoR
bakunyo
0
850
Other Decks in Technology
See All in Technology
CNCFの視点で捉えるPlatform Engineering - 最新動向と展望 / Platform Engineering from the CNCF Perspective
hhiroshell
0
150
デザインとエンジニアリングの架け橋を目指す OPTiMのデザインシステム「nucleus」の軌跡と広げ方
optim
0
120
DMMの検索システムをSolrからElasticCloudに移行した話
hmaa_ryo
0
280
Amazon Athena で JSON・Parquet・Iceberg のデータを検索し、性能を比較してみた
shigeruoda
1
240
コンパウンド組織のCRE #cre_meetup
layerx
PRO
1
290
ストレージエンジニアの仕事と、近年の計算機について / 第58回 情報科学若手の会
pfn
PRO
4
900
様々なファイルシステム
sat
PRO
0
270
頭部ふわふわ浄酔器
uyupun
0
240
東京大学「Agile-X」のFPGA AIデザインハッカソンを制したソニーのAI最適化
sony
0
160
SREのキャリアから経営に近づく - Enterprise Risk Managementを基に -
shonansurvivors
1
430
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
0
390
アウトプットから始めるOSSコントリビューション 〜eslint-plugin-vueの場合〜 #vuefes
bengo4com
3
1.9k
Featured
See All Featured
Being A Developer After 40
akosma
91
590k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
940
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
Rails Girls Zürich Keynote
gr2m
95
14k
Building Adaptive Systems
keathley
44
2.8k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.7k
Speed Design
sergeychernyshev
32
1.2k
Side Projects
sachag
455
43k
For a Future-Friendly Web
brad_frost
180
10k
Documentation Writing (for coders)
carmenintech
75
5.1k
What's in a price? How to price your products and services
michaelherold
246
12k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
2
150
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ͱ͔Ͱਖ਼֬ʹΠϝʔδ ม͍ͨ͠
ࠓޙ • ·ͣຊΛ࠷ޙ·ͰಡΉ • ྲྀΕ͕ΠϝʔδͰ͖ͯ͘Δͱָ͍͠ • ը૾ྨΓ͍ͨɺ͚Ͳը૾ͷऩूͱϥϕϦ ϯά͕໘ͦ͏
͓ΘΓ