In the RandomSelector class the method random() shouldn't ever return null right? I ask as I am running into the problem where when I have a very small population like 5 for example, the reproduce() method in the neat class uses random() to obtain a random species. But it ends up getting null which causes problems when assigning a new genome to a client via the breed() method. Is there a workaround you recommend?
Actually it only returns null if the score is 0 and there is atleast one object. So you can use >= and it will never return null. public T random() { double v = Math.random() * total_score; double c = 0; for(int i = 0; i < objects.size(); i++){ c += scores.get(i); if(c >= v){ return objects.get(i); } } return null; }
Do you have a higher quality recording? Or maybe a copy of the code on GitHub? Edit: It was just processing, the video is uploaded in high resolution now! :)
511break probably not. Everything has been coded in python 500 times and the web is flooded by python code. These videos are mainly for understanding the concepts and I think java is best suited for that.
Hey, man! Your videos are pretty nice, but the archive with source code is empty on Mega (size is 0 byte, WinRar shows error). Can you reupload the source code?
Anatolii Davydko oh really? Thanks for telling me. I will reupload ASAP. You can get the source files in video 3. I checked if they are correct and they are :)
@@manju_kura yes i am german. No you dont need tha tmany inputs. you can inputs from the snakes head view. I posted a video about this. Feel free to watch that
Your file has a size of 0 bytes on mega.nz so you might want to change it to make the source easier accessible But still thank you for showing this! ;)😃
Man, you deserve more views and subscribers, your content is of very high quality ....bro keep it it up and thank you !!!!!!!!!!
++;
I've been waiting for this! Loved your last video on NEAT
Thank you so much man, I'm doing a research paper on it and I really needed a good start. You're the best!
Been looking forward to this very long, thank you so much!
Oh I was hopin to see more Python programming here... Maybe at a later time.
In the RandomSelector class the method random() shouldn't ever return null right? I ask as I am running into the problem where when I have a very small population like 5 for example, the reproduce() method in the neat class uses random() to obtain a random species. But it ends up getting null which causes problems when assigning a new genome to a client via the breed() method. Is there a workaround you recommend?
Yes I had this problem aswell but I think i fixed it in a newer implementation. See the email I sent you.
Actually it only returns null if the score is 0 and there is atleast one object. So you can use >= and it will never return null.
public T random() {
double v = Math.random() * total_score;
double c = 0;
for(int i = 0; i < objects.size(); i++){
c += scores.get(i);
if(c >= v){
return objects.get(i);
}
}
return null;
}
Hi Finn, the code cannont be unzipped on my side. Is there any other other to access these codes?
Damn this is amazing!
Do you have a higher quality recording? Or maybe a copy of the code on GitHub? Edit: It was just processing, the video is uploaded in high resolution now! :)
the video is still processed. It has been uploaded in 4K i believe. Just wait a few minutes
@@finneggers6612 Oh that's my bad, it shows above 360p now.
Is the code download broken? The resulting RAR being served up is 0 bytes.
seems like it. Sadly I do not find my src files on my computer. But I think that in one of the future videos I uploaded it somewhere different!
This is from video4 and seems to be working:
mega.nz/#!W3RxGIKa!Ajx2r9hwYQ...
@@finneggers6612 Yeah, looks like there's code on GitHub at github.com/Luecx/NEAT under an MIT license. Thanks!
@@warrenhenning8064 Oh Yeah I actually had that in mind but didnt find it. It's been some time since I have done these videos :)
Great video. At least great start :) I've been waiting too Finn! Thanks :D
Very nice! :D Will you do the same thing with python or C++?
511break probably not. Everything has been coded in python 500 times and the web is flooded by python code.
These videos are mainly for understanding the concepts and I think java is best suited for that.
Thanks a lot for the tutorial. I've always wanted to know that =)
Hey, man! Your videos are pretty nice, but the archive with source code is empty on Mega (size is 0 byte, WinRar shows error). Can you reupload the source code?
Anatolii Davydko oh really? Thanks for telling me. I will reupload ASAP. You can get the source files in video 3. I checked if they are correct and they are :)
@@manju_kura yes i am german.
No you dont need tha tmany inputs.
you can inputs from the snakes head view.
I posted a video about this.
Feel free to watch that
Nice, new video!
AWESOMEEEEEEEEEEEEEEEE :)
Your file has a size of 0 bytes on mega.nz so you might want to change it to make the source easier accessible
But still thank you for showing this! ;)😃
geile katze ! Yeah I realised. Look at video 3 or upwards. You should find a working link there which contains all src folders since video 3
OMG YES! thank you so much!