eliasffyksen
Re:Names should be cute, not descriptive
on Tuesday January 10, 2023 @08:01AM (#34324166)
I like descriptive names that fade. It provides a sort of local etymology. Maybe not good for business, but definitly provides some interesting discussions at the pub.
Re:Writing Snake in 12 Lines of PyTorch
on Friday August 12, 2022 @03:48AM (#32435645)
Yes, but not in the matrix state we are using to represent it. It would probaly need to be represented as a "one-hot" MDP encoding, takes away from some of the beauty of it.
Nice to see I'm not the only one obsessed with Snake. This goes directly in my bookmarks :P
Re:Writing Snake in 12 Lines of PyTorch
on Thursday August 11, 2022 @05:13PM (#32431777)
Are you asking for the Hamiltonian of the Snake world? I don't think it exists. The transformation is non-linear :P
Re:Writing Snake in 12 Lines of PyTorch
on Thursday August 11, 2022 @04:07PM (#32431074)
Really cool. That's how this project got started. I was doing the exact thing you were doing (tile-based RL path finding). But it was soooo slow, so I started implementing it in tensors, and that's when I realized I could do a whole game of Snake.
Re:Writing Snake in 12 Lines of PyTorch
on Thursday August 11, 2022 @03:54PM (#32430924)
Very cool. I would definitely like to see this in action!
Re:Writing Snake in 12 Lines of PyTorch
on Thursday August 11, 2022 @02:56PM (#32430173)
I wrote more for the fun of it than anything else. The challenge was just getting it as small as possible, just for the sake of it
Re:Writing Snake in 12 Lines of PyTorch
on Thursday August 11, 2022 @02:20PM (#32429754)
I'm glad someone liked it. r/programming didn't seem to enjoy it much :P
Re:
on Thursday August 11, 2022 @05:37AM (#32423412)
I wrote this article on a very concise version of Snake. I found it fun, maybe someone else will as well :P