Package weka.classifiers.pmml.producer
Class LogisticProducerHelper
java.lang.Object
weka.classifiers.pmml.producer.AbstractPMMLProducerHelper
weka.classifiers.pmml.producer.LogisticProducerHelper
Helper class for producing PMML for a Logistic classifier. Not designed to be
used directly - you should call toPMML() on a trained Logistic classifier.
- Version:
- $Revision: $
- Author:
- David Persons, Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
Field Summary
Fields inherited from class weka.classifiers.pmml.producer.AbstractPMMLProducerHelper
PMML_VERSION
-
Constructor Summary
-
Method Summary
Methods inherited from class weka.classifiers.pmml.producer.AbstractPMMLProducerHelper
addDataDictionary, getNameAndValueFromUnsupervisedNominalToBinaryDerivedAttribute, getOPTYPE, initPMML
-
Constructor Details
-
LogisticProducerHelper
public LogisticProducerHelper()
-
-
Method Details
-
toPMML
public static String toPMML(Instances train, Instances structureAfterFiltering, double[][] par, int numClasses) Produce the PMML for a Logistic classifier- Parameters:
train
- the training data used to build the Logistic modelstructureAfterFiltering
- the structure of the training data after filteringpar
- the parameters of the function(s)numClasses
- the number of classes in the data- Returns:
- the PMML for the classifier
-