205 CV
, MatType, PredictionsType, 213 OptimizerType optimizer;
216 double bestObjective;
219 MLAlgorithm bestModel;
225 double relativeDelta;
237 template<
typename Tuple,
size_t I>
244 template<
typename Tuple,
size_t I>
245 using IsArithmetic = std::is_arithmetic<
typename std::remove_reference<
246 typename std::tuple_element
::type>::type>; 257 typename... FixedArgs,
259 inline void InitAndOptimize(
260 const ArgsTuple& args,
261 arma::mat& bestParams,
263 FixedArgs... fixedArgs);
275 typename... FixedArgs,
278 inline void InitAndOptimize(
279 const ArgsTuple& args,
280 arma::mat& bestParams,
282 FixedArgs... fixedArgs);
294 typename... FixedArgs,
297 IsArithmetic
::value>, 299 inline void InitAndOptimize(
300 const ArgsTuple& args,
301 arma::mat& bestParams,
303 FixedArgs... fixedArgs);
315 typename... FixedArgs,
318 !IsArithmetic
::value>, 321 inline void InitAndOptimize(
322 const ArgsTuple& args,
323 arma::mat& bestParams,
325 FixedArgs... fixedArgs);
331 template<
typename TupleType,
336 inline TupleType VectorToTuple(
const arma::vec& vector,
const Args&... args);
341 template<
typename TupleType,
347 inline TupleType VectorToTuple(
const arma::vec& vector,
const Args&... args);
354 #include "hpt_impl.hpp" Auxiliary information for a dataset, including mappings to/from strings (or other types) and the data...
const MLAlgorithm & BestModel() const
Get the best model from the last run.
double & MinDelta()
Modify minimum increase of arguments for calculation of partial derivatives (by the definition) in gr...
double & RelativeDelta()
Modify relative increase of arguments for calculation of partial derivatives (by the definition) in g...
typename enable_if< B, T >::type enable_if_t
Linear algebra utility functions, generally performed on matrices or vectors.
The class HyperParameterTuner for the given MLAlgorithm utilizes the provided Optimizer to find the v...
OptimizerType & Optimizer()
Access and modify the optimizer.
typename DeduceHyperParameterTypes< Args... >::TupleType TupleOfHyperParameters
A short alias for deducing types of hyper-parameters from types of arguments in the Optimize method i...
HyperParameterTuner(const CVArgs &...args)
Create a HyperParameterTuner object by passing constructor arguments for the given cross-validation s...
TupleOfHyperParameters< Args... > Optimize(const Args &... args)
Find the best hyper-parameters by using the given Optimizer.
double BestObjective() const
Get the performance measurement of the best model from the last run.
A type function for checking whether the given type is PreFixedArg.
double MinDelta() const
Get minimum increase of arguments for calculation of partial derivatives (by the definition) in gradi...
MLAlgorithm & BestModel()
Modify the best model from the last run.
double RelativeDelta() const
Get relative increase of arguments for calculation of partial derivatives (by the definition) in grad...