aboutsummaryrefslogtreecommitdiff
path: root/include/msvmmaj_train.h
blob: 835100fedd89af25a1dfa8071ae8d0a6e59e1507 (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
30
31
/**
 * @file msvmmaj_train.h
 * @author Gertjan van den Burg
 * @date August, 2013
 * @brief Header file for msvmmaj_train.c
 *
 * @details
 * Contains function declarations for functions used to train a single
 * MajModel.
 *
 */

#ifndef MSVMMAJ_TRAIN_H
#define MSVMMAJ_TRAIN_H

#include "globals.h"

//forward declarations
struct MajData;
struct MajModel;

// function declarations
void msvmmaj_optimize(struct MajModel *model, struct MajData *data);

double msvmmaj_get_loss(struct MajModel *model, struct MajData *data,
		double *ZV);

void msvmmaj_get_update(struct MajModel *model, struct MajData *data,
		double *B, double *ZAZ, double *ZAZV, double *ZAZVT);

#endif