|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.meta.feature.backwardelim.BWElimModel
public class BWElimModel
This the model that holds the result of a backward elimination loop. The model consists of all levels (i.e. number of included features) together with the corresponding error rate and a list of all columns included in the level. Note that this class is also its spec at the same time, because the stored information is needed in the dialog of the filter node.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObject |
---|
PortObject.PortObjectSerializer<T extends PortObject> |
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObjectSpec |
---|
PortObjectSpec.PortObjectSpecSerializer<T extends PortObjectSpec> |
Field Summary | |
---|---|
static PortType |
TYPE
The type of ports that create or consume such a model. |
Constructor Summary | |
---|---|
BWElimModel(String targetColumn)
Creates a new model. |
Method Summary | |
---|---|
void |
addFeatureLevel(double error,
Collection<String> includedColumns)
Adds a new feature level. |
Collection<Pair<Double,Collection<String>>> |
featureLevels()
Returns an unmodifieable collection of the stored feature levels. |
static PortObject.PortObjectSerializer<BWElimModel> |
getPortObjectSerializer()
Returns a serializer object for this model. |
static PortObjectSpec.PortObjectSpecSerializer<BWElimModel> |
getPortObjectSpecSerializer()
Returns a serializer object for this model's spec (which is the model itself). |
PortObjectSpec |
getSpec()
Get specification to this port object. |
String |
getSummary()
Get a short summary of this PortObject . |
JComponent[] |
getViews()
The returned views are displayed in the out port view of the referring node. |
String |
targetColumn()
Returns the target column's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PortType TYPE
Constructor Detail |
---|
public BWElimModel(String targetColumn)
targetColumn
- the target columns's nameMethod Detail |
---|
public void addFeatureLevel(double error, Collection<String> includedColumns)
error
- the resulting error rateincludedColumns
- a list with the included column namespublic Collection<Pair<Double,Collection<String>>> featureLevels()
public String targetColumn()
public PortObjectSpec getSpec()
PortObjectSpec
which is used to configure any successor node
after execution, e.g. a BufferedDataTable
can return a
DataTableSpec
.
Subclasses should narrow the return type if possible.
getSpec
in interface PortObject
PortObjectSpec
or any derived spec,
never null
.public String getSummary()
PortObject
.
The return value will be shown in a node port's tooltip, for instance.
getSummary
in interface PortObject
public static PortObject.PortObjectSerializer<BWElimModel> getPortObjectSerializer()
public static PortObjectSpec.PortObjectSpecSerializer<BWElimModel> getPortObjectSpecSerializer()
public JComponent[] getViews()
getViews
in interface PortObject
getViews
in interface PortObjectSpec
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |