public class MultiClassClassifierUpdateable extends MultiClassClassifier implements OptionHandler, UpdateableClassifier
-M <num> Sets the method to use. Valid values are 0 (1-against-all), 1 (random codes), 2 (exhaustive code), and 3 (1-against-1). (default 0)
-R <num> Sets the multiplier when using random codes. (default 2.0)
-P Use pairwise coupling (only has an effect for 1-against1)
-S <num> Random number seed. (default 1)
-D If set, classifier is run in debug mode and may output additional info to the console
-W Full name of base classifier. (default: weka.classifiers.functions.Logistic)
Options specific to classifier weka.classifiers.functions.Logistic:
-D Turn on debugging output.
-R <ridge> Set the ridge in the log-likelihood.
-M <number> Set the maximum number of iterations (default -1, until convergence).
METHOD_1_AGAINST_1, METHOD_1_AGAINST_ALL, METHOD_ERROR_EXHAUSTIVE, METHOD_ERROR_RANDOM, TAGS_METHOD| Constructor and Description |
|---|
MultiClassClassifierUpdateable() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildClassifier(Instances insts)
Builds the classifiers.
|
double[] |
distributionForInstance(Instance inst)
Returns the distribution for an instance.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo() |
static void |
main(String[] argv)
Main method for testing this class.
|
void |
updateClassifier(Instance instance)
Updates the classifier with the given instance.
|
getCapabilities, getMethod, getOptions, getRandomWidthFactor, getUsePairwiseCoupling, individualPredictions, listOptions, methodTipText, pairwiseCoupling, randomWidthFactorTipText, setMethod, setOptions, setRandomWidthFactor, setUsePairwiseCoupling, toString, usePairwiseCouplingTipTextgetSeed, seedTipText, setSeedclassifierTipText, getClassifier, setClassifierclassifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, runClassifier, setDebugequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOptions, listOptions, setOptionspublic String globalInfo()
globalInfo in class MultiClassClassifierpublic void buildClassifier(Instances insts) throws Exception
MultiClassClassifierbuildClassifier in interface ClassifierbuildClassifier in class MultiClassClassifierinsts - the training data.Exception - if a classifier can't be builtpublic void updateClassifier(Instance instance) throws Exception
updateClassifier in interface UpdateableClassifierinstance - the new training instance to include in the modelException - if the instance could not be incorporated in
the model.public double[] distributionForInstance(Instance inst) throws Exception
distributionForInstance in interface ClassifierdistributionForInstance in class MultiClassClassifierinst - the instance to get the distribution forException - if the distribution can't be computed successfullypublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class MultiClassClassifierpublic static void main(String[] argv)
argv - the optionsCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.