Viewing a history listing
- I have been tuning WhiteFang's gun lately and while I could get a lot of success in TCRM with genetic algorithms my AS targeting isn't improving a bit.
- Thinking logically finding weights with genetic algorithm shouldn't be as effective against learning movement as they change how they move but I had though it would do better than some randomly assigned weights.
- Currently the best score I have got is 69.36 with the current AS targeting which is just the main gun with 10 times the decay and lower K.
- Any advice about how to tune it?
I found recorded data, like WaveSim, still quite useful when it comes to hit adaptive movement.
The reason maybe anti-intuitive, but as long as their movement & your gun can be considered random, it’s still logical.
And although intuitively wave surfing is not random, in fact, they are. The reason is simple, non-linearity & self feedback.
They are only not random with specific information, but certainly you can’t have them for everyone.
And about genetic tuning, I think they are useful, but only after you get basic stuff right, e.g. precise intersection, using only firing waves etc.
- I have a simple precise prediction but I see these kind of things more of a guaranteed improvement rather than a necessity for tuning.
- What do you mean by using only firing waves?=)
- I might have to move to -1 to 1 GF system rather than the current system with 51 bins.
- The problem I had was after tuning against 3 Raiko micro matches I had a 0.9% improvement in TCRM but after 3 matches against 9 different surfers I had a 5% score loss.
- Any attributes that help a lot against surfers?
Imo the attributes and weights for random movement and surfers may be completely different, so I just tune them completely separately.
And there are not one single magic attribute that helps a lot against random movement, so do surfers.
And you don’t expect good performance when you use virtual waves for surfers as well, since they are irrelevant.
Firing waves means only waves where there was a real bullet. Against non-adaptive movement the more waves the better, but adaptive opponents will dodge your bullets only so the other waves will give bad information.
For me what did well against adaptive movements is recording data, doing maybe 10 generations of genetic tuning, then re-recording the data.
Make sure to add the adaptive speed to your genetic parameters. You might also want to use parameters people dont surf with, I did some odd things in DrussGT.
But really, the secret to a good score is good movement.
- After Xor said precise intersection I was searching for another meaning in real waves.=)
- My fitness function is using the KNNPredictor class in WhiteFang so basically everything is included in the algorithm.
- When I actually succeed at making robocode allow more data saving I'll move onto the recursive technic.
- "But really, the secret to a good score is good movement." I know but I have been working on movement since 22.214.171.124 and I want to stop my suffering for a while. Maybe genetic algorithm against Simple Targeting strategies and for the flattener?
- After tuning with three more parameters three things happened:
- I had my AS gun outperformed my Main Gun against Shadow for the first time
- I found out that my GA always maximizes K minimizes Divisor(probably I forgot to activate bot width calculations) and minimizes shots taken.
- Manhattan distance works much better than Squared Euclidean
- The random weights started out with 1542 hits.
- GA got it to 1923 hits.
- I made K 100, Divisor 1 and Decay 0 and hits rose up to 2086.
- I used Manhattan distance and it got 2117 hits
- Finally when I rolled really high and low values to 10 and 0 it got 2120 hits.
I use a patched version of robocode to allow unlimited data saving only from my data recording bot. Anyway a normal robocode with debug mode on is sufficient to do so, just wish robots in your test bed being free from file writing bugs.
Have you ever tried using k = sqrt(tree size)? This is a common practice when it comes to knn.