|
||||||||||
| 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.ConditionedExampleSet
public class ConditionedExampleSet
Hides Examples that do not fulfill a given Condition.
| Field Summary | |
|---|---|
static int |
CONDITION_ALL
|
static int |
CONDITION_ATTRIBUTE_VALUE_FILTER
|
static int |
CONDITION_CORRECT_PREDICTIONS
|
static int |
CONDITION_MISSING_ATTRIBUTES
|
static int |
CONDITION_MISSING_LABELS
|
static int |
CONDITION_NO_MISSING_ATTRIBUTES
|
static int |
CONDITION_NO_MISSING_LABELS
|
static int |
CONDITION_WRONG_PREDICTIONS
|
static java.lang.String[] |
KNOWN_CONDITION_NAMES
Array of short names for the known conditions. |
| Constructor Summary | |
|---|---|
ConditionedExampleSet(ConditionedExampleSet exampleSet)
Clone constructor. |
|
ConditionedExampleSet(ExampleSet parent,
Condition condition)
Creates a new example which used only examples fulfilling the given condition. |
|
ConditionedExampleSet(ExampleSet parent,
Condition condition,
boolean inverted)
Creates a new example which used only examples fulfilling the given condition. |
|
| Method Summary | |
|---|---|
static Condition |
createCondition(java.lang.String name,
ExampleSet exampleSet,
java.lang.String parameterString)
Checks if the given name is the short name of a known condition and creates it. |
boolean |
equals(java.lang.Object o)
Returns true, if all attributes including labels and other special attributes are equal. |
Attributes |
getAttributes()
Returns the data structure holding all attributes. |
Example |
getExample(int index)
Returns the i-th example fulfilling the condition. |
ExampleTable |
getExampleTable()
Returns the underlying example table. |
int |
hashCode()
Returns the hash code of all attributes. |
java.util.Iterator<Example> |
iterator()
Returns a MappedExampleReader. |
int |
size()
Counts the number of examples which fulfills the condition. |
| 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[] KNOWN_CONDITION_NAMES
public static final int CONDITION_ALL
public static final int CONDITION_CORRECT_PREDICTIONS
public static final int CONDITION_WRONG_PREDICTIONS
public static final int CONDITION_NO_MISSING_ATTRIBUTES
public static final int CONDITION_MISSING_ATTRIBUTES
public static final int CONDITION_NO_MISSING_LABELS
public static final int CONDITION_MISSING_LABELS
public static final int CONDITION_ATTRIBUTE_VALUE_FILTER
| Constructor Detail |
|---|
public ConditionedExampleSet(ExampleSet parent,
Condition condition)
public ConditionedExampleSet(ExampleSet parent,
Condition condition,
boolean inverted)
public ConditionedExampleSet(ConditionedExampleSet 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 java.util.Iterator<Example> iterator()
MappedExampleReader.
public Example getExample(int index)
public int size()
public Attributes getAttributes()
ExampleSet
public ExampleTable getExampleTable()
ExampleSet
public static Condition createCondition(java.lang.String name,
ExampleSet exampleSet,
java.lang.String parameterString)
throws ConditionCreationException
Condition by
calling its two argument constructor passing it the example set and the
parameter string
ConditionCreationException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||