PLearn 0.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Private Types | Private Member Functions
PLearn::OptionsOracle Class Reference

#include <OptionsOracle.h>

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

List of all members.

Public Member Functions

 OptionsOracle ()
virtual TVec< string > getOptionNames () const =0
 SUBCLASS WRITING: returns the set of names of options this generator generates.
virtual TVec< string > generateNextTrial (const TVec< string > &older_trial, real obtained_objective)=0
virtual void forget ()=0
 SUBCLASS WRITING: Should reset the generator's internal state (as having no info about previous trials).
TVec< string > generateFirstTrial ()
virtual void build ()
 Post-constructor.
virtual void makeDeepCopyFromShallowCopy (CopiesMap &copies)
 Transforms a shallow copy into a deep copy.
virtual OptionsOracledeepCopy (CopiesMap &copies) const

Static Public Member Functions

static string _classname_ ()
 Declares name and deepCopy methods.
static OptionList_getOptionList_ ()
static RemoteMethodMap_getRemoteMethodMap_ ()
static bool _isa_ (const Object *o)
static void _static_initialize_ ()
static const PPathdeclaringFile ()

Static Public Attributes

static StaticInitializer _static_initializer_

Static Protected Member Functions

static void declareOptions (OptionList &ol)
 Declares this class' options.

Private Types

typedef Object inherited

Private Member Functions

void build_ ()
 This does the actual building.

Detailed Description

Definition at line 53 of file OptionsOracle.h.


Member Typedef Documentation


Constructor & Destructor Documentation

PLearn::OptionsOracle::OptionsOracle ( )

Definition at line 48 of file OptionsOracle.cc.

{}

Member Function Documentation

string PLearn::OptionsOracle::_classname_ ( ) [static]

Declares name and deepCopy methods.

Reimplemented from PLearn::Object.

Reimplemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.

Definition at line 58 of file OptionsOracle.cc.

OptionList & PLearn::OptionsOracle::_getOptionList_ ( ) [static]
RemoteMethodMap & PLearn::OptionsOracle::_getRemoteMethodMap_ ( ) [static]
bool PLearn::OptionsOracle::_isa_ ( const Object o) [static]
StaticInitializer OptionsOracle::_static_initializer_ & PLearn::OptionsOracle::_static_initialize_ ( ) [static]
void PLearn::OptionsOracle::build ( ) [virtual]

Post-constructor.

The normal implementation 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.

Reimplemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.

Definition at line 69 of file OptionsOracle.cc.

Referenced by PLearn::StepwiseSelectionOracle::build(), PLearn::OptimizeOptionOracle::build(), PLearn::ExplicitListOracle::build(), PLearn::EarlyStoppingOracle::build(), and PLearn::CartesianProductOracle::build().

Here is the caller graph for this function:

void PLearn::OptionsOracle::build_ ( ) [private]

This does the actual building.

Reimplemented from PLearn::Object.

Reimplemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.

Definition at line 65 of file OptionsOracle.cc.

{}
void PLearn::OptionsOracle::declareOptions ( OptionList ol) [static, protected]
static const PPath& PLearn::OptionsOracle::declaringFile ( ) [inline, static]
OptionsOracle * PLearn::OptionsOracle::deepCopy ( CopiesMap copies) const [virtual]
virtual void PLearn::OptionsOracle::forget ( ) [pure virtual]

SUBCLASS WRITING: Should reset the generator's internal state (as having no info about previous trials).

Implemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.

TVec<string> PLearn::OptionsOracle::generateFirstTrial ( ) [inline]

Definition at line 114 of file OptionsOracle.h.

    {
        forget();
        return generateNextTrial(TVec<string>(), FLT_MAX);
    }
virtual TVec<string> PLearn::OptionsOracle::generateNextTrial ( const TVec< string > &  older_trial,
real  obtained_objective 
) [pure virtual]

SUBCLASS WRITING: This notifies the oracle, of the result obtained for a previous trial it suggested. The oracle is expected to return the next suggestion, or an empty vector if stopping conditions were met, or it run out of suggestions. An empty vector may be passed for older_trial if there is no result to report.

Implemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.

virtual TVec<string> PLearn::OptionsOracle::getOptionNames ( ) const [pure virtual]

SUBCLASS WRITING: returns the set of names of options this generator generates.

Implemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.

void PLearn::OptionsOracle::makeDeepCopyFromShallowCopy ( CopiesMap copies) [virtual]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines