grid_search.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_CORE_OPTIMIZERS_GRID_SEARCH_GRID_SEARCH_HPP
13 #define MLPACK_CORE_OPTIMIZERS_GRID_SEARCH_GRID_SEARCH_HPP
14 
15 #include <mlpack/core.hpp>
16 
17 namespace mlpack {
18 namespace optimization {
19 
30 {
31  public:
43  template<typename FunctionType>
44  double Optimize(
45  FunctionType& function,
46  arma::mat& bestParameters,
48 
49  private:
57  template<typename FunctionType>
58  void Optimize(
59  FunctionType& function,
60  double& bestObjective,
61  arma::mat& bestParameters,
62  arma::vec& currentParameters,
64  size_t i);
65 };
66 
67 } // namespace optimization
68 } // namespace mlpack
69 
70 // Include implementation
71 #include "grid_search_impl.hpp"
72 
73 #endif
Auxiliary information for a dataset, including mappings to/from strings (or other types) and the data...
.hpp
Definition: add_to_po.hpp:21
An optimizer that finds the minimum of a given function by iterating through points on a multidimensi...
Definition: grid_search.hpp:29
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 f...
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...