MarioAIBenchmarkTest fail due to conversion to intS
Closed this issue · 3 comments
GoogleCodeExporter commented
A lot of test fail here due to having incorrect values for their final weighted
fitnesses.
They are:
testForwardJumpingAgentFitnessWithDefaultCreatures
testReceptiveField_1x2
testReceptiveField_3x1
testReceptiveField_1x1
testForwardAgentFitnessWithDefaultCreatures
testForwardAgentFitnessWithDefaultCreaturesVisual
The problem seems to be that the expected fitnesses are floats but that due to
distance being stored as an int (recently?) the value returned by the
EvaluationInfo object is always an int and thus off by a fraction each time.
The solution here is probably to just update the unit tests.
Original issue reported on code.google.com by melin...@gmail.com
on 26 Oct 2010 at 7:44
GoogleCodeExporter commented
Original comment by Nikolay....@gmail.com
on 26 Oct 2010 at 2:05
GoogleCodeExporter commented
Thanks you for pushing this issue up! The problem was right in fractional
fitness.
Original comment by Nikolay....@gmail.com
on 26 Oct 2010 at 4:12
GoogleCodeExporter commented
This issue was closed by revision r608.
Original comment by Nikolay....@gmail.com
on 26 Oct 2010 at 4:13
- Changed state: Fixed