|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExampleSet
Interface definition for all example sets. Usually, example sets do not contain any data but are only views on an example table (for example for sampling or feature selection purposes). It should be possible to create a layered view on the data, hence the name multi-layered data view. ExampleSet implementation should support this view concept.
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the example set. |
boolean |
equals(java.lang.Object o)
True if all attributes are equal. |
Attributes |
getAttributes()
Returns the data structure holding all attributes. |
Example |
getExample(int index)
Returns the i-th example. |
Example |
getExampleFromId(double value)
Returns the example with the given id value. |
int[] |
getExampleIndicesFromId(double value)
Returns all examples which have the given id. |
ExampleTable |
getExampleTable()
Returns the underlying example table. |
double |
getStatistics(Attribute attribute,
java.lang.String statisticsName)
Returns the desired statistic for the given attribute. |
double |
getStatistics(Attribute attribute,
java.lang.String statisticsName,
java.lang.String statisticsParameter)
Returns the desired statistic for the given attribute. |
int |
hashCode()
Returns the hash code. |
void |
recalculateAllAttributeStatistics()
Recalculate all attribute statistics. |
void |
recalculateAttributeStatistics(Attribute attribute)
Recalculate the attribute statistics of the given attribute. |
void |
remapIds()
Remaps all ids. |
int |
size()
Returns the number of examples in this example set. |
void |
writeAttributeFile(java.io.File attFile,
java.io.File dataFile,
java.nio.charset.Charset encoding)
Writes the attribute meta descriptions into a file. |
void |
writeDataFile(java.io.File dataFile,
int fractionDigits,
boolean quoteNominal,
boolean zipped,
boolean append,
java.nio.charset.Charset encoding)
Writes the data and the attribute description to a file. |
void |
writeSparseAttributeFile(java.io.File attFile,
java.io.File dataFile,
int format,
java.nio.charset.Charset encoding)
Writes the attribute meta descriptions for a sparse data file into a file. |
void |
writeSparseDataFile(java.io.File dataFile,
int format,
int fractionDigits,
boolean quoteNominal,
boolean zipped,
boolean append,
java.nio.charset.Charset encoding)
Writes the data and the attribute description to a sparse data file. |
| Methods inherited from interface com.rapidminer.operator.ResultObject |
|---|
getActions, getName, getResultIcon, getVisualizationComponent, toResultString |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
copy, getLog, getSource, setLoggingHandler, setSource, write |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
java.lang.Object clone()
boolean equals(java.lang.Object o)
equals in class java.lang.Objectint hashCode()
hashCode in class java.lang.ObjectAttributes getAttributes()
int size()
ExampleTable getExampleTable()
Example getExampleFromId(double value)
int[] getExampleIndicesFromId(double value)
Example getExample(int index)
ExampleReader should be used.
void remapIds()
getExampleFromId(double)
is used.
void writeDataFile(java.io.File dataFile,
int fractionDigits,
boolean quoteNominal,
boolean zipped,
boolean append,
java.nio.charset.Charset encoding)
throws java.io.IOException
java.io.IOException
void writeAttributeFile(java.io.File attFile,
java.io.File dataFile,
java.nio.charset.Charset encoding)
throws java.io.IOException
java.io.IOException
void writeSparseDataFile(java.io.File dataFile,
int format,
int fractionDigits,
boolean quoteNominal,
boolean zipped,
boolean append,
java.nio.charset.Charset encoding)
throws java.io.IOException
dataFile - the file to write the data toformat - specified by SparseFormatExampleSourcefractionDigits - the number of fraction digits (-1 for all possible digits)
java.io.IOException
void writeSparseAttributeFile(java.io.File attFile,
java.io.File dataFile,
int format,
java.nio.charset.Charset encoding)
throws java.io.IOException
format - specified by SparseFormatExampleSource
java.io.IOExceptionvoid recalculateAllAttributeStatistics()
void recalculateAttributeStatistics(Attribute attribute)
double getStatistics(Attribute attribute,
java.lang.String statisticsName)
double getStatistics(Attribute attribute,
java.lang.String statisticsName,
java.lang.String statisticsParameter)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||