48 SG_ADD(&m_bias_vector,
"bias_vector",
91 for (int32_t i=0; i<n; i++)
94 for (int32_t j=0; j<n; j++)
101 kernel_matrix.
matrix = NULL;
105 cblas_dgemv(CblasColMajor, CblasTrans,
112 for (int32_t i=0; i<n; i++)
114 for (int32_t j=0; j<n; j++)
141 for (i=0; i<num_vectors; i++)
197 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...
SGVector< float64_t > m_bias_vector
void set_feature_matrix(SGMatrix< ST > matrix)
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_row_sum(T *matrix, int32_t m, int32_t n)
static T sum(T *vec, int32_t len)
return sum(vec)
virtual int32_t get_num_vectors() const =0
static T * get_column_sum(T *matrix, int32_t m, int32_t n)
float64_t kernel(int32_t idx_a, int32_t idx_b)
SGMatrix< float64_t > get_kernel_matrix()
virtual void cleanup()
cleanup
virtual CDenseFeatures< float64_t > * apply_to_string_features(CFeatures *features)
static SGVector< float64_t > compute_eigenvectors(SGMatrix< float64_t > matrix)
CFeatures * m_init_features
SGMatrix< float64_t > m_transformation_matrix
static T max(T a, T b)
return the maximum of two integers
static void fill_vector(T *vec, int32_t len, T value)
static void scale_vector(T alpha, T *vec, int32_t len)
scale vector inplace
virtual int32_t get_num_vectors() const
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
static void add_scalar(T alpha, T *vec, int32_t len)
add scalar to vector inplace
static float32_t sqrt(float32_t x)
x^0.5
void set_kernel(CKernel *kernel)
static void center_matrix(T *matrix, int32_t m, int32_t n)