|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dataset
A set of examples for learning.
Nested Class Summary | |
---|---|
static interface |
Dataset.Split
A partitioning of the dataset into a number of train/test partitions |
Method Summary | |
---|---|
void |
add(Example example)
Add a new example to the dataset. |
void |
add(Example example,
boolean compress)
Add a new example to the dataset. |
FeatureFactory |
getFeatureFactory()
Get the FeatureFactory associated with the dataset |
ExampleSchema |
getSchema()
Get the schema associated with the dataset |
java.util.Iterator<Example> |
iterator()
Return an iterator over all examples. |
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. |
Methods inherited from interface edu.cmu.minorthird.util.gui.Visible |
---|
toGUI |
Method Detail |
---|
FeatureFactory getFeatureFactory()
ExampleSchema getSchema()
void add(Example example)
void add(Example example, boolean compress)
java.util.Iterator<Example> iterator()
int size()
void shuffle(java.util.Random r)
void shuffle()
Dataset shallowCopy()
Dataset.Split split(Splitter<Example> splitter)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |