Git Product home page Git Product logo

Comments (5)

tambetm avatar tambetm commented on September 14, 2024

Currently the NN has only fully connected layers. The sizes of hidden layers are passed to NNAgent constructor as opts.layers parameter. For example opts.layers = [1000]; creates one hidden layer with 1000 nodes, opts.layers = [256 256]; creates two hidden layers with 256 nodes each. README seems outdated, but example.m should be OK. Will fix it ASAP.

from matlab2048.

JBMing avatar JBMing commented on September 14, 2024

Do you mean just one fully connected layers and not have convolutional layer?
Besides, I am confused by the readme and don't how execute the code.
Whether should I install some other environment?

from matlab2048.

tambetm avatar tambetm commented on September 14, 2024

You can have several fully connected layers by including many numbers in list, i.e. opts.layers = [256 256]. But no convolutional layers.

I would suggest to check out example code in https://github.com/tambetm/matlab2048/blob/master/example.m, that should work.

You need to check out DeepLearnToolbox from GitHub as suggested in README. No other packages are needed.

from matlab2048.

JBMing avatar JBMing commented on September 14, 2024

I am trying to modify the algorithm of weight updation.
But I have question for the code.
Where is the code that achieve back=propagation and gradient descent ?
Could u tell me ?

from matlab2048.

tambetm avatar tambetm commented on September 14, 2024

Backpropagation and gradient descent are implemented in DeepLearnToolbox. I'm using my own fork, which has some minor modifications, not relevant to this project AFAIK. The backpropagation is implemented in NN/nnff.m, NN/nnbp.m and NN/nnapplygrads.m.

from matlab2048.

Related Issues (6)

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.