14 #ifndef __MLPACK_CORE_OPTIMIZERS_SGD_TEST_FUNCTION_HPP
15 #define __MLPACK_CORE_OPTIMIZERS_SGD_TEST_FUNCTION_HPP
20 namespace optimization {
40 double Evaluate(
const arma::mat& coordinates,
const size_t i)
const;
43 void Gradient(
const arma::mat& coordinates,
45 arma::mat& gradient)
const;
Very, very simple test function which is the composite of three other functions.
Linear algebra utility functions, generally performed on matrices or vectors.
double Evaluate(const arma::mat &coordinates, const size_t i) const
Evaluate a function.
SGDTestFunction()
Nothing to do for the constructor.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
arma::mat GetInitialPoint() const
Get the starting point.
void Gradient(const arma::mat &coordinates, const size_t i, arma::mat &gradient) const
Evaluate the gradient of a function.
size_t NumFunctions() const
Return 3 (the number of functions).