|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--milk.classifiers.MIClassifier
|
+--milk.classifiers.MIRBFNetwork
Multi-instance RBF network. Uses k-means with distributions fit in post-processing step plus MILR at the second level.
| Field Summary | |
protected weka.filters.unsupervised.attribute.ClusterMembership |
m_clm
The RBF filter |
protected MIClassifier |
m_logistic
The logistic regression model |
protected int |
m_num_clusters
The number of clusters to use |
protected double |
m_ridge
The ridge regression coefficient for logistic regression |
| Constructor Summary | |
MIRBFNetwork()
|
|
| Method Summary | |
void |
buildClassifier(Exemplars train)
Builds the classifier. |
double[] |
distributionForExemplar(Exemplar exmp)
Computes the distribution for a given exemplar |
int |
getNumClusters()
Get the Num_clusters value. |
java.lang.String[] |
getOptions()
Gets the current settings of the classifier. |
double |
getRidge()
Get the Ridge value. |
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 |
setNumClusters(int newNum_clusters)
Set the Num_clusters value. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setRidge(double newRidge)
Set the Ridge value. |
java.lang.String |
toString()
Gets a string describing the classifier. |
Exemplar |
transform(Exemplar test)
|
Exemplars |
transform(Exemplars ex)
|
| 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 MIClassifier m_logistic
protected weka.filters.unsupervised.attribute.ClusterMembership m_clm
protected int m_num_clusters
protected double m_ridge
| Constructor Detail |
public MIRBFNetwork()
| Method Detail |
public int getNumClusters()
public void setNumClusters(int newNum_clusters)
newNum_clusters - The new Num_clusters value.public double getRidge()
public void setRidge(double newRidge)
newRidge - The new Ridge value.public java.util.Enumeration listOptions()
listOptions in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-N number
The number of clusters to use.
-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.OptionHandler
public Exemplars transform(Exemplars ex)
throws java.lang.Exception
java.lang.Exception
public Exemplar transform(Exemplar test)
throws java.lang.Exception
java.lang.Exception
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 | |||||||||