GenSVM
gensvm_gridsearch.h
Go to the documentation of this file.
1 
33 #ifndef GENSVM_GRIDSEARCH_H
34 #define GENSVM_GRIDSEARCH_H
35 
36 // includes
38 #include "gensvm_cv_util.h"
39 #include "gensvm_grid.h"
40 #include "gensvm_queue.h"
41 #include "gensvm_timer.h"
42 
43 // function declarations
44 void gensvm_fill_queue(struct GenGrid *grid, struct GenQueue *queue,
45  struct GenData *train_data, struct GenData *test_data);
46 bool gensvm_kernel_changed(struct GenTask *newtask, struct GenTask *oldtask);
47 void gensvm_kernel_folds(long folds, struct GenModel *model,
48  struct GenData **train_folds, struct GenData **test_folds);
49 void gensvm_gridsearch_progress(struct GenTask *task, long N, double perf,
50  double duration, double current_max);
51 void gensvm_train_queue(struct GenQueue *q);
52 
53 #endif
Structure for describing the entire grid search.
Definition: gensvm_grid.h:67
void gensvm_gridsearch_progress(struct GenTask *task, long N, double perf, double duration, double current_max)
Print the description of the current task on screen.
void gensvm_fill_queue(struct GenGrid *grid, struct GenQueue *queue, struct GenData *train_data, struct GenData *test_data)
Initialize a GenQueue from a Training instance.
Simple task queue.
Definition: gensvm_queue.h:47
A structure to represent the data.
Definition: gensvm_base.h:57
void gensvm_train_queue(struct GenQueue *q)
Run the grid search for a GenQueue.
A structure to represent a single GenSVM model.
Definition: gensvm_base.h:92
void gensvm_kernel_folds(long folds, struct GenModel *model, struct GenData **train_folds, struct GenData **test_folds)
Compute the kernels for the folds of the train and test datasets.
Header file for gensvm_timer.c.
A structure for a single task in the queue.
Definition: gensvm_task.h:55
bool gensvm_kernel_changed(struct GenTask *newtask, struct GenTask *oldtask)
Check if the kernel parameters change between tasks.
Header file for gensvm_grid.c.
Header file for gensvm_queue.c.
long folds
number of folds in cross validation
Definition: gensvm_grid.h:72
Header file for gensvm_cross_validation.c.
Header file for gensvm_cv_util.c.