-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexp_cifar_rates.h
More file actions
37 lines (25 loc) · 826 Bytes
/
Copy pathexp_cifar_rates.h
File metadata and controls
37 lines (25 loc) · 826 Bytes
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
#ifndef CIFAR_EXPERIMENT_RATES_H
#define CIFAR_EXPERIMENT_RATES_H
#include <vector>
#include <map>
#include "network.h"
#include "exp.h"
#include "Eigen/Dense"
class CifarRateExperiment : public Experiment {
public:
void run() override;
private:
void readCifarInput(
std::vector<std::string> &file_names,
Eigen::MatrixXf& input_buffer,
Eigen::MatrixXf& label_buffer);
void runCifar(int trial,
int dataset_size,
Eigen::MatrixXf& train_input,
Eigen::MatrixXf& train_output,
Eigen::MatrixXf& test_input,
Eigen::MatrixXf& test_output);
NetworkConfig getConfig();
std::map<std::string, std::vector<Scenario>> getScenarios(int epoch_count);
};
#endif