Future Warning in Theano

Hi Experts

I am getting a lot of these warnings :

/Users/sorenjohansen/opt/anaconda3/envs/mcmc/lib/python3.6/site-packages/theano/tensor/basic.py:6611: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result.
result[diagonal_slice] = x

My numpy version is : β€˜1.18.1’
and theano version is : β€˜1.0.4’

Any ideas how I can get rid of them?


1 Like

Yes I answered this question here.

@junpenglao, should we add this question & answer to the FAQ? Seems to gain popularity, and the answer isn’t gonna change any time soon.

1 Like

I am not sure it is a good idea to filter out all future warning unless we can selectively filter out the theano related ones only.

1 Like

Maybe a fix in pymc-devs/Theano-pymc would be good.


Oddly enough, it seems to be fixed – see here.
Or am I mistaken?