iRoCS Toolbox
1.1.0
|
The SVMApplication class specifies a complete command line application. More...
#include <SVMApplication.hh>
Public Types | |
typedef LOAD_SAVE_POLICY::STDATA | STDATA |
Public Member Functions | |
SVMApplication () | |
virtual | ~SVMApplication () |
virtual void | checkWrongParameters (StDataCmdLine &cmdline) |
check for wrong ( = unused) parameters in cmdline More... | |
virtual int | doClassification (StDataCmdLine &cmdline, std::ostream &os=std::cout) |
do Classification with given command line parameters More... | |
virtual int | doCrossValidation (StDataCmdLine &cmdline, std::ostream &os=std::cout) |
do cross validation with given command line parameters More... | |
virtual int | doGridSearch (StDataCmdLine &cmdline, std::ostream &os=std::cout) |
do cross validation with given command line parameters More... | |
virtual int | doTraining (StDataCmdLine &cmdline, std::ostream &os=std::cout) |
do Training with given command line parameters More... | |
virtual int | main (int argc, const char **argv, std::ostream &os=std::cout) |
main function for an SVM-Application. More... | |
virtual int | main (StDataCmdLine &cmdLine, std::ostream &os=std::cout) |
main function for an SVM-Application, after cmdline has been parsed. More... | |
virtual const std::string & | programName () const |
return the name of the shell program. More... | |
void | setPrettyPrintColumn (int column) |
virtual void | setProgramName (const std::string &name) |
Overwrite program name that was extracted from argv[0]. More... | |
The SVMApplication class specifies a complete command line application.
see svmtl.cc for an example how to use it
FV | feature vector class |
ALGORITHMS | lists of multi-class, two-class, one-class algorithms an kernel functions |
LOAD_SAVE_POLICY | policy for loading and saving of data |
Definition at line 108 of file SVMApplication.hh.
typedef LOAD_SAVE_POLICY::STDATA svt::SVMApplication< FV, ALGORITHMS, LOAD_SAVE_POLICY >::STDATA |
Definition at line 111 of file SVMApplication.hh.
|
inline |
Definition at line 113 of file SVMApplication.hh.
|
inlinevirtual |
Definition at line 118 of file SVMApplication.hh.
|
virtual |
main function for an SVM-Application.
Call this if you don't want to go into details
argc | number of command line arguments |
argv | array of c-style strings containing command line arguments |
os | output stream for help text, progress messages, etc |
Referenced by svt::SVMApplication< FV, ALGORITHMS, LOAD_SAVE_POLICY >::~SVMApplication().
|
virtual |
main function for an SVM-Application, after cmdline has been parsed.
Use this, if you want to add your own modes, e.g. "svmtl hurz ...".
cmdline | parsed command line arguments |
os | output stream for help text, progress messages, etc |
|
inlinevirtual |
return the name of the shell program.
This is the string from argv[0] by default, but could be replaced with setProgramName()
Definition at line 164 of file SVMApplication.hh.
|
inlinevirtual |
Overwrite program name that was extracted from argv[0].
The programName() ist used from the several writeHelp() methods
name | program name |
Definition at line 177 of file SVMApplication.hh.
|
virtual |
check for wrong ( = unused) parameters in cmdline
cmdline | command line parameters |
svt::CmdLineError |
Referenced by svt::SVMApplication< FV, ALGORITHMS, LOAD_SAVE_POLICY >::setProgramName().
|
virtual |
do Training with given command line parameters
cmdline | command line parameters |
Referenced by svt::SVMApplication< FV, ALGORITHMS, LOAD_SAVE_POLICY >::setProgramName().
|
virtual |
do Classification with given command line parameters
cmdline | command line parameters |
Referenced by svt::SVMApplication< FV, ALGORITHMS, LOAD_SAVE_POLICY >::setProgramName().
|
virtual |
do cross validation with given command line parameters
cmdline | command line parameters |
Referenced by svt::SVMApplication< FV, ALGORITHMS, LOAD_SAVE_POLICY >::setProgramName().
|
virtual |
do cross validation with given command line parameters
cmdline | command line parameters |
Referenced by svt::SVMApplication< FV, ALGORITHMS, LOAD_SAVE_POLICY >::setProgramName().
|
inline |
Definition at line 264 of file SVMApplication.hh.