public class GeneralRegression extends PMMLClassifier implements java.io.Serializable
| Constructor and Description |
|---|
GeneralRegression(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
Constructs a GeneralRegression classifier.
|
| 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 general regression.
|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersionclassifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, setDebug, setOptionspublic GeneralRegression(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
throws java.lang.Exception
model - the Element that holds the model definitiondataDictionary - the data dictionary as a set of InstancesminingSchema - the mining schemajava.lang.Exception - if there is a problem constructing the general regression
object from the PMML.public java.lang.String toString()
toString in class java.lang.Objectpublic double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance in class Classifierinst - the instance to be classifiedjava.lang.Exception - if an error occurred during the predictionpublic java.lang.String getRevision()
ClassifiergetRevision in interface RevisionHandlergetRevision in class Classifier