Joseph Redmon
2013-12-03 0d6bb5d44d8e815ebf6ccce1dae2f83178780e7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef DATA_H
#define DATA_H
 
#include "image.h"
 
typedef struct{
    int n;
    image *images;
    double **truth;
} batch;
 
batch get_all_data(char *filename, char **labels, int k);
batch random_batch(char *filename, int n, char **labels, int k);
batch get_batch(char *filename, int curr, int total, char **labels, int k);
void free_batch(batch b);
 
 
#endif