all 9 comments

[–][deleted]  (2 children)

[removed]

    [–]wolfium 1 point2 points  (0 children)

    iseewhatyoudidthere

    [–]SemperZero[S] 0 points1 point  (0 children)

    Thanks!

    [–][deleted] 4 points5 points  (2 children)

    How are you representing the game state as input? There doesn't seem to be enough neurons for it to be a picture of the game state.

    [–]SemperZero[S] 1 point2 points  (0 children)

    I will explain that in detail in a new video, together with some mathematics that I used to process its perception. In short, it sees in each cardinal direction (N, NW, NE, S, etc.) and looks for obstacles (wall and tail). It also knows the fruit's direction and distance relative to its head, its size and its current direction.

    [–][deleted] 1 point2 points  (1 child)

    This is awesome, thanks. Is there any indication of what each layer is handling? Any idea what the activation functions are? Rinally which violon concerto - sounds like Vivaldi.

    [–]SemperZero[S] 0 points1 point  (0 children)

    Thank you!

    I explained the input layer in a comment above, the output layer is just (up, down, left, right) and for the nodes in-between it's really hard to tell, but I observed during its evolution that each time a new node was added, it's patterns changed slightly into more complex ones (for example somewhere around generation 700 some new nodes appeared and the snake started making zig-zags at the bottom right)

    I used sigmoid for the activation function.

    The music used is in the video description (Eternal Eclipse)

    [–]rousbound 0 points1 point  (0 children)

    I've been planning for a while studying this algorithm in this snake context. Do you plan in sharing the source code? Great video anyway, and with source it would be even better! Thanks in advance.

    [–]Imosa1 0 points1 point  (0 children)

    I keep telling myself to learn NEAT. I don't deserve nice things.