Deep network
dataset.hpp
Go to the documentation of this file.
1#ifndef DATASET_HPP
2#define DATASET_HPP
3
4#include <cstddef>
5#include "vector.hpp"
6
7using namespace std;
8
9class Dataset{
10protected:
11 size_t train_size;
12 size_t test_size;
13 size_t x_size;
14 size_t y_size;
15public:
16 Dataset();
17 size_t get_train_size() const;
18 size_t get_test_size() const;
19 size_t get_y_size() const;
20 virtual pair<Vector,Vector> get_train(const size_t i) const=0;
21 virtual pair<Vector,Vector> get_test(const size_t i) const=0;
22};
23
24inline
26}
27
28inline size_t
30 return train_size;
31}
32
33inline size_t
35 return test_size;
36}
37
38inline size_t
40 return y_size;
41}
42
43#endif
Definition: dataset.hpp:9
virtual pair< Vector, Vector > get_test(const size_t i) const =0
Dataset()
Definition: dataset.hpp:25
size_t get_train_size() const
Definition: dataset.hpp:29
size_t get_y_size() const
Definition: dataset.hpp:39
size_t train_size
Definition: dataset.hpp:11
size_t y_size
Definition: dataset.hpp:14
size_t get_test_size() const
Definition: dataset.hpp:34
size_t test_size
Definition: dataset.hpp:12
virtual pair< Vector, Vector > get_train(const size_t i) const =0
size_t x_size
Definition: dataset.hpp:13