|
OPTK
0.1.2
Toolkit for global optimisation algorithms
|
#include <gp.hpp>
Public Member Functions | |
| void | update_search_space (sspace::sspace_t *space) override |
| inst::set | generate_parameters (int param_id) override |
| void | receive_trial_results (int param_id, inst::set params, double value) override |
Public Member Functions inherited from optk::optimiser | |
| optimiser (std::string name) | |
| ~optimiser () | |
| virtual void | clear () |
| std::string | get_name () |
| void | accept (optimisers *o) |
Private Attributes | |
| uint | n_iters |
| sspace::sspace_t * | m_space |
Additional Inherited Members | |
Protected Member Functions inherited from optk::optimiser | |
| void | add_to_trials (int param_id, inst::node *n) |
Protected Attributes inherited from optk::optimiser | |
| std::unordered_map< int, inst::set > | trials |
gp_opt is a generic Gaussian process-based optimiser which is only implemented to provide a baseline against other methods.
|
overridevirtual |
This is the method invoked to generate the next trial's parameters for the benchmark or program being optimised.
| param_id | An identifier for this parameter trial; this may or may not be used by the optimistaion algorithm. |
Reimplemented from optk::optimiser.
|
overridevirtual |
Allows the benchmark or program being optimised to communicate back the value of the cost function for a parameter set.
| param_id | This parameter id is used to identify the parameters used to generate the result. |
| parameters | For increased flexibility, the actual parameters used to generate the result are also copied back. |
| value | The actual value of the objective function. |
Reimplemented from optk::optimiser.
|
overridevirtual |
The GP optimiser is only compatible with continuous valued inputs (for the moment); conceretely an error will be raised if the input is not pt::uniform, pt::loguniform, pt::normal, pt::lognormal. Currently all parameter types are treated as pt::uniform, although in the future information about parameters' distributions may be taken into account.
| space | The new search space. |
Reimplemented from optk::optimiser.
|
private |
A copy of the problem search space
|
private |
Counts the number of iterations performed
1.8.13