PLearn 0.1
|
#include <OptionsOracle.h>
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 OptionsOracle * | deepCopy (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 PPath & | declaringFile () |
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. |
Definition at line 53 of file OptionsOracle.h.
typedef Object PLearn::OptionsOracle::inherited [private] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.
Definition at line 55 of file OptionsOracle.h.
PLearn::OptionsOracle::OptionsOracle | ( | ) |
Definition at line 48 of file OptionsOracle.cc.
{}
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] |
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.
RemoteMethodMap & PLearn::OptionsOracle::_getRemoteMethodMap_ | ( | ) | [static] |
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.
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.
StaticInitializer OptionsOracle::_static_initializer_ & PLearn::OptionsOracle::_static_initialize_ | ( | ) | [static] |
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.
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().
{ inherited::build(); build_(); }
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] |
Declares this class' options.
Reimplemented from PLearn::Object.
Reimplemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.
Definition at line 60 of file OptionsOracle.cc.
Referenced by PLearn::StepwiseSelectionOracle::declareOptions(), PLearn::OptimizeOptionOracle::declareOptions(), PLearn::ExplicitListOracle::declareOptions(), PLearn::EarlyStoppingOracle::declareOptions(), and PLearn::CartesianProductOracle::declareOptions().
{ inherited::declareOptions(ol); }
static const PPath& PLearn::OptionsOracle::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Object.
Reimplemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.
Definition at line 127 of file OptionsOracle.h.
OptionsOracle * PLearn::OptionsOracle::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
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.
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] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Object.
Reimplemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.
Definition at line 76 of file OptionsOracle.cc.
Referenced by PLearn::StepwiseSelectionOracle::makeDeepCopyFromShallowCopy(), PLearn::OptimizeOptionOracle::makeDeepCopyFromShallowCopy(), PLearn::ExplicitListOracle::makeDeepCopyFromShallowCopy(), PLearn::EarlyStoppingOracle::makeDeepCopyFromShallowCopy(), and PLearn::CartesianProductOracle::makeDeepCopyFromShallowCopy().
{ inherited::makeDeepCopyFromShallowCopy(copies); }
Reimplemented from PLearn::Object.
Reimplemented in PLearn::CartesianProductOracle, PLearn::EarlyStoppingOracle, PLearn::ExplicitListOracle, PLearn::OptimizeOptionOracle, and PLearn::StepwiseSelectionOracle.
Definition at line 127 of file OptionsOracle.h.