Git Product home page Git Product logo

deep-learning-from-scratch-2's People

Contributors

deltam avatar dependabot[bot] avatar diskshima avatar dwarfer7634 avatar furandon-pig avatar jnishi avatar kaeruko avatar kagamiwari avatar meshidenn avatar naomine-egawa avatar takei-yuya avatar warabanshi avatar yimamura-retrieva avatar youchan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deep-learning-from-scratch-2's Issues

参加希望者募集

ここにコメントしてください。コラボレータに追加します。

Numo::NArrayのstoreとequal

第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]]

なぜRNNではtanhを使っているのか?

昨日(2019/10/31)の読書会で「なぜRNNではtanhなのか?」という疑問が出ておりました。

などを読んでいると tanh だと

  • 値がある範囲に収まる
  • 二階微分の値(勾配の変化)がゼロになるまでにしばらく維持される(ゼロになるまで勾配の値が大きい?)
  • (学習が)実際に速く収束する
  • 勾配の計算が(比較的)軽い
    等の理由があるようです。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.