change map after few successful rounds of map for model generalization #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the existing code, new generations are not created once the particle successfully learns the current map and those particles in the map completing it triumphantly! indefinitely.
In this case, we think that the particle has learned to navigate in the maps, but it is generally overfitted to the current map only.
So, to make the particle generalize enough that it can navigate in a large variety of maps, I have added a logic to build a new map once the particle has successfully navigated the current map and made the round-trip 5-6 times.
Thus, periodically the model will explore many maps and try to adjust weights of neural network in a way that helps it navigate the variety of maps.