News for hackers. Stuff that matters.
Re:Show HN: I built a game to help you learn neural network ... by dpcx on Tuesday May 21, 2024 @11:12AM (#40429500)
This seems like it might be interesting to me if I already had some understanding of neural networks. Unfortunately for me, I can't even complete the RNN because there's nothing to even suggest what I'm missing when I connect the dots in the only way that the UI suggests I can.
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @11:17AM (#40429557)
Yeah, that was one of my concerns launching this v1. So in v2 I plan to add a little explanation for each neural network, perhaps along with an animated video showing what the final architecture looks like. Thanks for the feedback.
Re:Show HN: I built a game to help you learn neural network ... by imdsm on Tuesday May 21, 2024 @01:15PM (#40431166)
At the moment it doesn't feel like a game but a demo or tech preview of the UI. For a game I'd expect to have rules or a goal, and then be guided through it as the complexity increases. If the goal of the game is to learn, this would be a great medium for it. Good luck with v2, I hope to remember and see it when I can more actively enjoy it.
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @01:27PM (#40431314)
The goal is to build the network in the fewest clicks. I agree and have noted many of the comments about adding more explanations for those unfamiliar with the particular network.
Re:Show HN: I built a game to help you learn neural network ... by fernandopj on Tuesday May 21, 2024 @08:51PM (#40436151)
I've only been able to solve the RNN problem because out of frustration I tried every combination possible. It was 3 edges.

When I got to the second one without any stated goal or meaning, and it said "19 edges", I gave up.

Re:Show HN: I built a game to help you learn neural network ... by jvanderbot on Wednesday May 22, 2024 @11:35AM (#40442269)
Uh, just to be clear - having an example network is one thing. But more importantly, explaining the blocks is what is being asked for.

If you play any game around building computers from logic gates, or any factory optimization game, the idea is to start with components, understand thoroughly their tiny single function, then begin to combine them in different ways.

So yeah - seeing a RNN would allow me to draw the connections, but what I want to understand (what would help me learn from this game) is to know what h(x) means. Before we even construct a network, we should have static inputs to play with those blocks to see what they do. Ideally, we should be asked to construct those blocks from other constituent parts (logistic functions? I dunno).

Re:Show HN: I built a game to help you learn neural network ... by arecurrence on Tuesday May 21, 2024 @11:20AM (#40429600)
I suspect that's a bug because if you connect Xt to Ht twice... it succeeds.
Re:Show HN: I built a game to help you learn neural network ... by metadat on Tuesday May 21, 2024 @12:20PM (#40430469)
It won't let me do that.

It'd be nice if there were more explanation to prime you about the concept so you don't simply revert to guess and check.

Re:Show HN: I built a game to help you learn neural network ... by jvanderbot on Tuesday May 21, 2024 @11:30AM (#40429722)
Yeah - you aren't "learning" anything. You're guessing-and-checking until it lets yo go. No idea what blocks do what, or why you're connecting them - which would be the basis for learning.
Re:Show HN: I built a game to help you learn neural network ... by amelius on Tuesday May 21, 2024 @01:24PM (#40431269)
This would be great if it would train a toy-problem, and then of course it would only work if you built the right architecture.
Re:Show HN: I built a game to help you learn neural network ... by ynniv on Tuesday May 21, 2024 @11:55AM (#40430116)
There are two outputs, two inputs, and three edges. The answer might not be obvious, but it's not a UI problem.
Re:Show HN: I built a game to help you learn neural network ... by digging on Tuesday May 21, 2024 @12:03PM (#40430241)
> There are two outputs, two inputs, and three edges.

No, that's something you've inferred from your domain knowledge.

There is a set of dots labeled "xt" in blue, a set of dots labelled "ht" in purple, and a set of dots labelled "yt" in green. Additionally there's a scoreboard with "0 clicks" in blue, "3 edges remaining" in red, and "0 extra edges" in green.

With a bit of color matching I might assume "yt" maps to "extra edges," but that could be a red herring, because I don't see how "clicks" maps to "xt" or where red and purple come in.

It could also help if "RNN" had been defined, but it wasn't...

Re:Show HN: I built a game to help you learn neural network ... by slushy-chivalry on Tuesday May 21, 2024 @12:16PM (#40430412)
I didn't encounter the issue you described with adding an already existing edge though -- the counter stays the same

the answer to RNN is non-trivial, but perhaps Recurrent in RNN might be of some use

Re:Show HN: I built a game to help you learn neural network ... by dpcx on Tuesday May 21, 2024 @01:01PM (#40430975)
Even knowing what the R in RNN stands for requires some pre-existing knowledge of neural networks. Which isn't something that's helping _me_ learn about them, particularly.
Re:Show HN: I built a game to help you learn neural network ... by cuken on Tuesday May 21, 2024 @01:07PM (#40431063)
There is a help button in the top right that shows you need to focus on the circle node connectors to "solve' the problem.

At least for the first example:

You have a blue box labeled xt with a single node connector at the top. You have a purple box labeled ht with a node connector at the top and bottom. You have a green box labeled Yt with a node connector at the bottom.

The game tells you at the top you have 3 edges remaining.

Dragging a line from one node to another, releasing, and it turning green means you have placed a "correct" connection.

i.e. xt -> ht [bottom] will give you a green line.

Repeat until you have all edges solved for.

It's not spelling it out for you, but once you complete the "game" you'll at a very high level understand the moving pieces within the network, and the "flow" of data.

Re:Show HN: I built a game to help you learn neural network ... by dkersten on Wednesday May 22, 2024 @01:23AM (#40437597)
The help didn’t exist originally: https://news.ycombinator.com/item?id=40430064
Re:Show HN: I built a game to help you learn neural network ... by ynniv on Tuesday May 21, 2024 @04:17PM (#40433332)
I guess "decades of clicking things" is a domain one can be knowledgeable in? Usually boxes with draggable things on the top are inputs, on the bottom are outputs.
Re:Show HN: I built a game to help you learn neural network ... by PeterisP on Tuesday May 21, 2024 @08:12PM (#40435872)
Hmm, my decades of clicking things lead me to assume a flow from top to bottom, so something with a connector on the bottom is a source that will output data through that connector, and something with a connector on the top is a sink that will accept input data through that connector.
Re:Show HN: I built a game to help you learn neural network ... by dkersten on Wednesday May 22, 2024 @01:29AM (#40437632)
It flows in the reverse direction of what I’d expect (out is at the top, in is at the bottom, the opposite of any visual programming or diagram I’ve ever seen). It’s also represented in a way I’ve personally never seen ANN’s drawn. I thought you had to connect the dots in the middle and thought “huh? It mustn’t work on mobile” until I read the comments and tried again. And this is with decades of clicking things domain knowledge, and a small bit of neural networks knowledge.
Re:Show HN: I built a game to help you learn neural network ... by straxsontaran on Tuesday May 21, 2024 @09:44PM (#40436502)
I had the same experience. A better description would be a tool to test your understanding of neural network architectures, not a tool to teach you about neural network architectures.
Re:Show HN: I built a game to help you learn neural network ... by vixen99 on Wednesday May 22, 2024 @04:48AM (#40438820)
True but if it was also adapted to try to meet the promise of the current title then that would be really nice.
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Wednesday May 22, 2024 @08:05AM (#40439947)
I am happily taking all this feedback from HN to improve the learning experience, add more graphs for v2, thanks all!
Re:Show HN: I built a game to help you learn neural network ... by WithinReason on Wednesday May 22, 2024 @07:56AM (#40439885)
Hint: The R in RNN stands for Recurrent.

What NN stands for is left as an exercise for the reader.

Re:Show HN: I built a game to help you learn neural network ... by y-curious on Wednesday May 22, 2024 @12:28PM (#40442846)
This was very helpful.

All this game convinced me to do is to bury my head in the sand and hide from ML further.

Re:Show HN: I built a game to help you learn neural network ... by ziddoap on Tuesday May 21, 2024 @12:39PM (#40430689)
>"RNN

>A simple RNN with a single hidden layer"

This applies everywhere, but especially if you are making a teaching tool... Spell out the damn acronyms/initialisms!

I shouldn't have to look at the last square, "Deep RNN", to piece together the what the first square, "RNN", means.

Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @01:29PM (#40431334)
Sure I'll do this in v2, thanks for the feedback.
Re:Show HN: I built a game to help you learn neural network ... by jordanpg on Tuesday May 21, 2024 @12:09PM (#40430318)
Suggested title change: "I built a game to test your knowledge of NN architectures."
Re:Show HN: I built a game to help you learn neural network ... by slushy-chivalry on Tuesday May 21, 2024 @12:21PM (#40430496)
agreed, I find it pretty useful to check if I remember where LSTM stuff connects

I remember reading the original paper a while ago but always forget (pun intended) where to connect stuff

then I realized that memorizing it visually is not the best approach, it's better to think about it in this sorta loose fashion -- I remember there is forget gate, well it forgets previous stuff so there is probably some hadamard product somewhere, it probably needs some inputs and previous hidden states...there was some -1,1 forcing in candidate memory so probably needs tanh instead of sigmoid...and then piece by piece i can reconstruct it pretty closely

Re:Show HN: I built a game to help you learn neural network ... by kingsleyopara on Tuesday May 21, 2024 @11:47AM (#40429975)
Great idea but without trying to start a long discussion, you might want to support batch norm before or after the activation function.
Re:Show HN: I built a game to help you learn neural network ... by insane_dreamer on Tuesday May 21, 2024 @12:16PM (#40430422)
slick! seems more designed to help you practice/review your knowledge of neural networks rather than teach you network architectures?
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @11:52AM (#40430064)
UPDATE: as a quick bandaid, I added a blue HELP button in the top right corner showing how to connect dots
Re:Show HN: I built a game to help you learn neural network ... by srameshc on Tuesday May 21, 2024 @10:59AM (#40429333)
Thanks for this wonderful game. The UI is neat and it helps understand the concepts well.
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @11:02AM (#40429374)
Thank you, I appreciate it! For v2, I'd like to add more NNs and a little explanation for each one.
Re:Show HN: I built a game to help you learn neural network ... by XCSme on Tuesday May 21, 2024 @11:24AM (#40429640)
Looks nice, but it took a while to see how to connect the dots.
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @11:26AM (#40429657)
Hmm I'll think about how to make the dots more obvious visually
Re:Show HN: I built a game to help you learn neural network ... by fblp on Tuesday May 21, 2024 @10:24PM (#40436731)
On mobile it'd be helpful if the clickable area for the dots was larger
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Wednesday May 22, 2024 @08:21AM (#40440081)
noted, will add to the list for v2, thanks!
Re:Show HN: I built a game to help you learn neural network ... by withinboredom on Tuesday May 21, 2024 @11:30AM (#40429727)
I can’t figure out how to connect the dots on mobile.
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @11:35AM (#40429789)
Drag the little gray circle on the top or bottom of each node, to another node's gray circle
Re:Show HN: I built a game to help you learn neural network ... by withinboredom on Tuesday May 21, 2024 @11:56AM (#40430127)
Try doing that on a moving bus!
Re:Show HN: I built a game to help you learn neural network ... by jb1991 on Tuesday May 21, 2024 @12:41PM (#40430725)
I don’t think this works on mobile, or at least it’s not working on my iPhone.
Re:Show HN: I built a game to help you learn neural network ... by chs20 on Tuesday May 21, 2024 @11:38AM (#40429841)
Transformer / attention block is missing
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @11:39AM (#40429858)
On my todo list to add this as another level.
Re:Show HN: I built a game to help you learn neural network ... by FrustratedMonky on Tuesday May 21, 2024 @11:33AM (#40429760)
Good idea, needs bit more text explaining what is happening, and how to make the connections. I gave up because I couldn't figure out just the UI on how to click.
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @11:39AM (#40429846)
Adding a little gif showing how to connect nodes right now
Re:Show HN: I built a game to help you learn neural network ... by FrustratedMonky on Tuesday May 21, 2024 @01:06PM (#40431047)
Saw it, thank you. That did help

Also.

The hitbox for the connections. can you make them bigger. It is pretty difficult getting the mouse to hover just right to do the drag/drop.

Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @01:09PM (#40431091)
Will do today!
Re:Show HN: I built a game to help you learn neural network ... by lucascacho on Tuesday May 21, 2024 @01:09PM (#40431083)
I just got rickrolled by the tutorial. Never gonna let my guard down ever again. (or let you down)
Re:Show HN: I built a game to help you learn neural network ... by fancyfredbot on Tuesday May 21, 2024 @02:39PM (#40432157)
I joined up some dots, I learnt something, and I got rick-rolled. Awesome game.

It did really get me a bit OCD that the deep RNN had the inputs at the top and the outputs at the bottom initally. The inputs have to be connected at the top edge so need to be at the bottom!! :)

Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @03:40PM (#40432878)
Yeah the input/output is annoying me too, I'll improve it in v2!
Re:Show HN: I built a game to help you learn neural network ... by dudu24 on Tuesday May 21, 2024 @03:04PM (#40432471)
I have always found neural network diagrams like the RNN one here to be very vague and even slightly misleading. What does it mean that h_t loops onto itself? While I know that it means "take as input h_{t-1} also", the diagram itself does not illustrate the concept to the primary person looking at such a diagram, i.e. someone wanting to learn about the architecture.
Re:Show HN: I built a game to help you learn neural network ... by nerdponx on Tuesday May 21, 2024 @06:02PM (#40434611)
I came to post the same comment. I was confused by the lack of "t+1" or "t-1" nodes, and then it took me a while to realize I had to connect the "ht" node to itself.
Re:Show HN: I built a game to help you learn neural network ... by PeterisP on Tuesday May 21, 2024 @08:14PM (#40435883)
If something takes two inputs (e.g. an adder), then I'd expect it to have two separate connectors, not "also" plugging in the second thing.
Re:Show HN: I built a game to help you learn neural network ... by i_am_a_squirrel on Tuesday May 21, 2024 @03:24PM (#40432694)
The tutorial rick rolled me! I trusted you sabrina_ramonov!
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @04:49PM (#40433707)
lol what link did you click on? were you on mobile?
Re:Show HN: I built a game to help you learn neural network ... by frankacter on Wednesday May 22, 2024 @04:36AM (#40438723)
On the help modal, clicking the text container at the bottom links to it.
Re:Show HN: I built a game to help you learn neural network ... by sabrina_ramonov on Tuesday May 21, 2024 @03:42PM (#40432903)
ANOTHER UPDATE: here's how I use multimodal ChatGPT-4o to parse the neural network architecture diagrams into the data format I need to create a new game level: https://www.youtube.com/watch?v=4GOWzuykh1c&ab_channel=Sabri...
Re:Show HN: I built a game to help you learn neural network ... by killingtime74 on Tuesday May 21, 2024 @04:18PM (#40433348)
Someone can correct me but I believe all of these networks have been rendered obsolete by Transformers?
Re:Show HN: I built a game to help you learn neural network ... by orsenthil on Tuesday May 21, 2024 @06:03PM (#40434617)
What does made with mushroom mean?
Re:Show HN: I built a game to help you learn neural network ... by crgi on Wednesday May 22, 2024 @04:38AM (#40438744)
Love it! Is the source code available somewhere?
Re:Show HN: I built a game to help you learn neural network ... by masfoobar on Wednesday May 22, 2024 @08:28AM (#40440140)
Never gonna give you up...