خرید بک لینک

Vote count: 0

I'm using theano to do RNN, every sequence is a 12dimension*6timesteps data of one client's consume in last 72 months,i convert all consume value into INT type,but it occurs so many errors in format:

Epoch 1/300 Traceback (most recent call last): File "n.py", line 52, in model.fit(px_train, py_train, batch_size=100, nb_epoch=300, validation_split=0.05) File "/home/work/local/python/lib/python2.7/site-packages/keras/models.py", line 701, in fit shuffle=shuffle, metrics=metrics) File "/home/work/local/python/lib/python2.7/site-packages/keras/models.py", line 317, in _fit outs = f(ins_batch) File "/home/work/local/python/lib/python2.7/site-packages/keras/backend/theano_backend.py", line 446, in call retu self.function(*inputs) File "/home/work/local/python/lib/python2.7/site-packages/theano/compile/function_module.py", line 786, in call allow_downcast=s.allow_downcast) File "/home/work/local/python/lib/python2.7/site-packages/theano/tensor/type.py", line 116, in filter data = theano._asarray(data, dtype=self.dtype) File "/home/work/local/python/lib/python2.7/site-packages/theano/misc/safe_asarray.py", line 33, in _asarray rval = numpy.asarray(a, dtype=dtype, order=order) File "/home/work/local/python/lib/python2.7/site-packages/numpy/core/numeric.py", line 482, in asarray retu array(a, dtype, copy=False, order=order) ValueError: ('Bad input argument to theano function with name "/home/work/local/python/lib/python2.7/site-packages/keras/backend/theano_backend.py:442" at index 0(0-based)', 'invalid literal for float(): 0 0 0 0 0 0 0 0 0 0 0 0')

then I change my value all into float type, but it still has error, what should I do ?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 23 فروردين 1395 ساعت: 12:55

صفحه بندی