An optimizer that finds the minimum of a given function by iterating through points on a multidimensional grid. More...
Public Member Functions | |
template < typename FunctionType > | |
| double | Optimize (FunctionType &function, arma::mat &bestParameters, data::DatasetMapper< data::IncrementPolicy, double > &datasetInfo) |
| Optimize (minimize) the given function by iterating through the all possible combinations of values for the parameters specified in datasetInfo. More... | |
An optimizer that finds the minimum of a given function by iterating through points on a multidimensional grid.
For GridSearch to work, a FunctionType template parameter is required. This class must implement the following function:
double Evaluate(const arma::mat& coordinates);
Definition at line 29 of file grid_search.hpp.
| double Optimize | ( | FunctionType & | function, |
| arma::mat & | bestParameters, | ||
| data::DatasetMapper< data::IncrementPolicy, double > & | datasetInfo | ||
| ) |
Optimize (minimize) the given function by iterating through the all possible combinations of values for the parameters specified in datasetInfo.
| function | Function to optimize. |
| bestParameters | Variable for storing results. |
| datasetInfo | Type information for each dimension of the dataset. It should store possible values for each parameter. |