You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: