diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2016-05-09 20:55:24 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2016-05-09 20:55:24 +0200 |
| commit | 7c8a5e4b2a7cff7573b1a308daf19d2dbd558a9c (patch) | |
| tree | 2c4774a63ec91d60931d822a7607a5011711c946 /src/GenSVMtraintest.c | |
| parent | add doc and test to phony (diff) | |
| download | gensvm-7c8a5e4b2a7cff7573b1a308daf19d2dbd558a9c.tar.gz gensvm-7c8a5e4b2a7cff7573b1a308daf19d2dbd558a9c.zip | |
strip whitespaces
Diffstat (limited to 'src/GenSVMtraintest.c')
| -rw-r--r-- | src/GenSVMtraintest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GenSVMtraintest.c b/src/GenSVMtraintest.c index c5f09f8..955f4fa 100644 --- a/src/GenSVMtraintest.c +++ b/src/GenSVMtraintest.c @@ -5,7 +5,7 @@ * @brief Command line interface for training and testing with a GenSVM model * * @details - * This is a command line program for training and testing on a single model + * This is a command line program for training and testing on a single model * with specified model parameters. * */ @@ -126,13 +126,13 @@ int main(int argc, char **argv) // start training gensvm_optimize(model, traindata); - // if we also have a test set, predict labels and write to predictions + // if we also have a test set, predict labels and write to predictions // to an output file if specified if (with_test) { // predict labels predy = Calloc(long, testdata->n); gensvm_predict_labels(testdata, model, predy); - + if (testdata->y != NULL) { performance = gensvm_prediction_perf(testdata, predy); note("Predictive performance: %3.2f%%\n", performance); @@ -181,7 +181,7 @@ void parse_command_line(int argc, char **argv, struct GenModel *model, double gamma = 1.0, degree = 2.0, coef = 0.0; - + GENSVM_OUTPUT_FILE = stdout; // parse options |
