|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.AbstractClassifier
weka.classifiers.pmml.consumer.PMMLClassifier
weka.classifiers.pmml.consumer.Regression
public class Regression
Class implementing import of PMML Regression model. Can be used as a Weka classifier for prediction (buildClassifier() raises an Exception).
| Constructor Summary | |
|---|---|
Regression(Element model,
Instances dataDictionary,
MiningSchema miningSchema)
Constructs a new PMML Regression. |
|
| Method Summary | |
|---|---|
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. |
| 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.AbstractClassifier |
|---|
classifyInstance, debugTipText, forName, getCapabilities, getDebug, getOptions, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setOptions |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 schema
Exception - if there is a problem constructing this Regression| Method Detail |
|---|
public String toString()
toString in class Object
public double[] distributionForInstance(Instance inst)
throws Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classified
Exception - if an error occurred during the predictionpublic String getRevision()
AbstractClassifier
getRevision in interface RevisionHandlergetRevision in class AbstractClassifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||