From 7c8a5e4b2a7cff7573b1a308daf19d2dbd558a9c Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 9 May 2016 20:55:24 +0200 Subject: strip whitespaces --- include/gensvm.h | 16 ++++++++-------- include/gensvm_io.h | 2 +- include/gensvm_kernel.h | 2 +- include/gensvm_lapack.h | 4 ++-- include/gensvm_train_dataset.h | 6 +++--- include/gensvm_util.h | 2 +- include/globals.h | 6 +++--- include/libGenSVM.h | 6 +++--- include/types.h | 2 +- 9 files changed, 23 insertions(+), 23 deletions(-) (limited to 'include') diff --git a/include/gensvm.h b/include/gensvm.h index 5101b41..ef85157 100644 --- a/include/gensvm.h +++ b/include/gensvm.h @@ -31,7 +31,7 @@ struct GenModel { double epsilon; ///< stopping criterion for the IM algorithm. double p; - ///< parameter for the L-p norm in the loss function + ///< parameter for the L-p norm in the loss function double kappa; ///< parameter for the Huber hinge function double lambda; @@ -51,16 +51,16 @@ struct GenModel { ///< 3D simplex difference matrix double *Q; ///< error matrix - double *H; + double *H; ///< Huber weighted error matrix double *R; - ///< 0-1 auixiliary matrix, this matrix is n x K, with for row i a 0 on + ///< 0-1 auixiliary matrix, this matrix is n x K, with for row i a 0 on ///< column y[i]-1, and 1 everywhere else. - double *rho; + double *rho; ///< vector of instance weights double training_error; ///< loss function value after training has finished - char *data_file; + char *data_file; ///< filename of the data KernelType kerneltype; ///< type of kernel used in the model @@ -94,13 +94,13 @@ struct GenData { long *y; ///< array of class labels, 1..K double *Z; - ///< augmented data matrix (either equal to RAW or to the eigenvectors + ///< augmented data matrix (either equal to RAW or to the eigenvectors ///< of the kernel matrix) double *RAW; ///< augmented raw data matrix double *Sigma; - KernelType kerneltype; - double *kernelparam; + KernelType kerneltype; + double *kernelparam; }; #endif diff --git a/include/gensvm_io.h b/include/gensvm_io.h index 35b6a5a..73c24bd 100644 --- a/include/gensvm_io.h +++ b/include/gensvm_io.h @@ -24,7 +24,7 @@ void gensvm_read_data(struct GenData *dataset, char *data_file); void gensvm_read_model(struct GenModel *model, char *model_filename); void gensvm_write_model(struct GenModel *model, char *output_filename); -void gensvm_write_predictions(struct GenData *data, long *predy, +void gensvm_write_predictions(struct GenData *data, long *predy, char *output_filename); #endif diff --git a/include/gensvm_kernel.h b/include/gensvm_kernel.h index d5c5e8d..d01eb88 100644 --- a/include/gensvm_kernel.h +++ b/include/gensvm_kernel.h @@ -6,7 +6,7 @@ * * @details * Contains function declarations for computing the kernel matrix - * in nonlinear MSVMGen. Additional kernel functions should be + * in nonlinear MSVMGen. Additional kernel functions should be * included here and in gensvm_kernel.c * */ diff --git a/include/gensvm_lapack.h b/include/gensvm_lapack.h index 7ac4fc9..a664cba 100644 --- a/include/gensvm_lapack.h +++ b/include/gensvm_lapack.h @@ -3,9 +3,9 @@ * @author Gertjan van den Burg * @date August, 2013 * @brief Header file for gensvm_lapack.c - * + * * @details - * Function declarations for external LAPACK functions + * Function declarations for external LAPACK functions * */ diff --git a/include/gensvm_train_dataset.h b/include/gensvm_train_dataset.h index 16f8e07..c743bd7 100644 --- a/include/gensvm_train_dataset.h +++ b/include/gensvm_train_dataset.h @@ -74,8 +74,8 @@ struct Queue { * * @param traintype type of training to use * @param kerneltype type of kernel to use throughout training - * @param repeats number of repeats to be done after the grid - * search to find the parameter set with the + * @param repeats number of repeats to be done after the grid + * search to find the parameter set with the * most consistent high performance * @param folds number of folds in cross validation * @param Np size of the array of p values @@ -87,7 +87,7 @@ struct Queue { * @param Nc size of the array of coef values * @param Nd size of the array of degree values * @param *weight_idxs array of weight_idxs - * @param *ps array of p values + * @param *ps array of p values * @param *lambdas array of lambda values * @param *kappas array of kappa values * @param *epsilons array of epsilon values diff --git a/include/gensvm_util.h b/include/gensvm_util.h index fe8d2a3..18aa553 100644 --- a/include/gensvm_util.h +++ b/include/gensvm_util.h @@ -3,7 +3,7 @@ * @author Gertjan van den Burg * @date August, 2013 * @brief Header file for util.c - * + * * @details * Function declarations for utility functions of the program. * diff --git a/include/globals.h b/include/globals.h index 46cc3d2..dfd65ad 100644 --- a/include/globals.h +++ b/include/globals.h @@ -8,10 +8,10 @@ * This header file contains defines and includes which are used in many * parts of the program. Most notable are the Calloc, Malloc and Memset * defines, which are commonly used to allocate memory. These functions - * are shorthands for their lowercase counterparts. + * are shorthands for their lowercase counterparts. * - * Furthermore, a maximum and minimum function are defined here. These - * functions have their own include guards, to ensure potential linked + * Furthermore, a maximum and minimum function are defined here. These + * functions have their own include guards, to ensure potential linked * libraries don't conflict with these definitions. * */ diff --git a/include/libGenSVM.h b/include/libGenSVM.h index cfa2815..dbf0903 100644 --- a/include/libGenSVM.h +++ b/include/libGenSVM.h @@ -11,16 +11,16 @@ */ /** - * @todo + * @todo * rename this file and libGenSVM.c to correspond with the lowercase convention. * Also change the name of the include guard. - */ + */ #ifndef LIBGENSVM_H #define LIBGENSVM_H #include "globals.h" -// forward declarations +// forward declarations struct GenData; struct GenModel; diff --git a/include/types.h b/include/types.h index 1cbcba0..329401a 100644 --- a/include/types.h +++ b/include/types.h @@ -4,7 +4,7 @@ * @date August, 2013 * @brief Definitions of common types * - * @details + * @details * Here common types used throughout the program are defined. * */ -- cgit v1.2.3