Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Falez CSNN simulator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioInsp
Falez CSNN simulator
Commits
57b0844e
Commit
57b0844e
authored
6 years ago
by
Pierre Falez
Browse files
Options
Downloads
Patches
Plain Diff
Add wait method to experiment
parent
c4f6e48d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
apps/Mnist.cpp
+3
-1
3 additions, 1 deletion
apps/Mnist.cpp
include/Experiment.h
+1
-0
1 addition, 0 deletions
include/Experiment.h
src/Experiment.cpp
+8
-0
8 additions, 0 deletions
src/Experiment.cpp
with
12 additions
and
1 deletion
apps/Mnist.cpp
+
3
−
1
View file @
57b0844e
...
...
@@ -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
();
}
This diff is collapsed.
Click to expand it.
include/Experiment.h
+
1
−
0
View file @
57b0844e
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/Experiment.cpp
+
8
−
0
View file @
57b0844e
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment