Very, very simple test function which is the composite of three other functions.
SGDTestFunction ()
Nothing to do for the constructor. double Evaluate (const arma::mat &coordinates, const size_t i) const
Evaluate a function. 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).
Very, very simple test function which is the composite of three other functions.
It turns out that although this function is very simple, optimizing it fully can take a very long time. It seems to take in excess of 10 million iterations with a step size of 0.0005.
Definition at line 35 of file test_function.hpp.
Nothing to do for the constructor.
Definition at line 39 of file test_function.hpp.
Evaluate a function.
Get the starting point.
Definition at line 45 of file test_function.hpp.
Evaluate the gradient of a function.
Return 3 (the number of functions).
Definition at line 42 of file test_function.hpp.
Generated automatically by Doxygen for MLPACK from the source code.