diff options
| author | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-11-29 18:50:34 -0500 |
|---|---|---|
| committer | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-11-29 18:50:34 -0500 |
| commit | 582ea9dade68859e3d863d80a3aeddcb10a4c368 (patch) | |
| tree | af8e010329d9f31a220ba8ffc765f686c769ed37 /simulation/vi_blocks.py | |
| parent | 7322c00eafcde38dadbf9d4f05a1572d627355bf (diff) | |
| download | cascades-582ea9dade68859e3d863d80a3aeddcb10a4c368.tar.gz | |
simple heuristic + star graph + rmse computation
Diffstat (limited to 'simulation/vi_blocks.py')
| -rw-r--r-- | simulation/vi_blocks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simulation/vi_blocks.py b/simulation/vi_blocks.py index 3f88611..58b68d3 100644 --- a/simulation/vi_blocks.py +++ b/simulation/vi_blocks.py @@ -19,9 +19,9 @@ class ClippedParams(blocks.algorithms.StepRule): def compute_step(self, parameter, previous_step): min_clipped = tsr.switch(parameter - previous_step < self.min_value, - self.min_value, previous_step) + 0, previous_step) return tsr.switch(parameter - previous_step > self.max_value, - self.max_value, min_clipped) + 0, min_clipped), [] def create_vi_model(n_nodes, n_samp=100): |
