public class GeneralRegression extends PMMLClassifier implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_algorithmName |
protected java.util.ArrayList<weka.classifiers.pmml.consumer.GeneralRegression.Predictor> |
m_covariateList |
protected weka.classifiers.pmml.consumer.GeneralRegression.CumulativeLinkFunction |
m_cumulativeLinkFunction |
protected double |
m_distParameter |
protected weka.classifiers.pmml.consumer.GeneralRegression.Distribution |
m_distribution |
protected java.util.ArrayList<weka.classifiers.pmml.consumer.GeneralRegression.Predictor> |
m_factorList |
protected int |
m_functionType |
protected weka.classifiers.pmml.consumer.GeneralRegression.LinkFunction |
m_linkFunction |
protected double |
m_linkParameter |
protected java.lang.String |
m_modelName |
protected weka.classifiers.pmml.consumer.GeneralRegression.ModelType |
m_modelType |
protected double |
m_offsetValue |
protected java.lang.String |
m_offsetVariable |
protected java.util.ArrayList<weka.classifiers.pmml.consumer.GeneralRegression.Parameter> |
m_parameterList |
protected weka.classifiers.pmml.consumer.GeneralRegression.PCell[][] |
m_paramMatrix |
protected weka.classifiers.pmml.consumer.GeneralRegression.PPCell[][] |
m_ppMatrix |
protected double |
m_trialsValue |
protected java.lang.String |
m_trialsVariable |
m_creatorApplication, m_dataDictionary, m_fieldsMap, m_initialized, m_log, m_miningSchema, m_pmmlVersionBATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT| 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.
|
protected void |
printParameterMatrix(java.lang.StringBuffer buff)
Format and print the parameter matrix to the supplied StringBuffer.
|
protected void |
printPPMatrix(java.lang.StringBuffer buff)
Format and print the PPMatrix to the supplied StringBuffer.
|
protected void |
readFactorsAndCovariates(org.w3c.dom.Element model,
java.lang.String factorOrCovariate)
Read the lists of factors and covariates.
|
protected void |
readParameterList(org.w3c.dom.Element model)
Read the list of parameters.
|
protected void |
readPPMatrix(org.w3c.dom.Element model)
Read the PPMatrix from the xml.
|
java.lang.String |
toString()
Return a textual description of this general regression.
|
buildClassifier, done, getCreatorApplication, getDataDictionary, getFieldsMappingString, getLog, getMiningSchema, getPMMLVersion, mapToMiningSchema, setCreatorApplication, setLog, setPMMLVersionbatchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptionsprotected weka.classifiers.pmml.consumer.GeneralRegression.ModelType m_modelType
protected java.lang.String m_modelName
protected java.lang.String m_algorithmName
protected int m_functionType
protected weka.classifiers.pmml.consumer.GeneralRegression.CumulativeLinkFunction m_cumulativeLinkFunction
protected weka.classifiers.pmml.consumer.GeneralRegression.LinkFunction m_linkFunction
protected double m_linkParameter
protected java.lang.String m_trialsVariable
protected double m_trialsValue
protected weka.classifiers.pmml.consumer.GeneralRegression.Distribution m_distribution
protected double m_distParameter
protected java.lang.String m_offsetVariable
protected double m_offsetValue
protected java.util.ArrayList<weka.classifiers.pmml.consumer.GeneralRegression.Parameter> m_parameterList
protected java.util.ArrayList<weka.classifiers.pmml.consumer.GeneralRegression.Predictor> m_factorList
protected java.util.ArrayList<weka.classifiers.pmml.consumer.GeneralRegression.Predictor> m_covariateList
protected weka.classifiers.pmml.consumer.GeneralRegression.PPCell[][] m_ppMatrix
protected weka.classifiers.pmml.consumer.GeneralRegression.PCell[][] m_paramMatrix
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 schemajava.lang.Exception - if there is a problem constructing the general regression
object from the PMML.protected void readParameterList(org.w3c.dom.Element model)
throws java.lang.Exception
model - the Element that contains the modeljava.lang.Exception - if there is some problem with extracting the
parameters.protected void readFactorsAndCovariates(org.w3c.dom.Element model,
java.lang.String factorOrCovariate)
throws java.lang.Exception
model - the Element that contains the modelfactorOrCovariate - holds the String "FactorList" or
"CovariateList"java.lang.Exception - if there is a factor or covariate listed
that isn't in the mining schemaprotected void readPPMatrix(org.w3c.dom.Element model)
throws java.lang.Exception
model - the Element that contains the modeljava.lang.Exception - if there is a problem parsing cell values.public java.lang.String toString()
toString in class java.lang.Objectprotected void printPPMatrix(java.lang.StringBuffer buff)
buff - the StringBuffer to append toprotected void printParameterMatrix(java.lang.StringBuffer buff)
buff - the StringBuffer to append topublic double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance to be classifiedjava.lang.Exception - if an error occurred during the predictionpublic java.lang.String getRevision()
AbstractClassifiergetRevision in interface RevisionHandlergetRevision in class AbstractClassifier