28 init(kernel_name, params);
37 init(kernel_name, params);
48 init(orig.kernel, orig.kernel_params);
58 kernel_params = params;
62 "The parameters of the kernel to approximate");
65 SG_ADD(&constant,
"constant",
"A constant needed",
76 return "RandomFourierDotFeatures";
91 for (
index_t i=0; i<vec.vlen-1; i++)
virtual SGVector< float64_t > generate_random_parameter_vector()
class that implements the Random Kitchen Sinks (RKS) for the DotFeatures as mentioned in http://books...
SGMatrix< float64_t > random_coeff
virtual const char * get_name() const
static float32_t normal_random(float32_t mean, float32_t std_dev)
#define SG_NOTIMPLEMENTED
SGMatrix< float64_t > generate_random_coefficients()
virtual CFeatures * duplicate() const
Features that support dot products among other operations.
virtual int32_t get_dim_feature_space() const =0
CRandomFourierDotFeatures()
void add(bool *param, const char *name, const char *description="")
A File access base class.
static float64_t cos(float64_t x)
sinh(x), x being a complex128_t
virtual ~CRandomFourierDotFeatures()
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
This class implements the random fourier features for the DotFeatures framework. Basically upon the o...
static float32_t sqrt(float32_t x)
virtual float64_t post_dot(float64_t dot_result, index_t par_idx)
static const float64_t PI