Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: too many indices for array #17

Open
shineangelic opened this issue Jul 19, 2018 · 0 comments
Open

IndexError: too many indices for array #17

shineangelic opened this issue Jul 19, 2018 · 0 comments

Comments

@shineangelic
Copy link

I could execute --trai --save under Win10, py3.5, tensorflow 1.9.0 but I understand it's not supported. I wonder if you can help me nevertheless, thank you

======================= START! ========================
data_helpers: loading positive examples...
data_helpers: [OK]
data_helpers: loading negative examples...
data_helpers: [OK]
data_helpers: cleaning strings...
data_helpers: [OK]
data_helpers: generating labels...
data_helpers: [OK]
data_helpers: concatenating labels...
data_helpers: [OK]
data_helpers: padding strings...
data_helpers: [OK]
data_helpers: building vocabulary...
data_helpers: [OK]
data_helpers: building processed datasets...
data_helpers: [OK]

Flags:

Dataset:
Train set size = 1420766
Test set size = 157862
Vocabulary size = 274562
Input layer size = 117
Number of classes = 2

Output folder: C:\Users\Ale\git\twitter-sentiment-cnn\output\run20180720-004328
2018-07-20 00:44:52.372521: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Data processing OK, creating network...
Traceback (most recent call last):
File "twitter-sentiment-cnn.py", line 292, in
test_batches = list(batch_iter(zip(x_test, y_test), FLAGS.batch_size, 1))
File "C:\Users\Ale\git\twitter-sentiment-cnn\data_helpers.py", line 185, in batch_iter
shuffled_data = data[shuffle_indices]
IndexError: too many indices for array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant