22 #ifndef __MLPACK_CORE_OPTIMIZERS_SGD_SGD_HPP
23 #define __MLPACK_CORE_OPTIMIZERS_SGD_SGD_HPP
28 namespace optimization {
85 template<
typename DecomposableFunctionType>
100 SGD(DecomposableFunctionType&
function,
114 double Optimize(arma::mat& iterate);
117 const DecomposableFunctionType&
Function()
const {
return function; }
119 DecomposableFunctionType&
Function() {
return function; }
146 DecomposableFunctionType&
function;
166 #include "sgd_impl.hpp"