Found input variables with inconsistent numbers of samples: [404, 400]
noorye4 opened this issue · 1 comments
I execute "cross_vali_recurrent_network_wifi_activity.py" and I got some error
λ python cross_vali_recurrent_network_wifi_activity.py C:\Users\ks812\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from
floatto
np.floatingis deprecated. In future, it will be treated as
np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
WARNING:tensorflow:From cross_vali_recurrent_network_wifi_activity.py:79: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.
See @{tf.nn.softmax_cross_entropy_with_logits_v2}.
csv file importing...
bed finished... xx= (657, 500, 90) yy= (657, 8)
fall finished... xx= (443, 500, 90) yy= (443, 8)
pickup finished... xx= (495, 500, 90) yy= (495, 8)
run finished... xx= (1209, 500, 90) yy= (1209, 8)
sitdown finished... xx= (404, 500, 90) yy= (400, 8)
standup finished... xx= (304, 500, 90) yy= (304, 8)
walk finished... xx= (1465, 500, 90) yy= (1465, 8)
bed = 657 fall= 443 pickup = 495 run= 1209 sitdown= 404 standup= 304 walk= 1465
Traceback (most recent call last):
File "cross_vali_recurrent_network_wifi_activity.py", line 102, in
x_sitdown, y_sitdown = shuffle(x_sitdown, y_sitdown, random_state=0)
File "C:\Users\ks812\Anaconda3\lib\site-packages\sklearn\utils_init_.py", line 343, in shuffle
return resample(*arrays, **options)
File "C:\Users\ks812\Anaconda3\lib\site-packages\sklearn\utils_init_.py", line 258, in resample
check_consistent_length(*arrays)
File "C:\Users\ks812\Anaconda3\lib\site-packages\sklearn\utils\validation.py", line 204, in check_consistent_length
" samples: %r" % [int(l) for l in lengths])
ValueError: Found input variables with inconsistent numbers of samples: [404, 400]`
My Tensorflow (GPU) version is 1.10.0
Sorry for the inconvinience.
Please replace this fileannotation_sankalp_sitdown_6.csv insetead of Dataset one.