|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegressionPortObject
Port object representing simple regression models.
The accompanying spec is of type DataTableSpec
, whereby the last
column is not an actual variable but the target column (kept in order to
guess a good response column name), i.e. this column does not need to be
present in the test data. The remaining columns reflect the names and types
of the variables. All regressor variables and the response column are
supposed to be double compatible (meaning that the type of the columns in the
spec is ignored for that matter).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObject |
---|
PortObject.PortObjectSerializer<T extends PortObject> |
Field Summary | |
---|---|
static PortType |
TYPE
Convenience access member for port type. |
Method Summary | |
---|---|
DataTableSpec |
getSpec()
Spec to this regression model. |
DataCell |
predict(DataRow row)
Predict a row, returning the regression value. |
Methods inherited from interface org.knime.core.node.port.PortObject |
---|
getSummary, getViews |
Field Detail |
---|
static final PortType TYPE
Method Detail |
---|
DataTableSpec getSpec()
interface description
for details on the structure.
Get specification to this port object. That is, the corresponding
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
.DataCell predict(DataRow row)
getSpec()
), whereby there is no value for the
last (response) column, i.e.
row.getNumCells() == getSpec().getNumColumns() - 1
.
row
- to predict
DoubleCell
(unless
missing).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |