MichalDanielDobrzanski / DeepLearningPython

neuralnetworksanddeeplearning.com integrated scripts for Python 3.5.2 and Theano with CUDA support
MIT License
2.79k stars 1.27k forks source link

Futurewarning: Using a non-tuple sequence for multidimensional indexing is deprecated #28

Open bcd122200 opened 4 years ago

bcd122200 commented 4 years ago

When running Network3.py I go the following error: 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. yk[[region_slices[i][r[i]] for i in xrange(nd)]]) I think it is because Theano has updated since the code was written but I don't know what to change to fix the error