◆ gridsearch()
| gridsearch::gridsearch |
( |
| ) |
|
The constructor; simply calls the constructor specified for the optimiser class which this class inherits.
◆ ~gridsearch()
| gridsearch::~gridsearch |
( |
| ) |
|
The destructor; used to recursively free elements stored on the heap.
◆ clear()
| void gridsearch::clear |
( |
| ) |
|
|
overridevirtual |
The overidden clear function for resetting the benchmark.
Reimplemented from optk::optimiser.
◆ convert_synthetic_ss()
Converts the search space for synthetic benchmarks (defined as uniformly distributed variables) into sspace::quniform parameters.
- Parameters
-
| ss | The original search space. |
| q | The quantisation for uniform parameters. |
- Returns
- A search space made up of quniform parameters.
◆ generate_parameters()
| inst::set gridsearch::generate_parameters |
( |
int |
param_id | ) |
|
|
overridevirtual |
Returns the next unique parameter configuration.
- Parameters
-
| param_id | The identifier which will be matched with the selected parameter combination. |
Reimplemented from optk::optimiser.
◆ receive_trial_results()
| void gridsearch::receive_trial_results |
( |
int |
param_id, |
|
|
inst::set |
params, |
|
|
double |
value |
|
) |
| |
|
overridevirtual |
Stores params if value is greater than previous best.
- Parameters
-
| param_id | The identifier of the parameter combination which generated the result. |
| params | The parameters themselves |
| params | The result from the objective function |
Reimplemented from optk::optimiser.
◆ update_search_space()
Expands the lists of parameters into a format from which it is easier to generate all possible configurations sequentially.
- Parameters
-
| space | The search space to unpack. The gridsearch optimiser only accepts parameters of type param::choice, param::categorical, param::randint as well as param::quniform. |
Reimplemented from optk::optimiser.
◆ update_search_space_s()
| void gridsearch::update_search_space_s |
( |
sspace::sspace_t * |
space, |
|
|
double |
q = 0.2 |
|
) |
| |
A convenience method for accepting a search space from a synthetic benchmark. This is equivalent to calling
benchmark.get_search_space(), q
);
- Parameters
-
| space | The search space returned from synthetic::get_search_space. |
| q | The quantisation for uniform parameters. |
◆ fst_gen
Indicates whether this is the first call to generate_parameters
◆ m_root
This is a reference to the 'root' of the 'unpacked' (internal) representation of the search space.
◆ m_syn_spaces
A list of pointers to converted synthetic benchmark search spaces allocated through convert_synthetic_ss; used in destructor to avoid memory leaks.
The documentation for this class was generated from the following files: