Code Monkey home page Code Monkey logo

Comments (2)

cwmeijer avatar cwmeijer commented on May 29, 2024

CNN and RNN start with batch normalization now. For the recurrent models there might be something better coming called Layer Normalization but the method only just got published (See Ba et al. 2016 in literature drive) and the layer is not yet in Keras.

from mcfly.

dafnevk avatar dafnevk commented on May 29, 2024

The literature all mentions that batch normalization is inserted after affine, before activation. The paper of Ioffe and Szegedy, 2015 (where batch norm is introduced) mentions:

We add the BN transform immediately before the
nonlinearity, by normalizing x = Wu+ b. We could have
also normalized the layer inputs u, but since u is likely
the output of another nonlinearity, the shape of its distribution
is likely to change during training, and constraining
its first and second moments would not eliminate the covariate
shift. In contrast, Wu + b is more likely to have
a symmetric, non-sparse distribution, that is “more Gaussian”
(Hyv¨arinen & Oja, 2000); normalizing it is likely to
produce activations with a stable distribution

So maybe we should not add it after the input layer, but after the first affine/convolutional layer.
It's not clear to me whether we should still also normalize the input. or that that's not necessary anymore.

from mcfly.

Related Issues (20)

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.