General > Bot Challenges
Challenge #3: Neural Network
MacadamiaNuts:
Mmmh...
This may be a starting point (ignore the stuff at the begining):
http://www.darwinbots.com/Forum/index.php?showtopic=2176
Instead of building the DNA through random evolution, it could go one gene at once, trying a set of values during a certain amount of time, then store the outcome, try a second set, compare both outcomes and save the good one, then loop until a solution for the first gene is found, then start building the second one.
Once it's done with 4-6 genes, they could keep checking small changes during small amounts of time, if a winner appears, check it again during a longer time, then adopt it. When it meets another "done" bot, they could match their overall outcomes and the loser use the knowledge from the winner.
Basically, I think we can do whatever we want within the current limits, as long as the bot does things one step at once. Heck, I even think we could try and do it with only one store... xD
Elite:
I've got one! (See attached)
A really simple 2-input, 3-output (one of which is a boolean) 5-invisible-neuron network (or something very loosely resembling something that might be called a neural network ) with 3 inputs per neuron. All the connectvity data, weightings, biases and node states take up 64 memory slots (902 - 965).
The biggest portion of the code is the declaring of custom variables (I don't know why I even bothered now ).
So far I have no way of actually assigning weights or connections. Its just a demonstrator.
(I'd be mildly surprised if this thing actually works when it does have a system of optimising the weights and connectivity)
Unfortunately, whenever I try and load it into DB the program crashes
Comments?
-----------------------------------------------------
@ Macadamia
Looks interesting. Can't quite work out what's going on though. I'm guessing it's some sort of heuristic system using 'mutation' of variables that in turn control behavior. Am I close?
971 19 rnd add inc 999 ceil store
^ And what does the 999 ceil do there (or the store for that matter)?
-----------------------------------------------------
(And I've just realised that my .avpleas gene in the original post uses memlocs up to 1041! Doh! )
Numsgil:
There's probably a limit on custom variables that's never been reached before. Try limiting it to like 30 or so. That should let you load it without crashing.
Elite:
Yep, that does the trick
I've attached the bot with all custom variables removed. It's a bit harder to read, but it loads.
EDIT: And I've also altered the code so that the biases are added, like they are supposed to be, rather than multiplied
A quick tryout with completely randomised neural net settings shows that it also works! Completely scatterbrained, spinning and shooting and moving at random, but reacts to the presence of a something that it can see.
EricL:
--- Quote from: Numsgil ---There's probably a limit on custom variables that's never been reached before.
--- End quote ---
FYI, its 50 in current builds. I'll raise it to 100 in the next drop.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version