aboutsummaryrefslogtreecommitdiff
path: root/include/gensvm_train.h
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2014-08-25 14:38:03 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2014-08-25 14:38:03 +0200
commit1e340d509f229120eb3aaa98c91028dc3c0d3305 (patch)
treedd6b65c428447f179133e967eb0e0d3ce15f68ec /include/gensvm_train.h
parentfree some work arrays (diff)
downloadgensvm-1e340d509f229120eb3aaa98c91028dc3c0d3305.tar.gz
gensvm-1e340d509f229120eb3aaa98c91028dc3c0d3305.zip
rename msvmmaj to gensvm
Diffstat (limited to 'include/gensvm_train.h')
-rw-r--r--include/gensvm_train.h31
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