aboutsummaryrefslogtreecommitdiff
path: root/examples/two-layers.py
diff options
context:
space:
mode:
authorvmaffione <v.maffione@gmail.com>2017-04-21 09:38:20 +0000
committervmaffione <v.maffione@gmail.com>2017-04-21 09:38:20 +0000
commit778bd3a1c3f625767c00688faa37af388a054f94 (patch)
treecec1214e3f3226c717f8b94e67661f8fac7fe36c /examples/two-layers.py
parentee2f6e5c21c0ba94048dbf1c86024e3181718fc2 (diff)
parent009c8ff7570105a79278559202fdd46616b83a92 (diff)
downloadrumba-778bd3a1c3f625767c00688faa37af388a054f94.tar.gz
rumba-778bd3a1c3f625767c00688faa37af388a054f94.zip
Merge branch 'split' into 'master'
model: Split experiment run() See merge request !37
Diffstat (limited to 'examples/two-layers.py')
-rwxr-xr-xexamples/two-layers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/two-layers.py b/examples/two-layers.py
index 9032588..fff3866 100755
--- a/examples/two-layers.py
+++ b/examples/two-layers.py
@@ -52,4 +52,8 @@ exp = rl.Experiment(tb, nodes = [a, b, c, d])
print(exp)
-exp.run()
+try:
+ exp.swap_in()
+ exp.bootstrap_prototype()
+finally:
+ exp.swap_out()