30 #ifndef __CUV_OPT_HPP__
31 #define __CUV_OPT_HPP__
34 namespace cuv{
namespace libs{
57 template<
class V,
class M,
class L>
73 template<
class V,
class M,
class L>
88 template<
class V,
class M,
class L>
89 void adagrad(
tensor<V,M,L>& W,
const tensor<V,M,L>& dW,
tensor<V,M,L>& sW,
const float& learnrate,
const float& delta,
const float& decay = 0.0f,
const float& sparsedecay=0.0f);
104 template<
class V,
class M,
class L>
105 void rmsprop(
tensor<V,M,L>& W,
const tensor<V,M,L>& dW,
tensor<V,M,L>& sW,
const float& learnrate,
const float& delta,
const float& decay = 0.0f,
const float& sparsedecay=0.0f,
const float& grad_avg=0.9f);