Coder Social home page Coder Social logo

Comments (3)

yliu90 avatar yliu90 commented on June 21, 2024

I check the dropout code and find that issues bother me too the dropout flag seems to switch the way model calculate the gradient but I find that the theano graph of backpro mode is actually wrong ...

from dropout.

mdenil avatar mdenil commented on June 21, 2024

Hi,

I don't understand the problem you are identifying. Can you explain in more detail?

The code always builds a theano graph for both dropout and no dropout regardless of whether dropout will be used or not during training. The dropout flag comes in on this line: https://github.com/mdenil/dropout/blob/master/mlp.py#L314 and chooses which part of the graph is used to compute updates.

from dropout.

droid666 avatar droid666 commented on June 21, 2024

Sorry missed your message.

The problem is with the case that you don't want to use dropout, but still have values given for dropout rates. Then the normal net will reduce the (initial) output per layer with the given dropout rates.

Because this is done on normal net:
W=next_dropout_layer.W * (1 - dropout_rates[layer_counter])

This is not a problem. It will learn fine. It is just not so intuitive. The intialization of W is messed up a little, if you chose them carefully but then multiply with whatever random value is still in dropout_rates.

I my local fork I removed that, so the normal net is a "pure net". Instead I do the adaption on the dropout net:
W=layer.W / (1 - dropout_rates[layer_counter])
But then layer.W must be used in params and not W.

from dropout.

Related Issues (14)

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.