public class Regression extends PMMLClassifier implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_algorithmName
Description of the algorithm
|
protected weka.classifiers.pmml.consumer.Regression.Normalization |
m_normalizationMethod
The normalization to use
|
protected weka.classifiers.pmml.consumer.Regression.RegressionTable[] |
m_regressionTables
The regression tables for this regression
|
m_creatorApplication, m_dataDictionary, m_fieldsMap, m_initialized, m_log, m_miningSchema, m_pmmlVersionBATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT| Constructor and Description |
|---|
Regression(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
Constructs a new PMML Regression.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
distributionForInstance(Instance inst)
Classifies the given test instance.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
toString()
Return a textual description of this Regression model.
|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersionbatchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptionsprotected java.lang.String m_algorithmName
protected weka.classifiers.pmml.consumer.Regression.RegressionTable[] m_regressionTables
protected weka.classifiers.pmml.consumer.Regression.Normalization m_normalizationMethod
public Regression(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
throws java.lang.Exception
model - the Element containing the regression modeldataDictionary - the data dictionary as an Instances objectminingSchema - the mining schemajava.lang.Exception - if there is a problem constructing this Regressionpublic java.lang.String toString()
toString in class java.lang.Objectpublic double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classifiedjava.lang.Exception - if an error occurred during the predictionpublic java.lang.String getRevision()
AbstractClassifiergetRevision in interface RevisionHandlergetRevision in class AbstractClassifier