aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/src/Model_Poly.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-27 19:11:26 +0200
committerandreas128 <Andreas>2017-09-27 19:11:26 +0200
commit071088f747f5629f60b01017bdcff5161efb7ba5 (patch)
treefe93d18d886ea0225175167fa0f3ee2a9031801a /dpd/src/Model_Poly.py
parent053e29975ab5396d2127192d47bebb723b092fef (diff)
downloaddabmod-071088f747f5629f60b01017bdcff5161efb7ba5.tar.gz
dabmod-071088f747f5629f60b01017bdcff5161efb7ba5.tar.bz2
dabmod-071088f747f5629f60b01017bdcff5161efb7ba5.zip
Fix plot enable/disable
Diffstat (limited to 'dpd/src/Model_Poly.py')
-rw-r--r--dpd/src/Model_Poly.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/dpd/src/Model_Poly.py b/dpd/src/Model_Poly.py
index 78bab91..44e0483 100644
--- a/dpd/src/Model_Poly.py
+++ b/dpd/src/Model_Poly.py
@@ -44,14 +44,15 @@ class Poly:
learning_rate_am=1.0,
learning_rate_pm=1.0):
self.c = c
+ self.plot = c.MDL_plot
self.learning_rate_am = learning_rate_am
self.learning_rate_pm = learning_rate_pm
self.reset_coefs()
- self.model_am = Model_AM.Model_AM(c, plot=True)
- self.model_pm = Model_PM.Model_PM(c, plot=True)
+ self.model_am = Model_AM.Model_AM(c, plot=self.plot)
+ self.model_pm = Model_PM.Model_PM(c, plot=self.plot)
self.plot = c.MDL_plot