aboutsummaryrefslogtreecommitdiff
path: root/include/gensvm_predict.h
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2016-10-17 13:44:54 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2016-10-17 13:44:54 +0200
commitcc40bb91ce4509a177a729e58cb78afe5ca0dfb0 (patch)
tree032dbb51706af2e2d47f645f3a479d2106bf0780 /include/gensvm_predict.h
parentUpdate predictions to work with sparse matrices (diff)
downloadgensvm-cc40bb91ce4509a177a729e58cb78afe5ca0dfb0.tar.gz
gensvm-cc40bb91ce4509a177a729e58cb78afe5ca0dfb0.zip
refactor gensvm_pred to gensvm_predict
Diffstat (limited to 'include/gensvm_predict.h')
-rw-r--r--include/gensvm_predict.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/gensvm_predict.h b/include/gensvm_predict.h
new file mode 100644
index 0000000..a60ddd9
--- /dev/null
+++ b/include/gensvm_predict.h
@@ -0,0 +1,29 @@
+/**
+ * @file gensvm_pred.h
+ * @author Gertjan van den Burg
+ * @date August, 2013
+ * @brief Header file for gensvm_pred.c
+ *
+ * @details
+ * Contains function declarations for prediction functions.
+ *
+ */
+
+#ifndef GENSVM_PREDICT_H
+#define GENSVM_PREDICT_H
+
+// includes
+#include "gensvm_kernel.h"
+#include "gensvm_simplex.h"
+#include "gensvm_zv.h"
+
+// function declarations
+void gensvm_predict_labels(struct GenData *testdata,
+ struct GenModel *model, long *predy);
+void gensvm_predict_labels_dense(struct GenData *testdata,
+ struct GenModel *model, long *predy);
+void gensvm_predict_labels_sparse(struct GenData *testdata,
+ struct GenModel *model, long *predy);
+double gensvm_prediction_perf(struct GenData *data, long *perdy);
+
+#endif