com.rapidminer.example.set
Class RemappedExampleSet
java.lang.Object
com.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.example.set.AbstractExampleSet
com.rapidminer.example.set.RemappedExampleSet
- All Implemented Interfaces:
- ExampleSet, IOObject, ResultObject, LoggingHandler, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Example>
public class RemappedExampleSet
- extends AbstractExampleSet
This example set uses the mapping given by another example set and
"remaps" on the fly the nominal values according to the given set. It also
sorts the regular attributes in the order of the other exampleSet if possible.
If additional attributes occur, they are appended on the end of the example set, if keepAdditional is
selected.
- Author:
- Ingo Mierswa, Sebastian Land
- See Also:
- Serialized Form
| Methods inherited from class com.rapidminer.example.set.AbstractExampleSet |
clone, copy, createDataTable, equals, getExampleFromId, getExampleIndicesFromId, getExtension, getFileDescription, getName, getStatistics, getStatistics, hashCode, recalculateAllAttributeStatistics, recalculateAttributeStatistics, remapIds, toString, writeAttributeFile, writeDataFile, writeSparseAttributeFile, writeSparseDataFile |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
addAction, getActions, getAnnotations, getResultIcon, log, log, logError, logNote, logWarning, toHTML, toResultString |
| Methods inherited from class com.rapidminer.operator.AbstractIOObject |
appendOperatorToHistory, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
RemappedExampleSet
public RemappedExampleSet(ExampleSet parentSet,
ExampleSet mappingSet)
RemappedExampleSet
public RemappedExampleSet(ExampleSet parentSet,
ExampleSet _mappingSet,
boolean keepAdditional)
RemappedExampleSet
public RemappedExampleSet(RemappedExampleSet other)
- Clone constructor.
getAttributes
public Attributes getAttributes()
- Description copied from interface:
ExampleSet
- Returns the data structure holding all attributes.
getExampleTable
public ExampleTable getExampleTable()
- Description copied from interface:
ExampleSet
- Returns the underlying example table. Most operators should operate on
the example set and manipulate example to change table data instead of
using the table directly.
size
public int size()
- Description copied from interface:
ExampleSet
- Returns the number of examples in this example set. This number should
not be used to create for-loops to iterate through all examples.
iterator
public java.util.Iterator<Example> iterator()
getExample
public Example getExample(int index)
- Description copied from interface:
ExampleSet
- Returns the i-th example. It is not guaranteed that asking for an example
by using the index in the example table is efficiently implemented.
Therefore for-loops for iterations are not an option and an
ExampleReader should be used.
Copyright © 2001-2009 by Rapid-I