void gensvm_train(struct GenModel *model, struct GenData *data, struct GenModel *seed_model)
Utility function for training a GenSVM model.
void gensvm_optimize(struct GenModel *model, struct GenData *data)
The main training loop for GenSVM.
A structure to represent the data.
void gensvm_initialize_weights(struct GenData *data, struct GenModel *model)
Initialize instance weights.
Header file for gensvm_train.c.
A structure to represent a single GenSVM model.
long n
number of instances in the dataset
void gensvm_allocate_model(struct GenModel *model)
Allocate memory for a GenModel.
long r
number of eigenvalues (width of Z)
void gensvm_init_V(struct GenModel *from_model, struct GenModel *to_model, struct GenData *data)
Seed the matrix V from an existing model or using rand.
long K
number of classes in the dataset
long m
number of predictors (width of RAW)
void gensvm_reallocate_model(struct GenModel *model, long n, long m)
Reallocate memory for GenModel.
long n
number of instances
long m
number of predictor variables in the dataset
void gensvm_kernel_preprocess(struct GenModel *model, struct GenData *data)
Do the preprocessing steps needed to perform kernel GenSVM.