@@ -137,6 +137,9 @@ def forward(self, x):
137
137
return tt .log (x - a ) - tt .log (b - x )
138
138
139
139
def forward_val (self , x , point = None ):
140
+ # 2017-06-19
141
+ # the `self.a-0.` below is important for the testval to propagates
142
+ # For an explanation see pull/2328#issuecomment-309303811
140
143
a , b = draw_values ([self .a - 0. , self .b - 0. ],
141
144
point = point )
142
145
return floatX (tt .log (x - a ) - tt .log (b - x ))
@@ -166,6 +169,9 @@ def forward(self, x):
166
169
return tt .log (x - a )
167
170
168
171
def forward_val (self , x , point = None ):
172
+ # 2017-06-19
173
+ # the `self.a-0.` below is important for the testval to propagates
174
+ # For an explanation see pull/2328#issuecomment-309303811
169
175
a = draw_values ([self .a - 0. ],
170
176
point = point )[0 ]
171
177
return floatX (tt .log (x - a ))
@@ -194,6 +200,9 @@ def forward(self, x):
194
200
return tt .log (b - x )
195
201
196
202
def forward_val (self , x , point = None ):
203
+ # 2017-06-19
204
+ # the `self.b-0.` below is important for the testval to propagates
205
+ # For an explanation see pull/2328#issuecomment-309303811
197
206
b = draw_values ([self .b - 0. ],
198
207
point = point )[0 ]
199
208
return floatX (tt .log (b - x ))
0 commit comments