public class GeneralRegression extends PMMLClassifier implements Serializable
| Constructor and Description |
|---|
GeneralRegression(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.
|
String |
getRevision()
Returns the revision string.
|
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, runClassifier, setDebug, setOptionspublic GeneralRegression(Element model, Instances dataDictionary, MiningSchema miningSchema) throws Exception
model - the Element that holds the model definitiondataDictionary - the data dictionary as a set of InstancesminingSchema - the mining schemaException - if there is a problem constructing the general regression
object from the PMML.public String toString()
public double[] distributionForInstance(Instance inst) throws Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classifiedException - if an error occurred during the predictionpublic String getRevision()
AbstractClassifiergetRevision in interface RevisionHandlergetRevision in class AbstractClassifierCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.