diff options
| author | Gertjan van den Burg <burg@ese.eur.nl> | 2016-10-17 13:41:46 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <burg@ese.eur.nl> | 2016-10-17 13:41:46 +0200 |
| commit | e2c0ca1c082bfd7755c7af5bc5c9021bce64f3ba (patch) | |
| tree | 3564a0b9ed66ccf71d16bf54a304aad320876bbf /include/gensvm_pred.h | |
| parent | update doxyfile (diff) | |
| download | gensvm-e2c0ca1c082bfd7755c7af5bc5c9021bce64f3ba.tar.gz gensvm-e2c0ca1c082bfd7755c7af5bc5c9021bce64f3ba.zip | |
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
Diffstat (limited to 'include/gensvm_pred.h')
| -rw-r--r-- | include/gensvm_pred.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
