r/CodeBullet • u/IvanAlejandroCC • Apr 02 '23
Graph tool
Hi there! I'm working in my first AI project and loved the way Evan visualized the nn in the dinausaur video. Does someone has an idea of how he did it? Thx u all very much!!
13
Upvotes
•
u/AutoModerator Apr 02 '23
Thanks for submitting to r/Codebullet!, this is a reminder to make sure that your post follows our subreddit rules, if your post does not abide by them, please remove it and re-submit making sure it follows all the rules.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/IntelligentDebate227 Apr 02 '23
it's obvious that he made it himself, theres no any tool capable of do that
1
u/Zealousideal-Ad-5677 Apr 05 '23
You will have to do it your self. How you do it may depend on the algorithm you implement for the nn. For example if you a fixed topology (structure of the network) you can just devide the width by the amount of layer you have to equally space the layers in your visual representation.
But if you for example have a variable topology (for example in NEAT) you dont really know you layers but can figure them out using their parents. One approach I have seen is having the layers in a space between 0 (input layer) and 1 (output layer). Each new neuron (or node, hower you wanna call it) will then be between the layers of their parents. A node between a input and output neuron will then be at the layer 0.5 ( (1-0)/2 ). Putting a neuron on each of its synapses (connections) will then result in neurons in the layers 0.25 and 0.75. You can then use these to space them on the width by multiplying the layer with the width. To space them on the height just space out each layer equally again