jBNC Toolbox

jbnc
Class Classifier

java.lang.Object
  extended byjbnc.Classifier
Direct Known Subclasses:
CrossVal

public class Classifier
extends java.lang.Object

Classifier tester.

 USAGE: Classifier {options}

 where:
  -a {algor_name} Algorithm choices: 'naive', 'TAN', 'FAN', 'STAN', 'STAND',
                  'SFAN', 'SFAND'.
  -c {class_name} Name of the class variable. The default value is 'class'.
  -d              Print debugging information.
  -f {file_stem}  Load test data in C4.5 format (.names + .test),
                  file_stem-?-?.names - file with specification of attributes,
                  file_stem-?-?.data  - file with train cases.
                  file_stem-?-?.test  - file with test cases.
 -n {file_name}  Save constructed classifier networks to
                 file_name-alg-qm-alpha.bif.
                 File is saved in BIF 0.15 format.
 -q {q_measure}  Select quality measure. This relevant for the inducers that
                 perform selection of network candidates, like FAN or STAN.
                 Different measure have drastically different computational
                 complexity.
                 Quality measure choices:
                  LC     - local criterion: log p(c_l|D) [local]
                  SB     - standard Bayesian measure with penalty for size
                           [global].
                  HGS    - Heckerman-Geiger-Chickering measure [global].
                  LOO    - leave-one-out cross validation [local].
                  CV10   - ten fold cross validation.[local].
                  CV1010 - ten fold cross validation averaged ten times
                           [local].
 -s              Number of smoothing priors to test. Has to be an integer
                 greater or equal zero.
 -t              Print execution time.

 EXAMPLE: Classifier -a TAN -tf monk1
 EXAMPLE: Classifier -dta FAN -q LOO -f monk1

Since:
June 1, 1999
Author:
Jarek Sacha

Field Summary
protected  java.lang.String algorithmName
           
protected  java.lang.String className
           
protected static java.lang.String classNameDefault
           
protected static java.lang.String databaseURL
           
protected  boolean debugMode
           
protected  java.lang.String fileNameStem
           
protected  java.lang.String measureName
           
protected  java.lang.String namesFileName
           
protected  int nbAlphas
           
protected  java.lang.String netFileName
           
protected  java.lang.String tableName
           
protected  java.lang.String testFileName
           
protected  java.lang.String trainFileName
           
protected static java.lang.String usageMsg
           
protected  boolean useTimer
           
 
Constructor Summary
Classifier()
           
 
Method Summary
protected  DatasetInt loadDataset(java.lang.String namesFile, java.lang.String dataFile)
          Wrapper for loading a dataset in C4.5 format.
static void main(java.lang.String[] args)
          Main function.
protected  boolean processCommandLine(java.lang.String[] argv)
          Process command line arguments.
protected  void run()
          Create and test a classifier.
protected  void run(java.lang.String[] argv)
           
protected static void setUsageMsg(java.lang.String toolName)
          Print usage message for the command line interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classNameDefault

protected static final java.lang.String classNameDefault
See Also:
Constant Field Values

databaseURL

protected static final java.lang.String databaseURL
See Also:
Constant Field Values

usageMsg

protected static java.lang.String usageMsg

useTimer

protected boolean useTimer

debugMode

protected boolean debugMode

algorithmName

protected java.lang.String algorithmName

measureName

protected java.lang.String measureName

fileNameStem

protected java.lang.String fileNameStem

trainFileName

protected java.lang.String trainFileName

testFileName

protected java.lang.String testFileName

namesFileName

protected java.lang.String namesFileName

netFileName

protected java.lang.String netFileName

className

protected java.lang.String className

nbAlphas

protected int nbAlphas

tableName

protected java.lang.String tableName
Constructor Detail

Classifier

public Classifier()
Method Detail

main

public static void main(java.lang.String[] args)
Main function.

Parameters:
args - Description of Parameter

setUsageMsg

protected static void setUsageMsg(java.lang.String toolName)
Print usage message for the command line interface.

Parameters:
toolName - how to call the command line tool.

run

protected void run()
Create and test a classifier.


loadDataset

protected DatasetInt loadDataset(java.lang.String namesFile,
                                 java.lang.String dataFile)
                          throws java.lang.Exception
Wrapper for loading a dataset in C4.5 format.

Parameters:
namesFile - Description of Parameter
dataFile - Description of Parameter
Returns:
Description of the Returned Value
Throws:
java.lang.Exception - Description of Exception

processCommandLine

protected boolean processCommandLine(java.lang.String[] argv)
Process command line arguments.

Parameters:
argv - Description of Parameter
Returns:
'false' when command line is invalid.

run

protected void run(java.lang.String[] argv)

SourceForge.net Logo