|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--milk.classifiers.MIClassifier
|
+--milk.classifiers.MILRARITH
Using collective assumption, arithmatic average of the posteriors of instances inside a bag is taken. Valid options are:
-D
Turn on debugging output.
-P precision
Set the precision of stopping criteria in Newton method.
-R ridge
Set the ridge parameter for the log-likelihood.
| Field Summary | |
protected weka.core.Instances |
m_Attributes
All attribute names |
protected int[] |
m_Classes
Class labels for each bag |
protected int |
m_ClassIndex
The index of the class attribute |
protected double[][][] |
m_Data
MI data |
protected boolean |
m_Debug
Debugging output |
protected int |
m_IdIndex
|
protected int |
m_NumClasses
The number of the class labels |
protected double[] |
m_Par
|
protected double |
m_Ridge
The ridge parameter. |
protected double[] |
xMean
|
protected double[] |
xSD
|
| Constructor Summary | |
MILRARITH()
|
|
| Method Summary | |
void |
buildClassifier(Exemplars train)
Builds the classifier |
double[] |
distributionForExemplar(Exemplar exmp)
Computes the distribution for a given exemplar |
boolean |
getDebug()
Gets whether debugging output will be printed. |
java.lang.String[] |
getOptions()
Gets the current settings of the classifier. |
double |
getRidge()
Gets the ridge in the log-likelihood. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
void |
setDebug(boolean debug)
Sets whether debugging output will be printed. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setRidge(double ridge)
Sets the ridge in the log-likelihood. |
java.lang.String |
toString()
Gets a string describing the classifier. |
| Methods inherited from class milk.classifiers.MIClassifier |
classifyExemplar, forName, makeCopies |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int m_ClassIndex
protected double[] m_Par
protected int m_NumClasses
protected int m_IdIndex
protected double m_Ridge
protected boolean m_Debug
protected int[] m_Classes
protected double[][][] m_Data
protected weka.core.Instances m_Attributes
protected double[] xMean
protected double[] xSD
| Constructor Detail |
public MILRARITH()
| Method Detail |
public java.util.Enumeration listOptions()
listOptions in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-D
Turn on debugging output.
-P precision
Set the precision of stopping criteria in Newton method.
-R ridge
Set the ridge parameter for the log-likelihood.
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 void setDebug(boolean debug)
debug - true if debugging output should be printedpublic boolean getDebug()
public void setRidge(double ridge)
ridge - the ridgepublic double getRidge()
public void buildClassifier(Exemplars train)
throws java.lang.Exception
buildClassifier in class MIClassifiertrain - the training data to be used for generating the
boosted classifier.
java.lang.Exception - if the classifier could not be built successfully
public double[] distributionForExemplar(Exemplar exmp)
throws java.lang.Exception
distributionForExemplar in class MIClassifierexmp - the exemplar for which distribution is computed
java.lang.Exception - if the distribution can't be computed successfullypublic java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] argv)
argv - should contain the command line arguments to the
scheme (see Evaluation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||