22 #ifndef __MLPACK_CORE_OPTIMIZERS_SGD_SGD_HPP
23 #define __MLPACK_CORE_OPTIMIZERS_SGD_SGD_HPP
26 namespace optimization {
83 template<
typename DecomposableFunctionType>
98 SGD(DecomposableFunctionType&
function,
112 double Optimize(arma::mat& iterate);
115 const DecomposableFunctionType&
Function()
const {
return function; }
117 DecomposableFunctionType&
Function() {
return function; }
141 DecomposableFunctionType&
function;
161 #include "sgd_impl.hpp"