|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.Classifier
weka.classifiers.pmml.consumer.PMMLClassifier
weka.classifiers.pmml.consumer.GeneralRegression
public class GeneralRegression
Class implementing import of PMML General Regression model. Can be used as a Weka classifier for prediction (buildClassifier() raises an Exception).
Constructor Summary | |
---|---|
GeneralRegression(org.w3c.dom.Element model,
Instances dataDictionary,
MiningSchema miningSchema)
Constructs a GeneralRegression classifier. |
Method Summary | |
---|---|
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. |
Methods inherited from class weka.classifiers.pmml.consumer.PMMLClassifier |
---|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersion |
Methods inherited from class weka.classifiers.Classifier |
---|
classifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, setDebug, setOptions |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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 schema
java.lang.Exception
- if there is a problem constructing the general regression
object from the PMML.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance
in class Classifier
inst
- the instance to be classified
java.lang.Exception
- if an error occurred during the predictionpublic java.lang.String getRevision()
Classifier
getRevision
in interface RevisionHandler
getRevision
in class Classifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |