public class PDFC extends SMO
SMO.BinarySMO
Modifier and Type | Field and Description |
---|---|
protected SMO.BinarySMO[] |
m_classifiers
The binary classifier(s)
|
protected double |
m_d
The 'd' value for the Positive-Definite Reference Functions
|
protected FuzzyRuleSet[] |
m_ruleSet
The fuzzy rule sets
|
FILTER_NONE, FILTER_NORMALIZE, FILTER_STANDARDIZE, input_test_name, input_train_name, input_validation_name, m_C, m_checksTurnedOff, m_classAttribute, m_classIndex, m_Del, m_eps, m_filterType, m_fitLogisticModels, m_kernel, m_KernelIsLinear, m_nominalToBinary, m_NumClasses, m_numFolds, m_randomSeed, m_seed, m_tol, mean, method_output, output_test_name, output_train_name, probabilities, std_dev, TAGS_FILTER
Constructor and Description |
---|
PDFC()
Default constructor
|
PDFC(java.lang.String fileParam)
Creates a new instance of PDFC
|
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(Instances insts)
Method for building the classifier.
|
double[] |
distributionForInstance(Instance inst)
Estimates class probabilities for given instance.
|
protected void |
printRuleBase()
This method prints the actual Rule Base stored in m_ruleSet to a file
|
void |
runModel()
Run the model once the parameters have been set by the
method config_read()
|
attributeNames, bias, buildLogisticModelsTipText, checksTurnedOffTipText, classAttributeNames, computeStats, cTipText, epsilonTipText, filterTypeTipText, getBuildLogisticModels, getC, getChecksTurnedOff, getEpsilon, getFilterType, getKernel, getNumFolds, getRandomSeed, getTechnicalInformation, getToleranceParameter, globalInfo, InstancesKEEL2Weka, kernelTipText, normalize, numClassAttributeValues, numFoldsTipText, obtainVotes, pairwiseCoupling, printSVs, randomSeedTipText, runModel, setBuildLogisticModels, setC, setChecksTurnedOff, setEpsilon, setFilterType, setKernel, setNumFolds, setRandomSeed, setToleranceParameter, sparseIndices, sparseWeights, standardize, toleranceParameterTipText, turnChecksOff, turnChecksOn, writeOutput
protected SMO.BinarySMO[] m_classifiers
protected FuzzyRuleSet[] m_ruleSet
protected double m_d
public PDFC(java.lang.String fileParam)
fileParam
- The path to the configuration file with all the parameters in KEEL formatpublic PDFC()
Default constructor
public void buildClassifier(Instances insts) throws java.lang.Exception
buildClassifier
in class SMO
insts
- the set of training instancesjava.lang.Exception
- if the classifier can't be built successfullypublic double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance
in class SMO
inst
- the instance to compute the probabilities forjava.lang.Exception
- in case of an errorpublic void runModel()
protected void printRuleBase()