|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Instance
A single instance for a learner. This is basically a weighted set of features.
Method Summary | |
---|---|
java.util.Iterator<Feature> |
binaryFeatureIterator()
Return an iterator over all binary features. |
java.util.Iterator<Feature> |
featureIterator()
Return an iterator over all features |
java.lang.Object |
getSource()
Get the underlying object used that this instance describes |
java.lang.String |
getSubpopulationId()
Get the subpopulation from which this instance was drawn. |
double |
getWeight(Feature f)
Get the weight assigned to a feature in this instance. |
java.util.Iterator<Feature> |
numericFeatureIterator()
Return an iterator over all numeric features. |
int |
numFeatures()
Return the number of all the features |
Methods inherited from interface edu.cmu.minorthird.util.gui.Visible |
---|
toGUI |
Method Detail |
---|
double getWeight(Feature f)
java.util.Iterator<Feature> binaryFeatureIterator()
java.util.Iterator<Feature> numericFeatureIterator()
java.util.Iterator<Feature> featureIterator()
int numFeatures()
java.lang.Object getSource()
java.lang.String getSubpopulationId()
getSubpopulationId
in interface HasSubpopulationId
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |