|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.example.set.AbstractExampleSet
com.rapidminer.example.set.SplittedExampleSet
public class SplittedExampleSet
An example set that can be split into subsets by using a Partition.
| Field Summary | |
|---|---|
static int |
LINEAR_SAMPLING
Indicates a non-shuffled sampling for partition building. |
static java.lang.String[] |
SAMPLING_NAMES
Indicates a non-shuffled sampling for partition building. |
static int |
SHUFFLED_SAMPLING
Indicates a shuffled sampling for partition building. |
static int |
STRATIFIED_SAMPLING
Indicates a stratified shuffled sampling for partition building. |
| Constructor Summary | |
|---|---|
SplittedExampleSet(ExampleSet exampleSet,
double[] splitRatios,
int samplingType,
int seed)
Creates an example set that is splitted into n subsets with the given sampling type. |
|
SplittedExampleSet(ExampleSet exampleSet,
double splitRatio,
int samplingType,
int seed)
Creates an example set that is splitted into two subsets using the given sampling type. |
|
SplittedExampleSet(ExampleSet exampleSet,
int numberOfSubsets,
int samplingType,
int seed)
Creates an example set that is splitted into numberOfSubsets parts with the given sampling type. |
|
SplittedExampleSet(ExampleSet exampleSet,
Partition partition)
Constructs a SplittedExampleSet with the given partition. |
|
SplittedExampleSet(SplittedExampleSet exampleSet)
Clone constructor. |
|
| Method Summary | |
|---|---|
void |
clearSelection()
Clears the current selection |
boolean |
equals(java.lang.Object o)
Returns true, if all attributes including labels and other special attributes are equal. |
int |
getActualParentIndex(int index)
Returns the index of the example in the parent example set. |
Attributes |
getAttributes()
Returns the data structure holding all attributes. |
Example |
getExample(int index)
Searches i-th example in the currently selected partition. |
ExampleTable |
getExampleTable()
Returns the underlying example table. |
int |
getNumberOfSubsets()
Returns the number of subsets. |
int |
hashCode()
Returns the hash code of all attributes. |
void |
invertSelection()
Inverts the current selection |
java.util.Iterator<Example> |
iterator()
Returns an example reader that splits all examples that are not selected. |
void |
selectAdditionalSubset(int index)
Adds the given subset. |
void |
selectAllSubsets()
Selects all subsets. |
void |
selectAllSubsetsBut(int index)
Selects all but one subset. |
void |
selectSingleSubset(int index)
Selects exactly one subset. |
int |
size()
Returns the number of examples in this example set. |
static SplittedExampleSet |
splitByAttribute(ExampleSet exampleSet,
Attribute attribute)
Works only for nominal and integer attributes. |
static SplittedExampleSet |
splitByAttribute(ExampleSet exampleSet,
Attribute attribute,
double value)
Works only for real-value attributes. |
| Methods inherited from class com.rapidminer.example.set.AbstractExampleSet |
|---|
clone, copy, createDataTable, getActions, getExampleFromId, getExampleIndicesFromId, getExtension, getFileDescription, getName, getResultIcon, getStatistics, getStatistics, getVisualizationComponent, getVisualizationComponent, recalculateAllAttributeStatistics, recalculateAttributeStatistics, remapIds, toString, writeAttributeFile, writeDataFile, writeSparseAttributeFile, writeSparseDataFile |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
|---|
addAction, isSavable, log, logError, logNote, logWarning, save, toHTML, toResultString |
| Methods inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
getLog, getSource, initWriting, read, setLoggingHandler, setSource, write |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.ResultObject |
|---|
toResultString |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
getLog, getSource, setLoggingHandler, setSource, write |
| Field Detail |
|---|
public static final java.lang.String[] SAMPLING_NAMES
public static final int LINEAR_SAMPLING
public static final int SHUFFLED_SAMPLING
public static final int STRATIFIED_SAMPLING
| Constructor Detail |
|---|
public SplittedExampleSet(ExampleSet exampleSet,
Partition partition)
public SplittedExampleSet(ExampleSet exampleSet,
double splitRatio,
int samplingType,
int seed)
public SplittedExampleSet(ExampleSet exampleSet,
double[] splitRatios,
int samplingType,
int seed)
public SplittedExampleSet(ExampleSet exampleSet,
int numberOfSubsets,
int samplingType,
int seed)
public SplittedExampleSet(SplittedExampleSet exampleSet)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
AbstractExampleSet
equals in interface ExampleSetequals in class AbstractExampleSetpublic int hashCode()
AbstractExampleSet
hashCode in interface ExampleSethashCode in class AbstractExampleSetpublic void selectAdditionalSubset(int index)
public void selectSingleSubset(int index)
public void selectAllSubsetsBut(int index)
public void selectAllSubsets()
public void invertSelection()
public void clearSelection()
public int getNumberOfSubsets()
public java.util.Iterator<Example> iterator()
public int size()
ExampleSet
public Example getExample(int index)
public int getActualParentIndex(int index)
public ExampleTable getExampleTable()
ExampleSet
public Attributes getAttributes()
ExampleSet
public static SplittedExampleSet splitByAttribute(ExampleSet exampleSet,
Attribute attribute)
public static SplittedExampleSet splitByAttribute(ExampleSet exampleSet,
Attribute attribute,
double value)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||