public class MILR extends Classifier implements OptionHandler, MultiInstanceCapabilitiesHandler
-D Turn on debugging output.
-R <ridge> Set the ridge in the log-likelihood.
-A [0|1|2] Defines the type of algorithm: 0. standard MI assumption 1. collective MI assumption, arithmetic mean for posteriors 2. collective MI assumption, geometric mean for posteriors
| Modifier and Type | Field and Description |
|---|---|
static int |
ALGORITHMTYPE_ARITHMETIC
collective MI assumption, arithmetic mean for posteriors
|
static int |
ALGORITHMTYPE_DEFAULT
standard MI assumption
|
static int |
ALGORITHMTYPE_GEOMETRIC
collective MI assumption, geometric mean for posteriors
|
static Tag[] |
TAGS_ALGORITHMTYPE
the types of algorithms
|
| Constructor and Description |
|---|
MILR() |
| Modifier and Type | Method and Description |
|---|---|
String |
algorithmTypeTipText()
Returns the tip text for this property
|
void |
buildClassifier(Instances train)
Builds the classifier
|
double[] |
distributionForInstance(Instance exmp)
Computes the distribution for a given exemplar
|
SelectedTag |
getAlgorithmType()
Gets the type of algorithm.
|
Capabilities |
getCapabilities()
Returns default capabilities of the classifier.
|
Capabilities |
getMultiInstanceCapabilities()
Returns the capabilities of this multi-instance classifier for the
relational data.
|
String[] |
getOptions()
Gets the current settings of the classifier.
|
String |
getRevision()
Returns the revision string.
|
double |
getRidge()
Gets the ridge in the log-likelihood.
|
String |
globalInfo()
Returns the tip text for this property
|
Enumeration |
listOptions()
Returns an enumeration describing the available options
|
static void |
main(String[] argv)
Main method for testing this class.
|
String |
ridgeTipText()
Returns the tip text for this property
|
void |
setAlgorithmType(SelectedTag newType)
Sets the algorithm type.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setRidge(double ridge)
Sets the ridge in the log-likelihood.
|
String |
toString()
Gets a string describing the classifier.
|
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebugpublic static final int ALGORITHMTYPE_DEFAULT
public static final int ALGORITHMTYPE_ARITHMETIC
public static final int ALGORITHMTYPE_GEOMETRIC
public static final Tag[] TAGS_ALGORITHMTYPE
public String globalInfo()
public Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class Classifierpublic void setOptions(String[] options) throws Exception
setOptions in interface OptionHandlersetOptions in class Classifieroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Classifierpublic String ridgeTipText()
public void setRidge(double ridge)
ridge - the ridgepublic double getRidge()
public String algorithmTypeTipText()
public SelectedTag getAlgorithmType()
public void setAlgorithmType(SelectedTag newType)
newType - the new algorithm typepublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ClassifierCapabilitiespublic Capabilities getMultiInstanceCapabilities()
getMultiInstanceCapabilities in interface MultiInstanceCapabilitiesHandlerCapabilitiespublic void buildClassifier(Instances train) throws Exception
buildClassifier in class Classifiertrain - the training data to be used for generating the
boosted classifier.Exception - if the classifier could not be built successfullypublic double[] distributionForInstance(Instance exmp) throws Exception
distributionForInstance in class Classifierexmp - the exemplar for which distribution is computedException - if the distribution can't be computed successfullypublic String toString()
public String getRevision()
getRevision in interface RevisionHandlergetRevision in class Classifierpublic static void main(String[] argv)
argv - should contain the command line arguments to the
scheme (see Evaluation)Copyright © 2021 University of Waikato, Hamilton, NZ. All rights reserved.