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

PLearn::HTryCombinations Class Reference

#include <HyperOptimizer.h>

Inheritance diagram for PLearn::HTryCombinations:

Inheritance graph
[legend]
Collaboration diagram for PLearn::HTryCombinations:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HTryCombinations ()
virtual void optimize (PP< Learner > learner, const VMat &dataset, const HAliases &aliases)
 Optimize the learner with respect to the given hyperparameters and dataset.

 PLEARN_DECLARE_OBJECT (HTryCombinations)
virtual void build ()
 Should call simply inherited::build(), then this class's build_().

void _build ()

Static Public Member Functions

void declareOptions (OptionList &ol)
 redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)


Protected Member Functions

real recursive_optimize (PP< Learner > learner, const VMat &dataset, const Array< string > &aliases, int i)

Protected Attributes

Array< Array< string > > values
Array< stringparams

Private Types

typedef HyperOptimizer inherited

Member Typedef Documentation

typedef HyperOptimizer PLearn::HTryCombinations::inherited [private]
 

Reimplemented from PLearn::HyperOptimizer.

Definition at line 164 of file HyperOptimizer.h.


Constructor & Destructor Documentation

PLearn::HTryCombinations::HTryCombinations  )  [inline]
 

Definition at line 166 of file HyperOptimizer.h.


Member Function Documentation

void PLearn::HTryCombinations::_build  ) 
 

Definition at line 182 of file HyperOptimizer.cc.

References params, PLERROR, PLearn::TVec< string >::size(), PLearn::TVec< Array< string > >::size(), and values.

Referenced by build().

void PLearn::HTryCombinations::build  )  [virtual]
 

Should call simply inherited::build(), then this class's build_().

This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.

Reimplemented from PLearn::Object.

Definition at line 175 of file HyperOptimizer.cc.

References _build().

void PLearn::HTryCombinations::declareOptions OptionList ol  )  [static]
 

redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)

ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); }

Reimplemented from PLearn::HyperOptimizer.

Definition at line 139 of file HyperOptimizer.cc.

References PLearn::declareOption(), and PLearn::OptionList.

void PLearn::HTryCombinations::optimize PP< Learner learner,
const VMat dataset,
const HAliases aliases
[virtual]
 

Optimize the learner with respect to the given hyperparameters and dataset.

Implements PLearn::HyperOptimizer.

Definition at line 149 of file HyperOptimizer.cc.

References PLearn::HAliases, params, recursive_optimize(), and PLearn::TVec< string >::size().

PLearn::HTryCombinations::PLEARN_DECLARE_OBJECT HTryCombinations   ) 
 

real PLearn::HTryCombinations::recursive_optimize PP< Learner learner,
const VMat dataset,
const Array< string > &  aliases,
int  i
[protected]
 

Definition at line 158 of file HyperOptimizer.cc.

References PLearn::argmin(), k, params, recursive_optimize(), PLearn::TVec< string >::size(), PLearn::TVec< Array< string > >::size(), values, and PLearn::Vec.

Referenced by optimize(), and recursive_optimize().


Member Data Documentation

Array<string> PLearn::HTryCombinations::params [protected]
 

Definition at line 181 of file HyperOptimizer.h.

Referenced by _build(), optimize(), and recursive_optimize().

Array<Array<string> > PLearn::HTryCombinations::values [protected]
 

Definition at line 180 of file HyperOptimizer.h.

Referenced by _build(), and recursive_optimize().


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