KNN PBI
From Talk:LiteRumble
Jump to navigation
Jump to search
Revision as of 9 April 2013 at 19:45.
This thread or its parent was deleted.
This thread or its parent was deleted.
Wow, I'm really excited about this! Finally I have a better idea where to focus my benchmarks. =) [1]
What k are you using? And is DrussGT getting k/2 because there's nobody above him, or still getting k, but all below him?
Sorry I missed this...
Right now I'm using k=sqrt(opponents), and it just chops it off. So the top bot gets k/2, second bot gets (k/2)+1 etc.
I just discovered that my numpy
conversion had broken the KNNPBI completely, so I've fixed that and re-run all of the rumbles. Now that it is using numpy, it should give nice symmetrical results (although KNNPBI isn't really symmetrical, by design, but now they are consistent).
Also, looking at the code, k=sqrt(len(bots))/2