public class RegressionTrainingData extends Object implements Iterable<RegressionTrainingRow>
Constructor and Description |
---|
RegressionTrainingData(BufferedDataTable data,
PMMLPortObjectSpec spec) |
RegressionTrainingData(BufferedDataTable data,
PMMLPortObjectSpec spec,
boolean failOnMissing) |
RegressionTrainingData(BufferedDataTable data,
PMMLPortObjectSpec spec,
boolean failOnMissing,
DataCell targetReferenceCategory,
boolean sortTargetCategories,
boolean sortFactorsCategories) |
RegressionTrainingData(BufferedDataTable data,
PMMLPortObjectSpec spec,
List<? extends DataColumnSpec> specialColumns,
boolean failOnMissing,
DataCell targetReferenceCategory,
boolean sortTargetCategories,
boolean sortFactorsCategories) |
Modifier and Type | Method and Description |
---|---|
List<Integer> |
getActiveCols() |
Map<Integer,List<DataCell>> |
getDomainValues() |
Map<Integer,Boolean> |
getIsNominal() |
int |
getRegressorCount() |
long |
getRowCount() |
Map<Integer,Integer> |
getVectorLengths() |
Iterator<RegressionTrainingRow> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RegressionTrainingData(BufferedDataTable data, PMMLPortObjectSpec spec) throws InvalidSettingsException
data
- training data.spec
- port object spec.InvalidSettingsException
- When settings are inconsistent with the datapublic RegressionTrainingData(BufferedDataTable data, PMMLPortObjectSpec spec, boolean failOnMissing) throws InvalidSettingsException
data
- training data.spec
- port object spec.failOnMissing
- when true an exception is thrown when a missing cell is observedInvalidSettingsException
- When settings are inconsistent with the datapublic RegressionTrainingData(BufferedDataTable data, PMMLPortObjectSpec spec, boolean failOnMissing, DataCell targetReferenceCategory, boolean sortTargetCategories, boolean sortFactorsCategories) throws InvalidSettingsException
data
- training data.spec
- port object spec.failOnMissing
- when true an exception is thrown when a missing cell is observedtargetReferenceCategory
- the target reference category, if not set it is the last categorysortTargetCategories
- true when target categories should be sortedsortFactorsCategories
- true when categories of nominal data in the include list should be sortedInvalidSettingsException
- When settings are inconsistent with the datapublic RegressionTrainingData(BufferedDataTable data, PMMLPortObjectSpec spec, List<? extends DataColumnSpec> specialColumns, boolean failOnMissing, DataCell targetReferenceCategory, boolean sortTargetCategories, boolean sortFactorsCategories) throws InvalidSettingsException
data
- training data.spec
- port object spec.specialColumns
- The special columns that cannot be represented by normal PMMLPortObjectSpec
.failOnMissing
- when true an exception is thrown when a missing cell is observedtargetReferenceCategory
- the target reference category, if not set it is the last categorysortTargetCategories
- true when target categories should be sortedsortFactorsCategories
- true when categories of nominal data in the include list should be sortedInvalidSettingsException
- When settings are inconsistent with the datapublic Iterator<RegressionTrainingRow> iterator()
iterator
in interface Iterable<RegressionTrainingRow>
public int getRegressorCount()
public long getRowCount()
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.