From 451ef0a0a6b595bb8e4a945633659b4d31f0a372 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 20 Apr 2015 15:46:12 +0000
Subject: [PATCH] It's time, to du-du-du-du-DU-DU-DUEL!! https://www.youtube.com/watch?v=IVmtUK_1jh4
---
src/matrix.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/matrix.h b/src/matrix.h
index 098eb9e..d84431c 100644
--- a/src/matrix.h
+++ b/src/matrix.h
@@ -2,7 +2,7 @@
#define MATRIX_H
typedef struct matrix{
int rows, cols;
- double **vals;
+ float **vals;
} matrix;
matrix make_matrix(int rows, int cols);
@@ -11,9 +11,9 @@
matrix csv_to_matrix(char *filename);
matrix hold_out_matrix(matrix *m, int n);
-double matrix_accuracy(matrix truth, matrix guess);
+float matrix_topk_accuracy(matrix truth, matrix guess, int k);
void matrix_add_matrix(matrix from, matrix to);
-double *pop_column(matrix *m, int c);
+float *pop_column(matrix *m, int c);
#endif
--
Gitblit v1.10.0