|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--milk.classifiers.MIClassifier
|
+--milk.classifiers.TLD
0657.594 Thesis Two-Level Distribution approach, changes the starting value of the searching algorithm, supplement the cut-off modification and check missing values.
| Field Summary | |
protected double[] |
m_Class
The class label of each exemplar |
protected double |
m_Cutoff
|
protected int |
m_Dimension
The dimension of each exemplar, i.e. |
protected double[][] |
m_MeanN
The mean for each attribute of each negative exemplar |
protected double[][] |
m_MeanP
The mean for each attribute of each positive exemplar |
protected int |
m_NumClasses
The number of class labels in the data |
protected double[] |
m_ParamsN
The parameters to be estimated for each negative exemplar |
protected double[] |
m_ParamsP
The parameters to be estimated for each positive exemplar |
protected int |
m_Run
|
protected long |
m_Seed
|
protected double[][] |
m_SumN
The effective sum of weights of each negative exemplar in each dimension |
protected double[][] |
m_SumP
The effective sum of weights of each positive exemplar in each dimension |
protected boolean |
m_UseEmpiricalCutOff
|
protected double[][] |
m_VarianceN
The variance for each attribute of each negative exemplar |
protected double[][] |
m_VarianceP
The variance for each attribute of each positive exemplar |
static double |
ZERO
The very small number representing zero |
| Constructor Summary | |
TLD()
|
|
| Method Summary | |
void |
buildClassifier(Exemplars exs)
Generates a classifier. |
double |
classifyExemplar(Exemplar e)
Classifies the given test instance. |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options Valid options are: |
static void |
main(java.lang.String[] args)
Main method for testing. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
| Methods inherited from class milk.classifiers.MIClassifier |
distributionForExemplar, forName, makeCopies |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected double[][] m_MeanP
protected double[][] m_VarianceP
protected double[][] m_MeanN
protected double[][] m_VarianceN
protected double[][] m_SumP
protected double[][] m_SumN
protected double[] m_ParamsP
protected double[] m_ParamsN
protected int m_Dimension
protected double[] m_Class
protected int m_NumClasses
public static double ZERO
protected int m_Run
protected long m_Seed
protected double m_Cutoff
protected boolean m_UseEmpiricalCutOff
| Constructor Detail |
public TLD()
| Method Detail |
public void buildClassifier(Exemplars exs)
throws java.lang.Exception
MIClassifier
buildClassifier in class MIClassifierexs - the training exemplars
if - the model cannot be built properly
java.lang.Exception - if the classifier has not been
generated successfully
public double classifyExemplar(Exemplar e)
throws java.lang.Exception
MIClassifier
classifyExemplar in class MIClassifiere - the instance to be classified
java.lang.Exception - if the exemplar could not be classified
successfullypublic java.util.Enumeration listOptions()
-C Set whether or not use empirical log-odds cut-off instead of 0
(default: Not use)
-R
listOptions in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface weka.core.OptionHandleroptions - the list of options as an array of strings
java.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface weka.core.OptionHandlerpublic static void main(java.lang.String[] args)
args - the options for the classifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||