From 527e1e0162a287d11b92be48eb22c5f98d6e59b8 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 27 Mar 2018 19:31:26 +0100 Subject: Add support for predicting after grid search With this commit the gensvm_grid executable can now compute predictions with the best model found during the grid search. The test dataset is supplied through the training file, and a command line flag is added to support saving the predictions in an output file. --- include/gensvm_consistency.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/gensvm_consistency.h') diff --git a/include/gensvm_consistency.h b/include/gensvm_consistency.h index 61e699d..d4572ee 100644 --- a/include/gensvm_consistency.h +++ b/include/gensvm_consistency.h @@ -37,7 +37,7 @@ // function declarations struct GenQueue *gensvm_top_queue(struct GenQueue *q, double percentile); int gensvm_dsort(const void *elem1, const void *elem2); -void gensvm_consistency_repeats(struct GenQueue *q, long repeats, +int gensvm_consistency_repeats(struct GenQueue *q, long repeats, double percentile); double gensvm_percentile(double *values, long N, double p); -- cgit v1.2.3