Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::StatSpec Class Reference

The specification of a statistic to compute (as can be specified as a string in PTester). More...

#include <PTester.h>

Collaboration diagram for PLearn::StatSpec:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StatSpec ()
void init (const string &statname, PP< PLearner > learner)
string intStatName ()
string statName ()
 StatSpec ()
void init (const string &statname)
string statName ()

Public Attributes

string extstat
string intstat
 "external" stat, to be computed over splits

string setname
 "external" stat, to be computed over splits

int setnum
 "train" or "test1" or "test2" ...

string costname
 data set on which to compute stat: 0 :train, 1: test1, ...

int costindex
 the name of the cost we are interested in.

string intstatname
 "internal" stat to be computed over examples the given a train or test set of a split.


Private Member Functions

void parseStatname (const string &statname)
 will determine extstat, intstat, setnum and costname from statname

void parseStatname (const string &statname)
 will determine extstat, intstat, setnum and costname from statname


Detailed Description

The specification of a statistic to compute (as can be specified as a string in PTester).

Definition at line 165 of file PExperiment.cc.


Constructor & Destructor Documentation

PLearn::StatSpec::StatSpec  )  [inline]
 

Definition at line 175 of file PExperiment.cc.

References costindex, and setnum.

PLearn::StatSpec::StatSpec  )  [inline]
 

Definition at line 175 of file PTester.h.

References setnum.


Member Function Documentation

void PLearn::StatSpec::init const string statname  ) 
 

Definition at line 445 of file PTester.cc.

References parseStatname().

void PLearn::StatSpec::init const string statname,
PP< PLearner learner
 

Definition at line 197 of file PExperiment.cc.

References costindex, costname, parseStatname(), and setnum.

string PLearn::StatSpec::intStatName  )  [inline]
 

Definition at line 181 of file PExperiment.cc.

References costname, intstat, and setname.

Referenced by statName().

void PLearn::StatSpec::parseStatname const string statname  )  [private]
 

will determine extstat, intstat, setnum and costname from statname

void PLearn::StatSpec::parseStatname const string statname  )  [private]
 

will determine extstat, intstat, setnum and costname from statname

Definition at line 206 of file PExperiment.cc.

References costname, extstat, intstat, PLERROR, PLearn::removeallblanks(), setname, setnum, PLearn::split(), PLearn::split_on_first(), and PLearn::toint().

Referenced by init().

string PLearn::StatSpec::statName  )  [inline]
 

Definition at line 179 of file PTester.h.

References extstat, intstatname, and setname.

string PLearn::StatSpec::statName  )  [inline]
 

Definition at line 185 of file PExperiment.cc.

References extstat, and intStatName().


Member Data Documentation

int PLearn::StatSpec::costindex
 

the name of the cost we are interested in.

Definition at line 173 of file PExperiment.cc.

Referenced by init(), PLearn::PTester::perform(), and StatSpec().

string PLearn::StatSpec::costname
 

data set on which to compute stat: 0 :train, 1: test1, ...

Definition at line 172 of file PExperiment.cc.

Referenced by init(), intStatName(), and parseStatname().

string PLearn::StatSpec::extstat
 

Definition at line 167 of file PTester.h.

Referenced by parseStatname(), and statName().

string PLearn::StatSpec::intstat
 

"external" stat, to be computed over splits

Definition at line 169 of file PExperiment.cc.

Referenced by intStatName(), parseStatname(), and PLearn::PTester::perform().

string PLearn::StatSpec::intstatname
 

"internal" stat to be computed over examples the given a train or test set of a split.

Ex.: "E[costname]" This string will at some point be used to call the VecStatsCollector's getStat(...) method.

Definition at line 173 of file PTester.h.

Referenced by PLearn::SequentialValidation::run(), and statName().

string PLearn::StatSpec::setname
 

"external" stat, to be computed over splits

Definition at line 168 of file PTester.h.

Referenced by intStatName(), parseStatname(), and statName().

int PLearn::StatSpec::setnum
 

"train" or "test1" or "test2" ...

Definition at line 169 of file PTester.h.

Referenced by init(), parseStatname(), PLearn::PTester::perform(), PLearn::SequentialValidation::run(), and StatSpec().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:27:43 2004 for PLearn by doxygen 1.3.7