Live data from Hacker News

Show HN: Watch a neural net learn to play Snake

ppo.gradexp.xyz

31–40 of 56 posts

Re: Show HN: Watch a neural net learn to play Snake

#31
post #19

Earlier quoted context omitted.

Yes it just collapses eventually — never stabilizes. The training process is flawed, I suspect it has to do with the fact that some weights blow up over time, you can see in “weights” tab. But at around 4K avg score you should see it solve the env almost every time. Just a demo :) optimized for speed over stability. Reward structure: Step: -1 Dot: +100 Win: +1000 so ~4k is max theoretical score on 6x6.

maybe because it doesn't understand "done"? perfect play is impossible, random variance will cause scores to drop even if the model plays well and "wins". feels like it would get stuck in a loop trying to improve what can't be improved.

The optimizer doesn't need to understand anything it's just an iterated mathematical construct. The author simply didn't bother to implement the necessary details to ensure numerical stability.

Alternatively it might be a problem with the scoring model in the end game.

Re: Show HN: Watch a neural net learn to play Snake

#32
post #19

Earlier quoted context omitted.

Yes it just collapses eventually — never stabilizes. The training process is flawed, I suspect it has to do with the fact that some weights blow up over time, you can see in “weights” tab. But at around 4K avg score you should see it solve the env almost every time. Just a demo :) optimized for speed over stability. Reward structure: Step: -1 Dot: +100 Win: +1000 so ~4k is max theoretical score on 6x6.

maybe because it doesn't understand "done"? perfect play is impossible, random variance will cause scores to drop even if the model plays well and "wins". feels like it would get stuck in a loop trying to improve what can't be improved.

feels like it would get stuck in a loop trying to improve what can't be improved.

That is the point, there is nothing on an intention that we cannot improve, the goal here is no more than 1 unique iteration of the same path

Re: Show HN: Watch a neural net learn to play Snake

#35
FYI this website sets off a bunch of Bitdefender alerts as being a suspicious web page. I assume probably false positives or something but still something you might want to look into.

"The page https://ppo.gradexp.xyz/ has been detected with suspicious activity. It is not recommended to continue browsing this website."

Same for:

https://ppo.gradexp.xyz/version.js

https://ppo.gradexp.xyz/dist/sizes.js

https://ppo.gradexp.xyz/dist/size_6/manifest.j

https://ppo.gradexp.xyz/dist/size_6/weights.safetens

https://ppo.gradexp.xyz/dist/sokol/demo.wa

Re: Show HN: Watch a neural net learn to play Snake

#36

FYI this website sets off a bunch of Bitdefender alerts as being a suspicious web page. I assume probably false positives or something but still something you might want to look into. "The page https://ppo.gradexp.xyz/ has been detected with suspicious activity. It is not recommended to continue browsing this website." Same for: https://ppo.gradexp.xyz/version.js https://ppo.gradexp.xyz/dist/sizes.js https://ppo.grad…

[deleted]

Re: Show HN: Watch a neural net learn to play Snake

#39
post #23

I noticed snake gets penalized for not getting to the apple early, is that what you really want? Snake is about how long it gets not about the balance between length and wall clock time

But if not the snake could go into an infinite loop, never growing, never eating.

Why? It should get the reward for getting longer, but not for getting longer quicker

Re: Show HN: Watch a neural net learn to play Snake

#40

FYI this website sets off a bunch of Bitdefender alerts as being a suspicious web page. I assume probably false positives or something but still something you might want to look into. "The page https://ppo.gradexp.xyz/ has been detected with suspicious activity. It is not recommended to continue browsing this website." Same for: https://ppo.gradexp.xyz/version.js https://ppo.gradexp.xyz/dist/sizes.js https://ppo.grad…

it's using webgpu kernels, probably a false positive
Post reply on HN