89 #ifndef KERNEL_SIGMOID_HH 90 #define KERNEL_SIGMOID_HH 136 template<
typename ForwardIter,
typename Accessor>
147 template<
typename ForwardIter1,
typename Accessor1,
148 typename ForwardIter2,
typename Accessor2 >
165 template<
typename FV>
171 template<
typename STDATA>
175 stData.getValue(
"gamma",
p_gamma);
176 stData.getValue(
"coef0",
p_coef0);
179 template<
typename STDATA>
183 stData.setValue(
"kernel_type",
name());
184 stData.setValue(
"gamma",
p_gamma);
185 stData.setValue(
"coef0",
p_coef0);
195 return "sigmoid kernel: tanh(gamma*u'*v + coef0)";
212 "gamma for sigmoid kernel. (default 1)"));
215 "coef0 for sigmoid kernel. (default 0)"));
#define CHECK_MEMBER_TEMPLATE(c)
void setGamma(double gamma)
void loadParameters(STDATA &stData)
The Kernel_SIGMOID class specifies a sigmoid kernel function: tanh(gamma*u'*v + coef0) ...
double k_function(const FV &x, const FV &y) const
static void getParamInfos(std::vector< ParamInfo > &p)
get information about the parameters, that are used in loadParameters() and saveParameters().
static const char * name()
Kernel_SIGMOID(double gamma=1., double coef0=0.)
void saveParameters(STDATA &stData) const
void setCoef0(double coef0)
void updateCache(const ForwardIter1 &, const ForwardIter1 &, Accessor1, const ForwardIter2 &, const ForwardIter2 &, Accessor2, ProgressReporter *=0) const
The ParamInfo class contains informations about one parameter like key, help text, guiHints etc.
void updateCache(const ForwardIter &, const ForwardIter &, Accessor, ProgressReporter *) const
static const char * description()