weka.classifiers.misc
Class CHIRP

java.lang.Object
  extended by RandomizableClassifier
      extended by weka.classifiers.misc.CHIRP

public class CHIRP
extends RandomizableClassifier

CHIRP classifies with a set cover on iterated random projections. For more information, see: CHIRP: A New Classifier Based on Composite Hypercubes on Iterated Random Projections. Proceedings of the ACM KDD 2011.

BibTeX:

 @inproceedings{Wilkinson:2011:CNC:2020408.2020418,
 author = {Wilkinson, Leland and Anand, Anushka and Tuan, Dang Nhon},
 title = {CHIRP: a new classifier based on composite hypercubes on iterated random projections},
 booktitle = {Proceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining},
 series = {KDD '11},
 year = {2011},
 isbn = {978-1-4503-0813-7},
 location = {San Diego, California, USA},
 pages = {6--14},
 numpages = {9},
 url = {http://doi.acm.org/10.1145/2020408.2020418},
 doi = {http://doi.acm.org/10.1145/2020408.2020418},
 acmid = {2020418},
 publisher = {ACM},
 address = {New York, NY, USA},
 keywords = {random projections, supervised classification},
 }
 

Valid options are:

 -V 
  Specifies number of voters.
 -S 
  Specifies random seed.
 -D
  If set, classifier is run in debug mode and
  may output additional info to the console

Version:
$Revision: 1.0 $
Author:
Leland Wilkinson, Anushka Anand, Tuan Dang

Constructor Summary
CHIRP()
           
 
Method Summary
 void buildClassifier(Instances trainData)
           
 double classifyInstance(Instance instance)
           
 java.lang.String debugTipText()
          Returns the tip text for this property
 Capabilities getCapabilities()
           
 boolean getDebug()
          Get whether debugging is turned on.
 int getNumVoters()
          Gets numVoters.
 java.lang.String[] getOptions()
          Gets the current settings of the Classifier.
 java.lang.String getRevision()
          Returns the revision string.
 TechnicalInformation getTechnicalInformation()
          Return the technical information.
 java.lang.String globalInfo()
           
 java.util.Enumeration listOptions()
           
static void main(java.lang.String[] argv)
          Executes the classifier from command line.
 java.lang.String numVotersTipText()
          Returns the tip text for this property
 void setDebug(boolean debug)
          Set debugging mode.
 void setNumVoters(int n)
          Sets numVoters.
 void setOptions(java.lang.String[] options)
           
 java.lang.String toString()
          Output a representation of this classifier
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CHIRP

public CHIRP()
Method Detail

globalInfo

public java.lang.String globalInfo()

listOptions

public java.util.Enumeration listOptions()

getCapabilities

public Capabilities getCapabilities()
Returns:
the capabilities of this classifier

setOptions

public void setOptions(java.lang.String[] options)
                throws java.lang.Exception
Throws:
java.lang.Exception

setDebug

public void setDebug(boolean debug)
Set debugging mode.

Parameters:
debug - true if debug output should be printed

getDebug

public boolean getDebug()
Get whether debugging is turned on.

Returns:
true if debugging output is on

debugTipText

public java.lang.String debugTipText()
Returns the tip text for this property

Returns:
tip text for this property suitable for displaying in the explorer/experimenter gui

getOptions

public java.lang.String[] getOptions()
Gets the current settings of the Classifier.

Returns:
an array of strings suitable for passing to setOptions

numVotersTipText

public java.lang.String numVotersTipText()
Returns the tip text for this property

Returns:
tip text for this property suitable for displaying in the explorer/experimenter gui

getNumVoters

public int getNumVoters()
Gets numVoters.

Returns:
numVoters

setNumVoters

public void setNumVoters(int n)
                  throws java.lang.Exception
Sets numVoters.

Parameters:
n - the new value for numVoters
Throws:
java.lang.Exception - if parameter illegal

buildClassifier

public void buildClassifier(Instances trainData)
                     throws java.lang.Exception
Throws:
java.lang.Exception

classifyInstance

public double classifyInstance(Instance instance)
                        throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Output a representation of this classifier

Returns:
a string representation of the classifier

getTechnicalInformation

public TechnicalInformation getTechnicalInformation()
Return the technical information. TODO: Cite Technical report when published

Returns:
the technical information about this class

getRevision

public java.lang.String getRevision()
Returns the revision string.

Returns:
the revision

main

public static void main(java.lang.String[] argv)
Executes the classifier from command line.

Parameters:
argv - should contain the following arguments: -t training file [-T test file] [-c class index]