If you want to set the values to 0 use this:
self.y_pred *= self.y_pred < 0.7
If you want to set the values to v then use this:
mask = self.y_pred < 0.7
self.y_pred = self.y_pred * mask + (1 - mask) * v
Please make sure it works.
On Tuesday, February 28, 2017 at 3:42:41 PM UTC+1, Feras Almasri wrote:
>
> self.y_pred = T.set_subtensor(self.y_pred[self.y_pred >= 0.7], 1)
>
> Knowing that masking is not allowed in theano.
>
--
---
You received this message because you are subscribed to the Google Groups
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.