From 4b2a9d9569d8ea5ddfc22626bd8720e29b0be964 Mon Sep 17 00:00:00 2001 From: Joseph Redmon Date: Sun, 13 Mar 2016 23:21:38 -0700 Subject: [PATCH] weird int bug --- src/data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data.c b/src/data.c index 88e3eabc..8cd3f26d 100644 --- a/src/data.c +++ b/src/data.c @@ -871,8 +871,8 @@ void get_next_batch(data d, int n, int offset, float *X, float *y) void smooth_data(data d) { int i, j; - int scale = 1. / d.y.cols; - int eps = .1; + float scale = 1. / d.y.cols; + float eps = .1; for(i = 0; i < d.y.rows; ++i){ for(j = 0; j < d.y.cols; ++j){ d.y.vals[i][j] = eps * scale + (1-eps) * d.y.vals[i][j];