Skip to content
Snippets Groups Projects
Commit 57b0844e authored by Pierre Falez's avatar Pierre Falez
Browse files

Add wait method to experiment

parent c4f6e48d
Branches
No related tags found
No related merge requests found
......@@ -96,9 +96,11 @@ int main(int argc, char** argv) {
auto& fc1_out = experiment.template output<TimeObjectiveOutput>(fc1, t_obj);
fc1_out.template add_postprocessing<process::FeatureScaling>();
fc1_out.template add_analysis<analysis::Activity>();
fc1_out.template add_analysis<analysis::Coherence>();
//fc1_out.template add_analysis<analysis::Coherence>();
fc1_out.template add_analysis<analysis::Svm>();
experiment.run(10000);
return experiment.wait();
}
......@@ -89,6 +89,7 @@ public:
void initialize(const Shape& input_shape);
void run(size_t refresh_interval = 1);
int wait();
void tick(size_t current_layer_index, size_t sample_count);
void refresh(size_t current_layer_index);
......
......@@ -288,6 +288,14 @@ void AbstractExperiment::run(size_t refresh_interval) {
}
int AbstractExperiment::wait() {
#ifdef DISPLAY_PLOT
return _app->exec();
#else
return 0;
#endif
}
#ifdef DISPLAY_PLOT
void AbstractExperiment::tick(size_t current_layer_index, size_t sample_count) {
for(auto& p : _plots) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment