From e36182cd8c5dd5c6d0aa1f77cf5cdca87e8bb1f0 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Fri, 21 Nov 2014 23:35:19 +0000 Subject: [PATCH] cleaned up data parsing a lot. probably nothing broken? --- src/utils.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index f38af33..5ddc538 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,13 +1,16 @@ #ifndef UTILS_H #define UTILS_H #include <stdio.h> +#include <time.h> #include "list.h" +char *find_replace(char *str, char *orig, char *rep); void error(char *s); void malloc_error(); void file_error(char *s); void strip(char *s); void strip_char(char *s, char bad); +void top_k(float *a, int n, int k, int *index); list *split_str(char *s, char delim); char *fgetl(FILE *fp); list *parse_csv_line(char *line); @@ -25,5 +28,6 @@ float mean_array(float *a, int n); float variance_array(float *a, int n); float **one_hot_encode(float *a, int n, int k); +float sec(clock_t clocks); #endif -- Gitblit v1.10.0