public class VotedPerceptron extends AbstractClassifier implements OptionHandler, TechnicalInformationHandler
 @inproceedings{Freund1998,
    address = {New York, NY},
    author = {Y. Freund and R. E. Schapire},
    booktitle = {11th Annual Conference on Computational Learning Theory},
    pages = {209-217},
    publisher = {ACM Press},
    title = {Large margin classification using the perceptron algorithm},
    year = {1998}
 }
 
 
 
 
 Valid options are: 
 
 -I <int> The number of iterations to be performed. (default 1)
-E <double> The exponent for the polynomial kernel. (default 1)
-S <int> The seed for the random number generation. (default 1)
-M <int> The maximum number of alterations allowed. (default 10000)
BATCH_SIZE_DEFAULT, NUM_DECIMAL_PLACES_DEFAULT| Constructor and Description | 
|---|
| VotedPerceptron() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | buildClassifier(Instances insts)Builds the ensemble of perceptrons. | 
| double[] | distributionForInstance(Instance inst)Outputs the distribution for the given output. | 
| java.lang.String | exponentTipText()Returns the tip text for this property | 
| Capabilities | getCapabilities()Returns default capabilities of the classifier. | 
| double | getExponent()Get the value of exponent. | 
| int | getMaxK()Get the value of maxK. | 
| int | getNumIterations()Get the value of NumIterations. | 
| java.lang.String[] | getOptions()Gets the current settings of the classifier. | 
| java.lang.String | getRevision()Returns the revision string. | 
| int | getSeed()Get the value of Seed. | 
| TechnicalInformation | getTechnicalInformation()Returns an instance of a TechnicalInformation object, containing 
 detailed information about the technical background of this class,
 e.g., paper reference or book this class is based on. | 
| java.lang.String | globalInfo()Returns a string describing this classifier | 
| java.util.Enumeration<Option> | listOptions()Returns an enumeration describing the available options. | 
| static void | main(java.lang.String[] argv)Main method. | 
| java.lang.String | maxKTipText()Returns the tip text for this property | 
| java.lang.String | numIterationsTipText()Returns the tip text for this property | 
| java.lang.String | seedTipText()Returns the tip text for this property | 
| void | setExponent(double v)Set the value of exponent. | 
| void | setMaxK(int v)Set the value of maxK. | 
| void | setNumIterations(int v)Set the value of NumIterations. | 
| void | setOptions(java.lang.String[] options)Parses a given list of options. | 
| void | setSeed(int v)Set the value of Seed. | 
| java.lang.String | toString()Returns textual description of classifier. | 
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlacesequals, getClass, hashCode, notify, notifyAll, wait, wait, waitmakeCopypublic java.lang.String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class AbstractClassifierpublic void setOptions(java.lang.String[] options)
                throws java.lang.Exception
-I <int> The number of iterations to be performed. (default 1)
-E <double> The exponent for the polynomial kernel. (default 1)
-S <int> The seed for the random number generation. (default 1)
-M <int> The maximum number of alterations allowed. (default 10000)
setOptions in interface OptionHandlersetOptions in class AbstractClassifieroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class AbstractClassifierpublic Capabilities getCapabilities()
getCapabilities in interface ClassifiergetCapabilities in interface CapabilitiesHandlergetCapabilities in class AbstractClassifierCapabilitiespublic void buildClassifier(Instances insts) throws java.lang.Exception
buildClassifier in interface Classifierinsts - the data to train the classifier withjava.lang.Exception - if something goes wrong during buildingpublic double[] distributionForInstance(Instance inst) throws java.lang.Exception
distributionForInstance in interface ClassifierdistributionForInstance in class AbstractClassifierinst - the instance for which distribution is to be computedjava.lang.Exception - if something goes wrongpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String maxKTipText()
public int getMaxK()
public void setMaxK(int v)
v - Value to assign to maxK.public java.lang.String numIterationsTipText()
public int getNumIterations()
public void setNumIterations(int v)
v - Value to assign to NumIterations.public java.lang.String exponentTipText()
public double getExponent()
public void setExponent(double v)
v - Value to assign to exponent.public java.lang.String seedTipText()
public int getSeed()
public void setSeed(int v)
v - Value to assign to Seed.public java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class AbstractClassifierpublic static void main(java.lang.String[] argv)
argv - the commandline options