Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
drwnCrossValidator Class Reference

Utility class for cross-validating classifier meta-parameters by brute-force testing of all combinations of some given settings. More...

Inheritance diagram for drwnCrossValidator:
drwnWriteable drwnTypeable

Public Member Functions

const char * type () const
 returns object type as a string (e.g., Foo::type() { return "Foo"; })
 
bool save (drwnXMLNode &xml) const
 write object to XML node (see also write)
 
bool load (drwnXMLNode &xml)
 read object from XML node (see also read)
 
unsigned trials () const
 number of trials that will be run
 
void clear ()
 clear all settings
 
void clear (const char *property)
 clear settings for a particular property
 
void add (const char *property, const char *value)
 add a single parameter setting
 
void addLinear (const char *property, double startValue, double endValue, int numSteps=10)
 add linear parameter range
 
void addLogarithmic (const char *property, double startValue, double endValue, int numSteps=10)
 add logarithmic parameter range
 
double crossValidate (drwnClassifier *&classifier, const drwnClassifierDataset &trainSet, const drwnClassifierDataset &testSet) const
 run the cross-validation
 
- Public Member Functions inherited from drwnWriteable
bool write (const char *filename) const
 write object to file (calls save)
 
bool read (const char *filename)
 read object from file (calls load)
 
void dump () const
 print object's current state to standard output (for debugging)
 

Protected Member Functions

virtual double score (drwnClassifier const *classifier, const drwnClassifierDataset &testSet) const
 evaluation function (can be overridden in derived classes)
 

Protected Attributes

map< string, list< string > > _settings
 

Detailed Description

Utility class for cross-validating classifier meta-parameters by brute-force testing of all combinations of some given settings.


The documentation for this class was generated from the following files: