Skip to content

Several changes for smoother results and more control over the NN. - #7

Closed
iciclesoft wants to merge 1 commit into
nature-of-code:masterfrom
iciclesoft:master
Closed

Several changes for smoother results and more control over the NN.#7
iciclesoft wants to merge 1 commit into
nature-of-code:masterfrom
iciclesoft:master

Conversation

@iciclesoft

Copy link
Copy Markdown

Changed mutate to also check if it should mutate at all based on the rate. Changed the mutation rate because of the mentioned mutation-changes. Doubled vehicle.maxforce so it has more control over itself. Changed the border-inputs according to the entire canvas instead of the 50px wide stroke. Lastly I've added a fallback for when almost all vehicles die, which would probably never happen in the current reproduction-rate.

The mutation-changes are mainly so not every reproduced vehicle is mutated (which pretty much was the case). The vehicle.maxforce seems to have quite some impact on the results over time, setting this to an insane amount will get some 100k+ vehicles (framecount) quite easily. The border changes were made so the vehicles don't get stuck in a corner. The fallback is quite useless now, but it would be nice if you want to change the reproduction-rate.

…rate. Doubled vehicle.maxforce so it has more control over itself. Changed the mutation rate because of the mentioned mutation-changes. Changed the border-inputs according to the entire canvas instead of the 50px wide stroke. Lastly I've added a fallback for when almost all vehicles die, which would probably never happen in the current reproduction-rate.
@shiffman

Copy link
Copy Markdown
Member

Hey, these are great changes! Sorry for the confusion (I am still sorting all this out), but can you pull request these changes over at:

https://github.com/CodingTrain/Toy-Neural-Network-JS/tree/master/examples/neuroevolution-steering

I think this will be the permanent place for the example going forward (linked to from here and anywhere else.)

@iciclesoft

Copy link
Copy Markdown
Author

Ok no problem, I've made a new pull-request in that repository:
CodingTrain/Toy-Neural-Network-JS#116

@shiffman

Copy link
Copy Markdown
Member

Great! Closing to move discussion over there. . .

@shiffman shiffman closed this Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants