|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.classification.Rocchio.HE
protected class Rocchio.HE
A class to hold a single element of the heap that we'll use to negotiate the results of queries.
| Field Summary | |
|---|---|
BigQuery |
bq
|
FeatureClusterSet |
fcs
|
ArrayGroup.DocIterator |
iter
|
float[] |
neg
|
float[] |
pos
|
WeightingComponents |
wc
|
WeightingFunction |
wf
|
| Constructor Summary | |
|---|---|
Rocchio.HE(FeatureClusterSet fcs,
BigQuery bq)
Creates an element for the heap for a given array group. |
|
| Method Summary | |
|---|---|
int |
compareTo(Rocchio.HE o)
Our comparison will be based on the iterators, but we'll return the opposite of their result, since we want to be used in a max heap. |
void |
finish()
Finishes off any remaining training documents. |
boolean |
handleCurr()
Handles the document at the head of the iterator. |
boolean |
next()
Advances our iterator, returning true if there is a next element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public BigQuery bq
public FeatureClusterSet fcs
public WeightingFunction wf
public WeightingComponents wc
public ArrayGroup.DocIterator iter
public float[] pos
public float[] neg
| Constructor Detail |
|---|
public Rocchio.HE(FeatureClusterSet fcs,
BigQuery bq)
bq - the query for which we're building centroids| Method Detail |
|---|
public boolean next()
public boolean handleCurr()
true if the document was in the training
set, false otherwisepublic void finish()
public int compareTo(Rocchio.HE o)
compareTo in interface java.lang.Comparable<Rocchio.HE>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||