From e2c0ca1c082bfd7755c7af5bc5c9021bce64f3ba Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 17 Oct 2016 13:41:46 +0200 Subject: Update predictions to work with sparse matrices This is done by pulling the Z*V routines from the gensvm_optimize file to a seperate file, since they are shared by prediction and get_loss --- include/gensvm_pred.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/gensvm_pred.h') diff --git a/include/gensvm_pred.h b/include/gensvm_pred.h index 56e16e8..12a59eb 100644 --- a/include/gensvm_pred.h +++ b/include/gensvm_pred.h @@ -15,10 +15,15 @@ // 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 -- cgit v1.2.3