{"action":"created","issue":{"url":"https://api.github.com/repos/karpathy/convnetjs/issues/26","labels_url":"https://api.github.com/repos/karpathy/convnetjs/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/karpathy/convnetjs/issues/26/comments","events_url":"https://api.github.com/repos/karpathy/convnetjs/issues/26/events","html_url":"https://github.com/karpathy/convnetjs/issues/26","id":54710335,"number":26,"title":"What kind of neural network do I need?","user":{"login":"slifin","id":198857,"avatar_url":"https://avatars.githubusercontent.com/u/198857?v=3","gravatar_id":"","url":"https://api.github.com/users/slifin","html_url":"https://github.com/slifin","followers_url":"https://api.github.com/users/slifin/followers","following_url":"https://api.github.com/users/slifin/following{/other_user}","gists_url":"https://api.github.com/users/slifin/gists{/gist_id}","starred_url":"https://api.github.com/users/slifin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slifin/subscriptions","organizations_url":"https://api.github.com/users/slifin/orgs","repos_url":"https://api.github.com/users/slifin/repos","events_url":"https://api.github.com/users/slifin/events{/privacy}","received_events_url":"https://api.github.com/users/slifin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-18T21:12:24Z","updated_at":"2015-01-18T21:24:05Z","closed_at":null,"body":"Hello \r\nI am a beginner and not sure this is the correct place to post for 'support' so please forgive me ahead of time\r\n\r\nI would like to present a scenario and ask which type of neural network I should be using to solve it and anything else I should be aware of when I implement it as a beginner to neural networks but apt user of javascript\r\n\r\nI'm building something that would give me data about the game hearthstone, the data might look like this:\r\n\r\n    input:\r\n         turn_played:2\r\n    output:\r\n        card_id: EX_11\r\n\r\nI've experimented with brainjs but that only accepts numerics as inputs/outputs\r\n\r\nI would like to put those data points into the neural network so it gets an idea of what was played every turn for a game \r\n\r\nthen I would ask the neural net things like \r\nif turn 1 had a card id of EX_13 what is most likely to be the play on turn 2? \r\nIs there a neural network capable of guessing that information based on previous data?\r\n"},"comment":{"url":"https://api.github.com/repos/karpathy/convnetjs/issues/comments/70426710","html_url":"https://github.com/karpathy/convnetjs/issues/26#issuecomment-70426710","issue_url":"https://api.github.com/repos/karpathy/convnetjs/issues/26","id":70426710,"user":{"login":"karpathy","id":241138,"avatar_url":"https://avatars.githubusercontent.com/u/241138?v=3","gravatar_id":"","url":"https://api.github.com/users/karpathy","html_url":"https://github.com/karpathy","followers_url":"https://api.github.com/users/karpathy/followers","following_url":"https://api.github.com/users/karpathy/following{/other_user}","gists_url":"https://api.github.com/users/karpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/karpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karpathy/subscriptions","organizations_url":"https://api.github.com/users/karpathy/orgs","repos_url":"https://api.github.com/users/karpathy/repos","events_url":"https://api.github.com/users/karpathy/events{/privacy}","received_events_url":"https://api.github.com/users/karpathy/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T21:24:05Z","updated_at":"2015-01-18T21:24:05Z","body":"Nice, neat application! \r\n\r\nI 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.\r\n\r\nAs 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?\r\n\r\nThen you could also use brainjs, but this library is nicer :) You'd then have an architecture of form \r\ninput\r\nsoftmax\r\n\r\n,for example, for a simple linear classifier. If you add 'fc' layers in between you'd get more complex neural nets.\r\n\r\n"}}