|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.minorthird.classify.sequential.SegmentDataset
public class SegmentDataset
A SequenceDataset that additionally includes examples for 'sliding windows' over the original data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.cmu.minorthird.classify.Dataset |
|---|
Dataset.Split |
| Constructor Summary | |
|---|---|
SegmentDataset()
|
|
| Method Summary | |
|---|---|
void |
add(Example example)
Add an example to the dataset. |
void |
add(Example example,
boolean compress)
Add an Example to the dataset. |
void |
addCandidateSegmentGroup(CandidateSegmentGroup group)
Add a new sequence of examples to the dataset. |
java.util.Iterator<CandidateSegmentGroup> |
candidateSegmentGroupIterator()
|
FeatureFactory |
getFeatureFactory()
Get the FeatureFactory associated with the dataset |
int |
getMaxWindowSize()
|
int |
getNumberOfSegmentGroups()
|
int |
getNumPosExamples()
|
ExampleSchema |
getSchema()
Get the schema associated with the dataset |
protected Dataset |
invertIteration(java.util.Iterator<CandidateSegmentGroup> i)
|
java.util.Iterator<Example> |
iterator()
Iterate over all examples |
void |
setDataCompression(boolean flag)
|
Dataset |
shallowCopy()
Make a shallow copy of the dataset. |
void |
shuffle()
Randomly re-order the examples. |
void |
shuffle(java.util.Random r)
Randomly re-order the examples. |
int |
size()
Return the number of examples. |
Dataset.Split |
split(Splitter<Example> splitter)
Partition the dataset as required by the splitter. |
Dataset.Split |
splitCandidateSegmentGroup(Splitter<CandidateSegmentGroup> splitter)
|
Viewer |
toGUI()
A GUI view of the dataset. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SegmentDataset()
| Method Detail |
|---|
public void setDataCompression(boolean flag)
public FeatureFactory getFeatureFactory()
Dataset
getFeatureFactory in interface Datasetpublic int getMaxWindowSize()
public int size()
Dataset
size in interface Datasetpublic int getNumberOfSegmentGroups()
public void addCandidateSegmentGroup(CandidateSegmentGroup group)
public ExampleSchema getSchema()
Dataset
getSchema in interface Datasetpublic void add(Example example)
add(Example, boolean)
add in interface Datasetexample - The Example that you want to add to the dataset.
public void add(Example example,
boolean compress)
add in interface Datasetexample - The example to add to the datasetcompress - Boolean specifying whether or not to compress the example.public java.util.Iterator<Example> iterator()
iterator in interface Datasetpublic java.util.Iterator<CandidateSegmentGroup> candidateSegmentGroupIterator()
public java.lang.String toString()
toString in class java.lang.Objectpublic void shuffle(java.util.Random r)
shuffle in interface Datasetpublic void shuffle()
shuffle in interface Datasetpublic Dataset shallowCopy()
shallowCopy in interface Datasetpublic Dataset.Split split(Splitter<Example> splitter)
Dataset
split in interface Datasetpublic Dataset.Split splitCandidateSegmentGroup(Splitter<CandidateSegmentGroup> splitter)
protected Dataset invertIteration(java.util.Iterator<CandidateSegmentGroup> i)
public Viewer toGUI()
toGUI in interface Visiblepublic int getNumPosExamples()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||