Code Monkey home page Code Monkey logo

Comments (10)

karpathy avatar karpathy commented on June 7, 2024

Nice, neat application!

I think this would be pretty hard for someone with very little experience. I could wire it up with custom code, but don't think ConvNetJS supports such architecture.

As simple thing you could probably build a network that does prediction for the n-th step (individual network for each n). The way to input the data would be to discretize all cards to 1-of-k encodings. For example the card EX_13 would be the 234-th dimension, so the vector of numbers you pass in would be all zeros except for a single 1 on the 234-th position. If that makes sense?

Then you could also use brainjs, but this library is nicer :) You'd then have an architecture of form
input
softmax

,for example, for a simple linear classifier. If you add 'fc' layers in between you'd get more complex neural nets.

from convnetjs.

karpathy avatar karpathy commented on June 7, 2024

Btw if you were willing to learn much more about Neural Nets, you could try reading through our class notes http://cs231n.stanford.edu/syllabus.html . The class is technically about Computer Vision, but a lot of the stuff can be taken and directly applied to any kind of data (including this) in straight-forward manner.

from convnetjs.

slifin avatar slifin commented on June 7, 2024

How would the neural networks work together? The prediction/patterns would ideally come from knowing that players typically play certain cards in certain orders, wouldn't the neural networks be isolated from each other and not understand what was played in the turn before?

edit: Thank you for the reading material

from convnetjs.

karpathy avatar karpathy commented on June 7, 2024

I think a recurrent network would be best to model this problem, but it is beyond the scope of a beginner and beyond the scope of ConvNetJS. My project RecurrentJS could be used to build this, but only if you know your neural nets (e.g. the class).

Otherwise, the option I'm suggesting above is to have independent neural nets for each step.
One net predicts the second card given first
One net predicts the third card given first two (for example, by concatenating their 1-of-k vectors into a single input vector)
etc.

from convnetjs.

ganarajpr avatar ganarajpr commented on June 7, 2024

I have a similiar question, so I will put it under the same issue. I am wondering what kind of a NN to use or even figure out how a problem like this could be approached.

So, can we have a neural network that given a number ( say 32 ) gives you back an equation ( 8*4 or 1+1+1+....32 times). It can give back only 1 answer or multiple ( whichever is simpler ). The problem I have with a NN in this scenario is that the number of possible outputs is unbounded. We know that the output is a sequence of 0-9, -,+,/ and * ( lets assume that ). Now, how do we build a NN which can produce outputs like these ?

from convnetjs.

ivanjacobs avatar ivanjacobs commented on June 7, 2024

Dear Andrej. Great work it is really impressive. I read your class notes and your presentation on neuraltalk. I was particularly interested on combining RNN or LSTM(=recurrentjs) with convnet. You talk as well about transfer learning. Do you have a js example or could you direct me to literature on transfer learning or combining LSTM with other algorithms. Thanks a lot for your help

from convnetjs.

kavitha-kbjr avatar kavitha-kbjr commented on June 7, 2024

many questions

from convnetjs.

kavitha-kbjr avatar kavitha-kbjr commented on June 7, 2024

is their any specific operation to be applied on pixel with we use filters

from convnetjs.

kavitha-kbjr avatar kavitha-kbjr commented on June 7, 2024

is part of image treated as filter, or we need to build it, or we have predefined filters.

from convnetjs.

kavitha-kbjr avatar kavitha-kbjr commented on June 7, 2024

if we have conv layer1 , conv layer2 .....etc.... , now are these layers fullyconnected or not

from convnetjs.

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.