edu.cmu.minorthird.classify
Class SGMExample
java.lang.Object
edu.cmu.minorthird.classify.Example
edu.cmu.minorthird.classify.SGMExample
- All Implemented Interfaces:
- HasSubpopulationId, Instance, Visible, java.io.Serializable
public class SGMExample
- extends Example
- implements Instance, Visible, java.io.Serializable
An instance designed for a relational dataset. Extends from Example. Modified
by Zhenzhen Kou to include an ExmapleID
- Author:
- Zhenzhen Kou
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
exampleId
|
Method Summary |
java.lang.String |
getExampleID()
Get the ExampleID |
boolean |
hasID(java.lang.String id)
Has the ExampleID or not |
java.lang.String |
toString()
|
Methods inherited from class edu.cmu.minorthird.classify.Example |
asInstance, binaryFeatureIterator, featureIterator, getLabel, getSource, getSubpopulationId, getWeight, getWeight, numericFeatureIterator, numFeatures, setWeight, toGUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.cmu.minorthird.util.gui.Visible |
toGUI |
exampleId
protected java.lang.String exampleId
SGMExample
public SGMExample(Instance instance,
ClassLabel label,
java.lang.String exampleId,
double weight)
SGMExample
public SGMExample(Instance instance,
ClassLabel label,
java.lang.String exampleId)
getExampleID
public java.lang.String getExampleID()
- Get the ExampleID
hasID
public boolean hasID(java.lang.String id)
- Has the ExampleID or not
toString
public java.lang.String toString()
- Overrides:
toString
in class Example