TimeSeries-GAN
TimeSeries-GAN copied to clipboard
ValueError: Expected 1D or 2D array, got 0D array instead #4
Hey, Even I am receiving the same error. can you suggest some ways to correct it?
getting the same error. Does anyone have any luck on this?
Looks like this issue is due to https://github.com/numancelik34/TimeSeries-GAN/blob/master/conv1d_gan.py#L248
The 2nd and third parameters of np.savetxt
should be the actual array to be saved. But nmn_label[i]
in line 248 is an integer, not an array.
@nahidalam edit line 248 : np.savetxt('test_cat_nc%d%d.csv' % (i,step), nmn_label[i],delimiter=',') to np.savetxt('test_cat_nc%d%d.csv' % (i,step), nmn_label[i].reshape(-1,1),delimiter=',') Hope this helps you~~
@gitwetguy I modified as suggested but still the error comes