Problem with imputation of missing data for a Bernoulli distribution

I’ve just posted a potential fix for this here. It just involves adding the lines

if isinstance(var.tag.test_value, np.ndarray):
    if len(var.tag.test_value) == 1:
        shared.type = theano.tensor.TensorType(var.dtype, (True,))

in model.py after this line.

1 Like