TypeError: 'float' object cannot be interpreted as an integer
nilswagner opened this issue · comments
Nils Wagner commented
python3 demo.py
Traceback (most recent call last):
File "demo.py", line 21, in
data1 = np.random.randn(ndim * 4 * nsamples / 5).reshape([4 * nsamples / 5,
File "mtrand.pyx", line 1220, in numpy.random.mtrand.RandomState.randn
File "mtrand.pyx", line 1377, in numpy.random.mtrand.RandomState.standard_normal
File "_common.pyx", line 558, in numpy.random._common.cont
TypeError: 'float' object cannot be interpreted as an integer
Shubham commented
Are ndim and nsamples integers or floats?