Code Monkey home page Code Monkey logo

Comments (3)

GoviKandula avatar GoviKandula commented on June 10, 2024

Isnt Setseed give you always a constant random number? Everytime I run the block it gives a different value for y which is not same as what it contains in
mdl.lab1.test_custom_dense_layer_output(y).

Can someone explain me what is happening please

from introtodeeplearning.

jboverio avatar jboverio commented on June 10, 2024

Just setting a seed does not guarantee that the weights and biases will be initialized to any specific set of values. It only guarantees that they will be initialized to the same set of values every time you run your code with the same seed.

In your case, it seems that the expected output of mdl.lab1.test_custom_dense_layer_output(y) is based on a specific set of weights and biases that is not being produced by your current weight and bias initialization.

Without knowing how the expected output was calculated, it's difficult to say what you would need to change in your weight and bias initialization to achieve that output. It could be that a different seed was used, or that the weights and biases were initialized using a different method, or even manually set to specific values.

from introtodeeplearning.

ajitomatix avatar ajitomatix commented on June 10, 2024

Please see #116 (similar thread) and #118 (solution). Reading these, it seems that this won't be addressed just by updating the collab notebook, mitdeeplearning package also needs to be updated.

from introtodeeplearning.

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.