final class Learner extends RegressionStatisticsLearner
m_failOnMissing, m_includeConstant, m_offsetValue, m_outSpec
Constructor and Description |
---|
Learner(PMMLPortObjectSpec spec) |
Learner(PMMLPortObjectSpec spec,
boolean includeConstant,
double offsetValue,
boolean failOnMissing) |
Modifier and Type | Method and Description |
---|---|
LinearRegressionContent |
perform(BufferedDataTable data,
ExecutionContext exec) |
protected void |
processTable(ExecutionMonitor exec,
RegressionTrainingData trainingData,
org.apache.commons.math3.stat.descriptive.SummaryStatistics[] stats,
org.apache.commons.math3.stat.regression.UpdatingMultipleLinearRegression regr)
Reads the table and performs the necessary updates on the statistics (
stats and regr ). |
createCovarianceMatrix, createCovariateListAndFillFactors, initStatistics
Learner(PMMLPortObjectSpec spec)
spec
- The PMMLPortObjectSpec
of the output table.Learner(PMMLPortObjectSpec spec, boolean includeConstant, double offsetValue, boolean failOnMissing)
spec
- The PMMLPortObjectSpec
of the output table.includeConstant
- include a constant automaticallyoffsetValue
- offset value (a user defined intercept)failOnMissing
- when true an exception is thrown when a missing cell is observedpublic LinearRegressionContent perform(BufferedDataTable data, ExecutionContext exec) throws CanceledExecutionException, InvalidSettingsException
perform
in class RegressionStatisticsLearner
data
- The data table.exec
- The execution context used for reporting progress.CanceledExecutionException
- When method is cancelledInvalidSettingsException
- When settings are inconsistent with the dataprotected void processTable(ExecutionMonitor exec, RegressionTrainingData trainingData, org.apache.commons.math3.stat.descriptive.SummaryStatistics[] stats, org.apache.commons.math3.stat.regression.UpdatingMultipleLinearRegression regr) throws CanceledExecutionException
stats
and regr
).processTable
in class RegressionStatisticsLearner
exec
- An ExecutionMonitor
.trainingData
- The training data.stats
- Array of statistics for each (column, exponent) pair.regr
- An UpdatingMultipleLinearRegression
object.CanceledExecutionException
- Processing was cancelled.
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.