-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexperiment.h
More file actions
30 lines (24 loc) · 732 Bytes
/
experiment.h
File metadata and controls
30 lines (24 loc) · 732 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
// === experiment.h ===
#pragma once
#include "network.h"
#include "datalogger.h"
#include "config.h"
class Experiment {
private:
Config _config;
Network _network;
DataLogger _logger;
// --- Populations and Patterns ---
std::vector<NeuronId> _sensory_population;
NeuronId _decision_neuron_id;
NeuronId _inhibitory_neuron_id;
std::vector<NeuronId> _stimulus_A_pattern;
std::vector<NeuronId> _stimulus_B_pattern;
void setup_network();
void run_trial(const std::vector<NeuronId>& stimulus_pattern, NeuronId target_id, bool should_be_rewarded);
void log_all_states();
void print_weight_statistics();
public:
explicit Experiment(const Config& config);
void run();
};