ermongroup / Wifi_Activity_Recognition

Code for IEEE Communication Magazine (A Survey on Behaviour Recognition Using WiFi Channle State Information)
GNU General Public License v3.0
251 stars 78 forks source link

Found input variables with inconsistent numbers of samples: [404, 400] #11

Closed noorye4 closed 5 years ago

noorye4 commented 5 years ago

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 fromfloattonp.floatingis deprecated. In future, it will be treated asnp.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

Hirokazu-Narui commented 5 years ago

Sorry for the inconvinience. Please replace this fileannotation_sankalp_sitdown_6.csv insetead of Dataset one.