Neuro/gui/NeuroUI/mnistloader.h

23 lines
462 B
C
Raw Normal View History

#ifndef MNISTLOADER_H
#define MNISTLOADER_H
#include <string>
2015-10-29 15:00:58 +00:00
#include <inttypes.h>
class MnistLoader
{
public:
MnistLoader();
void load(const std::string &databaseFileName, const std::string &labelsFileName);
2015-10-29 15:00:58 +00:00
private:
void loadDatabase(const std::string &fileName);
void loadLabels(const std::string &fileName);
static int8_t readInt8(std::ifstream &file);
static int32_t readInt32(std::ifstream &file);
};
#endif // MNISTLOADER_H