From 1d53b6414e0cd81043d7c76aa89f4f97da5e479f Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Thu, 23 Jan 2014 19:24:37 +0000 Subject: [PATCH] Stable on MNIST, about to change a lot --- src/utils.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index 87ef428..cf38016 100644 --- a/src/utils.h +++ b/src/utils.h @@ -14,5 +14,14 @@ char *copy_string(char *s); int count_fields(char *line); double *parse_fields(char *line, int n); +void normalize_array(double *a, int n); +void scale_array(double *a, int n, double s); +void translate_array(double *a, int n, double s); +int max_index(double *a, int n); +double constrain(double a, double max); +double rand_normal(); +double mean_array(double *a, int n); +double variance_array(double *a, int n); +double **one_hot_encode(double *a, int n, int k); #endif -- Gitblit v1.10.0