File "/raid/alex-scratch/pyenvs/py2ml/local/lib/python2.7/site-packages/c2s/c2s.py", line 362, in train
output_mask[1, window_length / 2] = True
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
I believe it happens because another library I'm using uses from __future__ import division, which makes any division return a float.
It would be a trivial fix to cast all the indexes that use division to integers, but I'm not sure if that would change the behavior in a way that matters for other functionality.
I get the following error when calling
c2s.train
:Referring to this line: https://github.com/lucastheis/c2s/blob/master/c2s/c2s.py#L362
This change seems to fix it:
I believe it happens because another library I'm using uses
from __future__ import division
, which makes any division return a float.It would be a trivial fix to cast all the indexes that use division to integers, but I'm not sure if that would change the behavior in a way that matters for other functionality.