22 #ifndef __MLPACK_CORE_OPTIMIZERS_SGD_TEST_FUNCTION_HPP
23 #define __MLPACK_CORE_OPTIMIZERS_SGD_TEST_FUNCTION_HPP
28 namespace optimization {
48 double Evaluate(
const arma::mat& coordinates,
const size_t i)
const;
51 void Gradient(
const arma::mat& coordinates,
53 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.
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).