darknet/src/data.h

25 lines
700 B
C
Raw Normal View History

2013-11-13 22:50:38 +04:00
#ifndef DATA_H
#define DATA_H
2013-12-07 01:26:09 +04:00
#include "matrix.h"
2013-11-13 22:50:38 +04:00
typedef struct{
2013-12-07 01:26:09 +04:00
matrix X;
matrix y;
int shallow;
} data;
2013-11-13 22:50:38 +04:00
2013-12-07 01:26:09 +04:00
data load_data_image_pathfile(char *filename, char **labels, int k);
void free_data(data d);
data load_data_image_pathfile(char *filename, char **labels, int k);
data load_data_image_pathfile_part(char *filename, int part, int total,
char **labels, int k);
data load_data_image_pathfile_random(char *filename, int n, char **labels, int k);
data load_categorical_data_csv(char *filename, int target, int k);
void normalize_data_rows(data d);
void randomize_data(data d);
data *cv_split_data(data d, int part, int total);
2013-11-13 22:50:38 +04:00
#endif