-
Notifications
You must be signed in to change notification settings - Fork 1
/
exp_cifar.h
41 lines (29 loc) · 986 Bytes
/
exp_cifar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef CIFAR_EXPERIMENT_H
#define CIFAR_EXPERIMENT_H
#include <vector>
#include <map>
#include "exp.h"
#include "network.h"
#include "Eigen/Dense"
class CifarExperiment : public Experiment {
public:
void run() override;
private:
void readCifarInput(
const std::string& path,
Eigen::MatrixXf& input_buffer,
Eigen::MatrixXf& label_buffer,
int number_of_items = 1000,
int starting_index = 0);
void runCifar(int trial,
int dataset_size,
Eigen::MatrixXf& train_input,
Eigen::MatrixXf& train_output,
Eigen::MatrixXf& validation_input,
Eigen::MatrixXf& validation_output,
Eigen::MatrixXf& test_input,
Eigen::MatrixXf& test_output);
NetworkConfig getConfig();
std::map<std::string, std::vector<Scenario>> getScenarios(int epoch_count);
};
#endif