diff options
Diffstat (limited to 'include/libMSVMMaj.h')
| -rw-r--r-- | include/libMSVMMaj.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> +#include <math.h> +#include <time.h> +#include <cblas.h> +#include <string.h> +#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); |
