aboutsummaryrefslogtreecommitdiff
path: root/include/gensvm_crossval.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gensvm_crossval.h')
-rw-r--r--include/gensvm_crossval.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/gensvm_crossval.h b/include/gensvm_crossval.h
new file mode 100644
index 0000000..fa3cca7
--- /dev/null
+++ b/include/gensvm_crossval.h
@@ -0,0 +1,25 @@
+/**
+ * @file crossval.h
+ * @author Gertjan van den Burg
+ * @date January, 2014
+ * @brief Header file for crossval.c
+ *
+ * @details
+ * Contains function declarations for functions needed for performing cross
+ * validation on GenData structures.
+ *
+ */
+
+#ifndef GENSVM_CROSSVAL_H
+#define GENSVM_CROSSVAL_H
+
+#include "globals.h"
+
+// forward delaration
+struct GenData;
+
+void gensvm_make_cv_split(long N, long folds, long *cv_idx);
+void gensvm_get_tt_split(struct GenData *full_data, struct GenData *train_data,
+ struct GenData *test_data, long *cv_idx, long fold_idx);
+
+#endif