12 #ifndef MLPACK_CORE_KERNELS_HYPERBOLIC_TANGENT_KERNEL_HPP
13 #define MLPACK_CORE_KERNELS_HYPERBOLIC_TANGENT_KERNEL_HPP
45 scale(scale), offset(offset)
59 template<
typename VecTypeA,
typename VecTypeB>
60 double Evaluate(
const VecTypeA& a,
const VecTypeB& b)
62 return tanh(scale * arma::dot(a, b) + offset);
66 double Scale()
const {
return scale; }
68 double&
Scale() {
return scale; }
71 double Offset()
const {
return offset; }
76 template<
typename Archive>
79 ar & BOOST_SERIALIZATION_NVP(scale);
80 ar & BOOST_SERIALIZATION_NVP(offset);