aboutsummaryrefslogtreecommitdiff
path: root/include/gensvm_train.h
blob: 466b8e262e1c1e0011a05dcc6bc68b941c966f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * @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

//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