Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0
-
Fix Version/s: 3.0
-
Component/s: None
Not a reset problem actually. A problem calculating precision at rank.
if (relevantRetrieved[j].rank <= precisionRank)should read
if (relevantRetrieved[j].rank < precisionRank)because ranks are 0 based.
I have also added test cases for the AdhocEvaluation class. The test cases check various measures (hand calculated) for rankings upto size 4. Without the patch, the test fails. With it, the test passes.
if (relevantRetrieved[j].rank <= precisionRank)if (relevantRetrieved[j].rank < precisionRank)