48 SG_ADD(&m_bias_vector,
"bias_vector",
92 for (int32_t i=0; i<n; i++)
95 for (int32_t j=0; j<n; j++)
102 kernel_matrix.
matrix = NULL;
106 cblas_dgemv(CblasColMajor, CblasTrans,
113 for (int32_t i=0; i<n; i++)
115 for (int32_t j=0; j<n; j++)
142 for (i=0; i<num_vectors; i++)
198 for (i=0; i<num_vectors; i++)
virtual bool init(CFeatures *lhs, CFeatures *rhs)
the class DimensionReductionPreprocessor, a base class for preprocessors used to lower the dimensiona...
static void center_matrix(T *matrix, int32_t m, int32_t n)
SGVector< float64_t > m_bias_vector
static void fill_vector(T *vec, int32_t len, T value)
virtual SGVector< float64_t > apply_to_feature_vector(SGVector< float64_t > vector)
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)
static T * get_column_sum(T *matrix, int32_t m, int32_t n)
void set_feature_matrix(SGMatrix< ST > matrix)
virtual int32_t get_num_vectors() const =0
float64_t kernel(int32_t idx_a, int32_t idx_b)
SGMatrix< float64_t > get_kernel_matrix()
virtual void cleanup()
cleanup
static void scale_vector(T alpha, T *vec, int32_t len)
Scale vector inplace.
virtual CDenseFeatures< float64_t > * apply_to_string_features(CFeatures *features)
virtual int32_t get_num_vectors() const
static void add_scalar(T alpha, T *vec, int32_t len)
Add scalar to vector inplace.
CFeatures * m_init_features
SGMatrix< float64_t > m_transformation_matrix
static T sum(T *vec, int32_t len)
Return sum(vec)
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
static T * get_row_sum(T *matrix, int32_t m, int32_t n)
static float32_t sqrt(float32_t x)
void set_kernel(CKernel *kernel)
static SGVector< float64_t > compute_eigenvectors(SGMatrix< float64_t > matrix)