|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectevaluation.EvaluationFromFile
public class EvaluationFromFile
Evaluation class.
Nested Class Summary | |
---|---|
static class |
EvaluationFromFile.SearchMethod
|
Field Summary | |
---|---|
private double[] |
averagePrecision
Average precision per query. |
double |
avgLookUpTimeCol
|
double |
avgLookUpTimeDist
|
double |
avgSearchTimeCol
|
double |
avgSearchTimeDist
|
private static AbstractSearchStructure |
collectionIndex
A VladArray containing the vlad vectors of all the collection images. |
private static VladArray |
collectionVladArray
A VladArray containing the vlad vectors of all the collection images. |
private static AbstractSearchStructure |
distractorsIndex
A VladArray containing the vlad vectors of all the distractor images. |
static int |
HolidaysQueries
|
static int |
HolidaysSize
|
private java.util.HashMap<java.lang.String,java.util.HashSet<java.lang.String>> |
junkSet
Contains the names of junk images. |
static int |
OxfordQueries
The number of query images in each dataset. |
static int |
OxfordSize
The sizes of the evaluation datasets. |
static int |
ParisQueries
|
static int |
ParisSize
|
private java.util.HashMap<java.lang.String,java.util.HashSet<java.lang.String>> |
posSet
Contains the names of positive images. |
private java.util.ArrayList<java.lang.String> |
queryNames
Contains the names of query images. |
private double[] |
recallAtk
Recall @ k per query. |
static int |
recallLevel
|
static int |
w
Number of lists to visit in the IVFADC method. |
Constructor Summary | |
---|---|
EvaluationFromFile()
|
Method Summary | |
---|---|
private double |
computeAveragePrecision(Result[] nearestNeighbors,
java.lang.String queryName)
Computes the AP for a given queryId and a sorted list of nearest neighbors. |
void |
computeMeasures(int numResults)
Computes the measures. |
private double |
computeRecallAtk(Result[] nearestNeighbors,
java.lang.String queryName,
int k,
boolean ignoreQuery)
|
double[] |
getAveragePrecision()
|
double |
getAvgLookUpTimeCol()
|
double |
getAvgLookUpTimeDist()
|
double |
getAvgSearchTimeCol()
|
double |
getAvgSearchTimeDist()
|
double[] |
getRecallAtk()
|
void |
loadGroundTruthHolidays(java.lang.String filename)
|
void |
loadGroundTruthOxford(java.lang.String gtFolder)
|
void |
loadGroundTruthParis(java.lang.String gtFolder)
|
void |
loadGroundTruthUKB(java.lang.String gtFolder)
|
static void |
main(java.lang.String[] args)
|
void |
outputAverageMeasures()
Used for average measure reporting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OxfordSize
public static final int ParisSize
public static final int HolidaysSize
public static final int OxfordQueries
public static final int ParisQueries
public static final int HolidaysQueries
private double[] averagePrecision
public double avgLookUpTimeCol
public double avgSearchTimeCol
public double avgLookUpTimeDist
public double avgSearchTimeDist
private double[] recallAtk
public static final int recallLevel
public static final int w
private static VladArray collectionVladArray
private static AbstractSearchStructure collectionIndex
private static AbstractSearchStructure distractorsIndex
private java.util.HashMap<java.lang.String,java.util.HashSet<java.lang.String>> junkSet
private java.util.ArrayList<java.lang.String> queryNames
private java.util.HashMap<java.lang.String,java.util.HashSet<java.lang.String>> posSet
Constructor Detail |
---|
public EvaluationFromFile()
Method Detail |
---|
public double[] getAveragePrecision()
public double[] getRecallAtk()
public double getAvgLookUpTimeCol()
public double getAvgSearchTimeCol()
public double getAvgLookUpTimeDist()
public double getAvgSearchTimeDist()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- [0] Full path to the evaluation setup file.args
- [1] Full path to the evaluation output file (where the evaluation results will be written).
java.lang.Exception
private double computeAveragePrecision(Result[] nearestNeighbors, java.lang.String queryName)
nearestNeighbors
- queryName
-
public void computeMeasures(int numResults) throws java.lang.Exception
numResults
- threshold
-
java.lang.Exception
private double computeRecallAtk(Result[] nearestNeighbors, java.lang.String queryName, int k, boolean ignoreQuery)
public void outputAverageMeasures()
public void loadGroundTruthOxford(java.lang.String gtFolder) throws java.io.IOException
java.io.IOException
public void loadGroundTruthParis(java.lang.String gtFolder) throws java.io.IOException
java.io.IOException
public void loadGroundTruthHolidays(java.lang.String filename) throws java.io.IOException
java.io.IOException
public void loadGroundTruthUKB(java.lang.String gtFolder) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |