retrieva / deep-learning-from-scratch-2 Goto Github PK
View Code? Open in Web Editor NEW『ゼロから作る Deep Learning ❷』読書会でみんなで実装するDeep Learning
『ゼロから作る Deep Learning ❷』読書会でみんなで実装するDeep Learning
ここにコメントしてください。コラボレータに追加します。
第14回(11/20)の勉強会の際に Ruby 実装のテストが通らなくなっていた問題について、もう少し調べてみました。
=
を store
に変更したタイミングだったのですが、どうやら store
は引数を自動的に拡張して、上書き先の形に合わせてくれるようです。
サンプルコードです
require 'numo/narray'
x1 = Numo::SFloat[[1, 2, 3], [4, 5, 6]]
y1 = Numo::SFloat[4]
x1 = y1
puts 'x1で代入した場合'
p x1
x2 = Numo::SFloat[[1, 2, 3], [4, 5, 6]]
x2.store(y1)
puts '#storeを利用して上書きした場合'
p x2
出力はこうなります=
は1要素のものに置き換わっているのに対して、 store
は代入先の形([2, 3])になっているのが分かります。
x1で代入した場合
Numo::SFloat#shape=[1]
[4]
#storeを利用して上書きした場合
Numo::SFloat#shape=[2,3]
[[4, 4, 4],
[4, 4, 4]]
昨日(2019/10/31)の読書会で「なぜRNNではtanhなのか?」という疑問が出ておりました。
などを読んでいると tanh
だと
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.