diff options
| author | Gertjan van den Burg <burg@ese.eur.nl> | 2016-10-24 14:54:11 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <burg@ese.eur.nl> | 2016-10-24 14:54:11 +0200 |
| commit | aa75c36976e7502b01d3bd0c9cd800abcf4e3634 (patch) | |
| tree | d2ab1976de4edee4372e579ee01a937d1c8d1a93 /src | |
| parent | fix problems with dense ZV computation when data->n < model->n (diff) | |
| download | gensvm-aa75c36976e7502b01d3bd0c9cd800abcf4e3634.tar.gz gensvm-aa75c36976e7502b01d3bd0c9cd800abcf4e3634.zip | |
update copyright information
Diffstat (limited to 'src')
| -rw-r--r-- | src/GenSVMgrid.c | 22 | ||||
| -rw-r--r-- | src/GenSVMtraintest.c | 22 | ||||
| -rw-r--r-- | src/gensvm_base.c | 24 | ||||
| -rw-r--r-- | src/gensvm_cmdarg.c | 22 | ||||
| -rw-r--r-- | src/gensvm_copy.c | 22 | ||||
| -rw-r--r-- | src/gensvm_cv_util.c | 22 | ||||
| -rw-r--r-- | src/gensvm_debug.c | 22 | ||||
| -rw-r--r-- | src/gensvm_grid.c | 22 | ||||
| -rw-r--r-- | src/gensvm_gridsearch.c | 46 | ||||
| -rw-r--r-- | src/gensvm_init.c | 24 | ||||
| -rw-r--r-- | src/gensvm_io.c | 25 | ||||
| -rw-r--r-- | src/gensvm_kernel.c | 22 | ||||
| -rw-r--r-- | src/gensvm_memory.c | 22 | ||||
| -rw-r--r-- | src/gensvm_optimize.c | 22 | ||||
| -rw-r--r-- | src/gensvm_predict.c | 22 | ||||
| -rw-r--r-- | src/gensvm_print.c | 22 | ||||
| -rw-r--r-- | src/gensvm_queue.c | 22 | ||||
| -rw-r--r-- | src/gensvm_simplex.c | 22 | ||||
| -rw-r--r-- | src/gensvm_sparse.c | 22 | ||||
| -rw-r--r-- | src/gensvm_strutil.c | 23 | ||||
| -rw-r--r-- | src/gensvm_sv.c | 22 | ||||
| -rw-r--r-- | src/gensvm_task.c | 22 | ||||
| -rw-r--r-- | src/gensvm_timer.c | 22 | ||||
| -rw-r--r-- | src/gensvm_train.c | 22 | ||||
| -rw-r--r-- | src/gensvm_update.c | 22 | ||||
| -rw-r--r-- | src/gensvm_zv.c | 22 |
26 files changed, 519 insertions, 85 deletions
diff --git a/src/GenSVMgrid.c b/src/GenSVMgrid.c index 3aa1f5c..9b2b22c 100644 --- a/src/GenSVMgrid.c +++ b/src/GenSVMgrid.c @@ -1,7 +1,7 @@ /** * @file GenSVMgrid.c - * @author Gertjan van den Burg - * @date January, 2014 + * @author G.J.J. van den Burg + * @date 2014-01-07 * @brief Command line interface for the grid search program * * @details @@ -17,6 +17,24 @@ * * For further usage information, see the program help function. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_cmdarg.h" diff --git a/src/GenSVMtraintest.c b/src/GenSVMtraintest.c index 777d8e5..ec0eb91 100644 --- a/src/GenSVMtraintest.c +++ b/src/GenSVMtraintest.c @@ -1,13 +1,31 @@ /** * @file GenSVMtraintest.c - * @author Gertjan van den Burg - * @date February, 2015 + * @author G.J.J. van den Burg + * @date 2015-02-01 * @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 * with specified model parameters. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_cmdarg.h" diff --git a/src/gensvm_base.c b/src/gensvm_base.c index e4fc20a..3c62eb0 100644 --- a/src/gensvm_base.c +++ b/src/gensvm_base.c @@ -1,8 +1,8 @@ /** * @file gensvm_base.c - * @author Gertjan van den Burg - * @date May, 2016 - * @brief Functions for initializing GenModel and GenData structures + * @author G.J.J. van den Burg + * @date 2016-05-01 + * @brief Functions for initializing GenModel, GenData, and GenWork structures * * @details * This file contains functions for initializing, freeing, allocating, and @@ -10,6 +10,24 @@ * initializing and freeing a GenData structure. In addition, default values * for these structures are defined here (and only here). * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_base.h" diff --git a/src/gensvm_cmdarg.c b/src/gensvm_cmdarg.c index 8f796bb..57603c4 100644 --- a/src/gensvm_cmdarg.c +++ b/src/gensvm_cmdarg.c @@ -1,13 +1,31 @@ /** * @file gensvm_cmdarg.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Functions for dealing with command line arguments * * @details * This file contains several utility functions for coordinating input and * output of data and model files. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_cmdarg.h" diff --git a/src/gensvm_copy.c b/src/gensvm_copy.c index 9ec1625..43a1107 100644 --- a/src/gensvm_copy.c +++ b/src/gensvm_copy.c @@ -1,9 +1,27 @@ /** * @file gensvm_copy.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Function for copying a GenModel instance * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_copy.h" diff --git a/src/gensvm_cv_util.c b/src/gensvm_cv_util.c index d94fb98..384b2a4 100644 --- a/src/gensvm_cv_util.c +++ b/src/gensvm_cv_util.c @@ -1,7 +1,7 @@ /** * @file gensvm_cv_util.c - * @author Gertjan van den Burg - * @date January 7, 2014 + * @author G.J.J. van den Burg + * @date 2014-01-07 * @brief Functions for cross validation * * @details @@ -11,6 +11,24 @@ * test dataset from a given dataset and a pre-determined CV partition vector. * See individual function documentation for details. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_cv_util.h" diff --git a/src/gensvm_debug.c b/src/gensvm_debug.c index 632bf73..1e9bb62 100644 --- a/src/gensvm_debug.c +++ b/src/gensvm_debug.c @@ -1,12 +1,30 @@ /** * @file gensvm_debug.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Functions facilitating debugging * * @details * Defines functions useful for debugging matrices. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_debug.h" diff --git a/src/gensvm_grid.c b/src/gensvm_grid.c index 7e235d0..ca695f5 100644 --- a/src/gensvm_grid.c +++ b/src/gensvm_grid.c @@ -1,7 +1,7 @@ /** * @file gensvm_grid.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Functions for initializing GenGrid structures * * @details @@ -9,6 +9,24 @@ * instance. In addition, default values for this structure are defined here * (and only here). * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_grid.h" diff --git a/src/gensvm_gridsearch.c b/src/gensvm_gridsearch.c index 0368731..6e48320 100644 --- a/src/gensvm_gridsearch.c +++ b/src/gensvm_gridsearch.c @@ -1,12 +1,31 @@ /** * @file gensvm_gridsearch.c - * @author Gertjan van den Burg - * @date January, 2014 + * @author G.J.J. van den Burg + * @date 2014-01-07 * @brief Functions for finding the optimal parameters for the dataset * * @details * The GenSVM algorithm takes a number of parameters. The functions in * this file are used to find the optimal parameters. + * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_gridsearch.h" @@ -351,7 +370,7 @@ void consistency_repeats(struct GenQueue *q, long repeats, TrainType traintype) } for (r=0; r<repeats; r++) { std[i] += pow(matrix_get(perf, repeats, i, r) - mean[i], - 2.0); + 2.0); } if (r > 1) { std[i] /= ((double) repeats) - 1.0; @@ -360,7 +379,7 @@ void consistency_repeats(struct GenQueue *q, long repeats, TrainType traintype) std[i] = 0.0; } note("(m = %3.3f, s = %3.3f, t = %3.3f)\n", mean[i], std[i], - time[i]); + time[i]); task = get_next_task(nq); i++; } @@ -378,8 +397,8 @@ void consistency_repeats(struct GenQueue *q, long repeats, TrainType traintype) pt = prctile(time, N, p); for (i=0; i<N; i++) if ((pi - mean[i] < 0.0001) && - (std[i] - pr < 0.0001) && - (time[i] - pt < 0.0001)) { + (std[i] - pr < 0.0001) && + (time[i] - pt < 0.0001)) { note("(%li)\tw = %li\te = %f\tp = %f\t" "k = %f\tl = %f\t" "mean: %3.3f\tstd: %3.3f\t" @@ -463,9 +482,6 @@ bool kernel_changed(struct GenTask *newtask, struct GenTask *oldtask) * * The performance found by cross validation is stored in the GenTask struct. * - * @todo - * Make sure folds can't change between tasks - * * @param[in,out] q GenQueue with GenTask instances to run */ @@ -478,8 +494,6 @@ void start_training(struct GenQueue *q) struct GenModel *model = gensvm_init_model(); struct timespec main_s, main_e, loop_s, loop_e; - // in principle this can change between tasks, but this shouldn't be - // the case TODO folds = task->folds; model->n = 0; @@ -497,7 +511,7 @@ void start_training(struct GenQueue *q) train_folds[f] = gensvm_init_data(); test_folds[f] = gensvm_init_data(); gensvm_get_tt_split(task->train_data, train_folds[f], - test_folds[f], cv_idx, f); + test_folds[f], cv_idx, f); } Timer(main_s); @@ -511,9 +525,9 @@ void start_training(struct GenQueue *q) if (test_folds[f]->Z != test_folds[f]->RAW) free(test_folds[f]->Z); gensvm_kernel_preprocess(model, - train_folds[f]); + train_folds[f]); gensvm_kernel_postprocess(model, - train_folds[f], test_folds[f]); + train_folds[f], test_folds[f]); } note(".\n"); } @@ -527,7 +541,7 @@ void start_training(struct GenQueue *q) note("\t%3.3f%% (%3.3fs)\t(best = %3.3f%%)\n", perf, gensvm_elapsed_time(&loop_s, &loop_e), - current_max); + current_max); q->tasks[task->ID]->performance = perf; prevtask = task; @@ -568,7 +582,7 @@ void start_training(struct GenQueue *q) * cross validation */ double gensvm_cross_validation(struct GenModel *model, - struct GenData **train_folds, struct GenData **test_folds, + struct GenData **train_folds, struct GenData **test_folds, int folds, long n_total) { FILE *fid = NULL; diff --git a/src/gensvm_init.c b/src/gensvm_init.c index 8bee73a..8351529 100644 --- a/src/gensvm_init.c +++ b/src/gensvm_init.c @@ -1,16 +1,34 @@ /** * @file gensvm_init.c - * @author Gertjan van den Burg - * @date January 7, 2014 + * @author G.J.J. van den Burg + * @date 2014-01-07 * @brief Functions for initializing model and data structures - * * @details + * * This file contains functions for initializing a GenModel instance * and a GenData instance. In addition, default values for these * structures are defined here (and only here). Functions for allocating * memory for the model structure and freeing of the model and data structures * are also included. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_init.h" diff --git a/src/gensvm_io.c b/src/gensvm_io.c index a9ab734..1da5597 100644 --- a/src/gensvm_io.c +++ b/src/gensvm_io.c @@ -1,15 +1,34 @@ /** * @file gensvm_io.c - * @author Gertjan van den Burg - * @date January, 2014 + * @author G.J.J. van den Burg + * @date 2014-01-07 * @brief Functions for input and output of data and model files * * @details * This file contains functions for reading and writing model files, and data * files. It also contains a function for generating a string of the current * time, used in writing output files. -* + * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ + #include <limits.h> #include "gensvm_io.h" diff --git a/src/gensvm_kernel.c b/src/gensvm_kernel.c index 67c063d..7dcfb4e 100644 --- a/src/gensvm_kernel.c +++ b/src/gensvm_kernel.c @@ -1,7 +1,7 @@ /** * @file gensvm_kernel.c - * @author Gertjan van den Burg - * @date October 18, 2013 + * @author G.J.J. van den Burg + * @date 2013-10-18 * @brief Defines main functions for use of kernels in GenSVM. * * @details @@ -9,6 +9,24 @@ * parameters. Also contains the functions for decomposing the * kernel matrix using several decomposition methods. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_kernel.h" diff --git a/src/gensvm_memory.c b/src/gensvm_memory.c index 304e5d8..3c149fe 100644 --- a/src/gensvm_memory.c +++ b/src/gensvm_memory.c @@ -1,9 +1,27 @@ /** * @file gensvm_memory.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Utility functions for memory allocation * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_globals.h" // imports gensvm_memory.h diff --git a/src/gensvm_optimize.c b/src/gensvm_optimize.c index 300df40..a7172be 100644 --- a/src/gensvm_optimize.c +++ b/src/gensvm_optimize.c @@ -1,13 +1,31 @@ /** * @file gensvm_optimize.c - * @author Gertjan van den Burg - * @date August 9, 2013 + * @author G.J.J. van den Burg + * @date 2013-08-09 * @brief Main functions for training the GenSVM solution. * * @details * Contains update and loss functions used to actually find * the optimal V. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_optimize.h" diff --git a/src/gensvm_predict.c b/src/gensvm_predict.c index 8acb626..1d4c1b1 100644 --- a/src/gensvm_predict.c +++ b/src/gensvm_predict.c @@ -1,7 +1,7 @@ /** * @file gensvm_predict.c - * @author Gertjan van den Burg - * @date August 9, 2013 + * @author G.J.J. van den Burg + * @date 2013-08-09 * @brief Main functions for predicting class labels.. * * @details @@ -9,6 +9,24 @@ * and a function for calculating the predictive performance (hitrate) of * a prediction given true class labels. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_predict.h" diff --git a/src/gensvm_print.c b/src/gensvm_print.c index 596a055..93d46ee 100644 --- a/src/gensvm_print.c +++ b/src/gensvm_print.c @@ -1,13 +1,31 @@ /** * @file gensvm_print.c - * @author Gertjan van den Burg - * @date January, 2014 + * @author G.J.J. van den Burg + * @date 2014-01-07 * @brief Various print functions for printing to output streams * * @details * This file contains several utility functions for coordinating input and * output of data and model files. It also contains string functions. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_print.h" diff --git a/src/gensvm_queue.c b/src/gensvm_queue.c index 1994a54..a72a656 100644 --- a/src/gensvm_queue.c +++ b/src/gensvm_queue.c @@ -1,9 +1,27 @@ /** * @file gensvm_queue.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Functions for initializing and freeing a GenQueue * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_queue.h" diff --git a/src/gensvm_simplex.c b/src/gensvm_simplex.c index 1a853cc..c209e59 100644 --- a/src/gensvm_simplex.c +++ b/src/gensvm_simplex.c @@ -1,13 +1,31 @@ /** * @file gensvm_simplex.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Function for generating the simplex matrix * * @details * Contains the function for generating the simplex matrix for a given number * of classes. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_simplex.h" diff --git a/src/gensvm_sparse.c b/src/gensvm_sparse.c index 24f18ed..84312f9 100644 --- a/src/gensvm_sparse.c +++ b/src/gensvm_sparse.c @@ -1,9 +1,27 @@ /** * @file gensvm_sparse.c - * @author Gertjan van den Burg - * @date October 11, 2016 + * @author G.J.J. van den Burg + * @date 2016-10-11 * @brief Functions for dealing with sparse data matrices * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_sparse.h" diff --git a/src/gensvm_strutil.c b/src/gensvm_strutil.c index a05f320..c18f2d4 100644 --- a/src/gensvm_strutil.c +++ b/src/gensvm_strutil.c @@ -1,12 +1,31 @@ /** * @file gensvm_strutil.c - * @author Gertjan van den Burg - * @date January, 2014 + * @author G.J.J. van den Burg + * @date 2014-01-07 * @brief Utility functions for dealing with strings * * @details * This file contains functions for reading files, reading strings from a * format and checking start and ends of strings. + * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_strutil.h" diff --git a/src/gensvm_sv.c b/src/gensvm_sv.c index bb5c48c..fd3c1ca 100644 --- a/src/gensvm_sv.c +++ b/src/gensvm_sv.c @@ -1,13 +1,31 @@ /** * @file gensvm_sv.c - * @author Gertjan van den Burg - * @date May, 2014 + * @author G.J.J. van den Burg + * @date 2014-05-01 * @brief Calculate the number of support vectors * * @details * The function in this file can be used to calculate the number of support * vectors are left in a model. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_sv.h" diff --git a/src/gensvm_task.c b/src/gensvm_task.c index eab7d79..986bee4 100644 --- a/src/gensvm_task.c +++ b/src/gensvm_task.c @@ -1,9 +1,27 @@ /** * @file gensvm_task.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Functions for initializing and freeing a GenTask * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_task.h" diff --git a/src/gensvm_timer.c b/src/gensvm_timer.c index 18bcad6..69cd9d0 100644 --- a/src/gensvm_timer.c +++ b/src/gensvm_timer.c @@ -1,13 +1,31 @@ /** * @file gensvm_timer.c - * @author Gertjan van den Burg - * @date January, 2014 + * @author G.J.J. van den Burg + * @date 2014-01-07 * @brief Utility functions relating to time * * @details * This file contains a simple function for calculating the time in seconds * elapsed between two Timer() calls. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_timer.h" diff --git a/src/gensvm_train.c b/src/gensvm_train.c index d83613d..bc1dad7 100644 --- a/src/gensvm_train.c +++ b/src/gensvm_train.c @@ -1,9 +1,27 @@ /** * @file gensvm_train.c - * @author Gertjan van den Burg - * @date May, 2016 + * @author G.J.J. van den Burg + * @date 2016-05-01 * @brief Main function for training a GenSVM model. * + * @copyright + Copyright 2016, G.J.J. van den Burg. + + This file is part of GenSVM. + + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GenSVM is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. + */ #include "gensvm_train.h" diff --git a/src/gensvm_update.c b/src/gensvm_update.c index 59ce3a8..5a142b0 100644 --- a/src/gensvm_update.c +++ b/src/gensvm_update.c @@ -1,24 +1,26 @@ /** * @file gensvm_update.c - * @author Gertjan van den Burg + * @author G.J.J. van den Burg * @date 2016-10-14 * @brief Functions for getting an update of the majorization algorithm + * + * @copyright + Copyright 2016, G.J.J. van den Burg. - * Copyright (C) + This file is part of GenSVM. - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, + GenSVM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. */ diff --git a/src/gensvm_zv.c b/src/gensvm_zv.c index 05950ea..afa770d 100644 --- a/src/gensvm_zv.c +++ b/src/gensvm_zv.c @@ -1,6 +1,6 @@ /** * @file gensvm_zv.c - * @author Gertjan van den Burg + * @author G.J.J. van den Burg * @date 2016-10-17 * @brief Functions for computing the ZV matrix product * @@ -9,22 +9,24 @@ * computation of the loss function and for predicting class labels. Moreover, * a distinction has to be made between dense Z matrices and sparse Z * matrices, hence a seperate file is warranted. + * + * @copyright + Copyright 2016, G.J.J. van den Burg. - * Copyright (C) + This file is part of GenSVM. - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. + GenSVM is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, + GenSVM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + along with GenSVM. If not, see <http://www.gnu.org/licenses/>. */ |
