6 #include <eigen3/Eigen/Dense>
10 std::vector<std::vector<double>> m_images;
11 std::vector<int> m_labels;
16 void load_images(std::string file,
int num=0);
17 void load_labels(std::string file,
int num=0);
22 mnist(std::string image_file, std::string label_file,
int num);
23 mnist(std::string image_file, std::string label_file);
26 int size() {
return m_size; }
27 int rows() {
return m_rows; }
28 int cols() {
return m_cols; }
30 std::vector<double>
images(
int id) {
return m_images[id]; }
31 int labels(
int id) {
return m_labels[id]; }