From d9f1b0b16edeb59281355a855e18a8be343fc33c Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Fri, 08 Aug 2014 19:04:15 +0000 Subject: [PATCH] probably how maxpool layers should be --- src/utils.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/utils.h b/src/utils.h index 87ef428..6fe0343 100644 --- a/src/utils.h +++ b/src/utils.h @@ -13,6 +13,16 @@ list *parse_csv_line(char *line); char *copy_string(char *s); int count_fields(char *line); -double *parse_fields(char *line, int n); +float *parse_fields(char *line, int n); +void normalize_array(float *a, int n); +void scale_array(float *a, int n, float s); +void translate_array(float *a, int n, float s); +int max_index(float *a, int n); +float constrain(float a, float max); +float rand_normal(); +float rand_uniform(); +float mean_array(float *a, int n); +float variance_array(float *a, int n); +float **one_hot_encode(float *a, int n, int k); #endif -- Gitblit v1.10.0