public class Regression extends PMMLClassifier implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected 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_pmmlVersionm_Debug| Constructor and Description |
|---|
Regression(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.
|
String |
getRevision()
Returns the revision string.
|
String |
toString()
Return a textual description of this Regression model.
|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersionclassifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setOptionsprotected String m_algorithmName
protected weka.classifiers.pmml.consumer.Regression.RegressionTable[] m_regressionTables
protected weka.classifiers.pmml.consumer.Regression.Normalization m_normalizationMethod
public Regression(Element model, Instances dataDictionary, MiningSchema miningSchema) throws Exception
model - the Element containing the regression modeldataDictionary - the data dictionary as an Instances objectminingSchema - the mining schemaException - if there is a problem constructing this Regressionpublic String toString()
public double[] distributionForInstance(Instance inst) throws Exception
distributionForInstance in class Classifierinst - the instance to be classifiedException - if an error occurred during the predictionpublic String getRevision()
ClassifiergetRevision in interface RevisionHandlergetRevision in class ClassifierCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.