GenSVM
gensvm_optimize.h
Go to the documentation of this file.
1 
31 #ifndef GENSVM_OPTIMIZE_H
32 #define GENSVM_OPTIMIZE_H
33 
34 #include "gensvm_sv.h"
35 #include "gensvm_simplex.h"
36 #include "gensvm_update.h"
37 #include "gensvm_zv.h"
38 
39 // function declarations
40 void gensvm_optimize(struct GenModel *model, struct GenData *data);
41 double gensvm_get_loss(struct GenModel *model, struct GenData *data,
42  struct GenWork *work);
43 void gensvm_calculate_errors(struct GenModel *model, struct GenData *data,
44  double *ZV);
45 void gensvm_calculate_ZV_dense(struct GenModel *model, struct GenData *data,
46  double *ZV);
47 void gensvm_calculate_ZV_sparse(struct GenModel *model, struct GenData *data,
48  double *ZV);
49 void gensvm_calculate_huber(struct GenModel *model);
50 void gensvm_step_doubling(struct GenModel *model);
51 
52 #endif
void gensvm_calculate_ZV_dense(struct GenModel *model, struct GenData *data, double *ZV)
Compute the product Z*V for when Z is a dense matrix.
Definition: gensvm_zv.c:108
void gensvm_calculate_ZV_sparse(struct GenModel *model, struct GenData *data, double *ZV)
Compute the product Z*V for when Z is a sparse matrix.
Definition: gensvm_zv.c:70
void gensvm_step_doubling(struct GenModel *model)
Use step doubling.
void gensvm_optimize(struct GenModel *model, struct GenData *data)
The main training loop for GenSVM.
A structure to hold the GenSVM workspace.
Definition: gensvm_base.h:151
double gensvm_get_loss(struct GenModel *model, struct GenData *data, struct GenWork *work)
Calculate the current value of the loss function.
A structure to represent the data.
Definition: gensvm_base.h:57
A structure to represent a single GenSVM model.
Definition: gensvm_base.h:92
Header file for gensvm_update.c.
void gensvm_calculate_errors(struct GenModel *model, struct GenData *data, double *ZV)
Calculate the scalar errors.
Header file for gensvm_zv.c.
Header file for gensvm_simplex.c.
Header file for gensvm_sv.c.
void gensvm_calculate_huber(struct GenModel *model)
Calculate the Huber hinge errors.