|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.classification.Rocchio.FQR
protected class Rocchio.FQR
A class to collate and hold the results of a feedback query.
Field Summary | |
---|---|
protected float[] |
f1pts
The f1 measure at our precision points. |
protected float |
maxF1
The maximum f1 encountered. |
protected float |
maxF1Sim
The similarity associated with the maximum f1 measure. |
protected int |
nonrel
The number of non-relevant docs encountered. |
protected float |
p
The last calculated precision. |
protected int |
pos
The current position in our arrays. |
protected float[] |
ppts
11 precision points. |
protected float |
r
The last calculated recall. |
protected int |
R
The total number of relevant docs. |
protected float |
rd
The delta for the recall levels |
protected int |
rel
The number of relevant docs encountered. |
protected int[] |
rl
The number of retrieved documents at which we'll measure our levels. |
protected float[] |
sim
The similarities corresponding to our precision points. |
Constructor Summary | |
---|---|
Rocchio.FQR(int R)
|
Method Summary | |
---|---|
void |
addNonRel(float s)
Adds a new relevant document. |
void |
addRel(float s)
Adds a new relevant document. |
float |
avgP()
Gets the average precision. |
boolean |
done()
Returns true if we've hit recall of 1.0. |
float |
f1()
|
void |
finish()
Fills out the last entry in our precision points. |
float |
getThreshold()
Gets the threshold that one would want to use for this feedback query. |
float |
precision()
|
float |
recall()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int[] rl
protected float[] ppts
protected float[] f1pts
protected float[] sim
protected float rd
protected float p
protected float r
protected int pos
protected float maxF1
protected float maxF1Sim
protected int rel
protected int nonrel
protected int R
Constructor Detail |
---|
public Rocchio.FQR(int R)
Method Detail |
---|
public void addRel(float s)
s
- the similarity associated with the document.public void addNonRel(float s)
s
- the similarity associated with the document.public void finish()
public float avgP()
public float getThreshold()
public boolean done()
true
if we've hit recall of 1.0.
public float recall()
public float precision()
public float f1()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |