diff options
Diffstat (limited to 'include/gensvm_train.h')
| -rw-r--r-- | include/gensvm_train.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/gensvm_train.h b/include/gensvm_train.h new file mode 100644 index 0000000..f59359d --- /dev/null +++ b/include/gensvm_train.h @@ -0,0 +1,31 @@ +/** + * @file gensvm_train.h + * @author Gertjan van den Burg + * @date August, 2013 + * @brief Header file for gensvm_train.c + * + * @details + * Contains function declarations for functions used to train a single + * GenModel. + * + */ + +#ifndef GENSVM_TRAIN_H +#define GENSVM_TRAIN_H + +#include "globals.h" + +//forward declarations +struct GenData; +struct GenModel; + +// function declarations +void gensvm_optimize(struct GenModel *model, struct GenData *data); + +double gensvm_get_loss(struct GenModel *model, struct GenData *data, + double *ZV); + +void gensvm_get_update(struct GenModel *model, struct GenData *data, + double *B, double *ZAZ, double *ZAZV, double *ZAZVT); + +#endif |
