|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--milk.classifiers.MIClassifier
|
+--milk.classifiers.TLDSimple
0657.594 Thesis A simpler version of TLD, \mu random but \sigma^2 fixed and estimated via data
| 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_SgmSqN
Estimated sigma^2 in negative bags |
protected double[] |
m_SgmSqP
Estimated sigma^2 in positive bags |
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
|
static double |
ZERO
The very small number representing zero |
| Constructor Summary | |
TLDSimple()
|
|
| 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. |
java.lang.String |
toString()
Gets a string describing the classifier. |
| Methods inherited from class milk.classifiers.MIClassifier |
distributionForExemplar, forName, makeCopies |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected double[][] m_MeanP
protected double[][] m_MeanN
protected double[][] m_SumP
protected double[][] m_SumN
protected double[] m_SgmSqP
protected double[] m_SgmSqN
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 TLDSimple()
| 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 java.lang.String toString()
toString in class java.lang.Objectpublic 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 | |||||||||