|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.classification.BigQuery
public class BigQuery
A helper class for running a big query during classification operations. The query is run against a single partition.
| Field Summary | |
|---|---|
protected PostingsIterator[] |
featureIterators
The postings iterators that can be used to fetch weights for each of the features making up this big query. |
protected FeatureCluster[] |
features
|
protected int |
fromFieldID
The field we'll be pulling data from, if there is one. |
protected static java.lang.String |
logTag
|
protected DiskPartition |
part
The partition upon which we're operating. |
protected float[] |
scores
Combined scores for our big query. |
protected java.util.Set<java.lang.Integer> |
seenIDs
A set containing the document IDs of the training examples that we've already seen. |
protected ScoredGroup |
sg
A scored array group that we can use to store final query results |
protected TermCache |
tc
|
protected java.util.Set<java.lang.Integer> |
trainingIDs
A set containing the document IDs of the training examples for this query. |
protected WeightingComponents |
wc
A set of weighting components to use when calculating term weights. |
protected WeightingFunction |
wf
A weighting function to use to calculate term weights. |
| Constructor Summary | |
|---|---|
BigQuery(BigQuery bq)
A copy constructor. |
|
BigQuery(TermCache tc,
ArrayGroup tg,
java.lang.String fromField,
WeightingFunction wf,
WeightingComponents wc)
Creates a big query helper for a given partition. |
|
| Method Summary | |
|---|---|
void |
addFeatureCluster(FeatureCluster cluster)
Adds a cluster to the helper. |
void |
addFeatureClusters(FeatureClusterSet features)
Adds a number of features clusters to the helper. |
ScoredGroup |
getGroup()
Gets the scored group associated with this partition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DiskPartition part
protected int fromFieldID
protected TermCache tc
protected WeightingFunction wf
protected WeightingComponents wc
protected float[] scores
protected java.util.Set<java.lang.Integer> trainingIDs
protected java.util.Set<java.lang.Integer> seenIDs
protected ScoredGroup sg
protected static java.lang.String logTag
protected PostingsIterator[] featureIterators
protected FeatureCluster[] features
| Constructor Detail |
|---|
public BigQuery(TermCache tc,
ArrayGroup tg,
java.lang.String fromField,
WeightingFunction wf,
WeightingComponents wc)
tc - a cache of postings for termstg - the array group containing training data for this partitionfromField - the name of the field terms are coming fromwf - a weighting function to use for weighting termswc - a set of weighting componentspublic BigQuery(BigQuery bq)
bq - the query that we want to copy.| Method Detail |
|---|
public void addFeatureClusters(FeatureClusterSet features)
features - the set of features to addpublic void addFeatureCluster(FeatureCluster cluster)
cluster - the cluster to be addedpublic ScoredGroup getGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||