From 203ee5997bf80d4386b7b9fcd17365763c36e0ad Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 5 Aug 2013 17:21:36 +0200 Subject: initial commit --- include/libMSVMMaj.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/libMSVMMaj.h (limited to 'include/libMSVMMaj.h') diff --git a/include/libMSVMMaj.h b/include/libMSVMMaj.h new file mode 100644 index 0000000..c886ded --- /dev/null +++ b/include/libMSVMMaj.h @@ -0,0 +1,26 @@ +#include +#include +#include +#include +#include +#include +#include "util.h" + +void simplex_gen(long K, double *U); +void category_matrix(struct Model *model, struct Data *data); +void simplex_diff(struct Model *model, struct Data *dataset); + +void calculate_errors(struct Model *model, struct Data *data, double *ZV); +void calculate_huber(struct Model *model); + +double get_msvmmaj_loss(struct Model *model, struct Data *data, double *ZV); +void msvmmaj_update(struct Model *model, struct Data *data, + int *ClassIdx, double *A, double *B, double *Omega, + double *ZAZ, double *ZAZV, double *ZAZVT); +void step_doubling(struct Model *model); + +void main_loop(struct Model *model, struct Data *data); + +int dposv(char UPLO, int N, int NRHS, double *A, int LDA, double *B, int LDB); + +void initialize_weights(struct Data *data, struct Model *model); -- cgit v1.2.3