Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.31 KB | None | 0 0
  1. simon@sasha:~/nn/fnc-1-baseline$ python runNets.py
  2. Using TensorFlow backend.
  3. ['x_val', 'x_train', 'embedding_matrix', 'word_index', 'y_val', 'y_train']
  4. Training model.
  5. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
  6. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
  7. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
  8. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
  9. _________________________________________________________________
  10. Layer (type)                 Output Shape              Param #  
  11. =================================================================
  12. embedding_2 (Embedding)      (None, 4894, 300)         8362200  
  13. _________________________________________________________________
  14. dense_1 (Dense)              (None, 4894, 4)           1204      
  15. =================================================================
  16. Total params: 8,363,404
  17. Trainable params: 1,204
  18. Non-trainable params: 8,362,200
  19. _________________________________________________________________
  20. None
  21. Traceback (most recent call last):
  22.   File "runNets.py", line 95, in <module>
  23.     model.fit(x_train, y_train, epochs=3, batch_size=64)
  24.   File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 853, in fit
  25.     initial_epoch=initial_epoch)
  26.   File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1406, in fit
  27.     batch_size=batch_size)
  28.   File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1300, in _standardize_user_data
  29.     exception_prefix='model target')
  30.   File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 121, in _standardize_input_data
  31.     str(array.shape))
  32. ValueError: Error when checking model target: expected dense_1 to have 3 dimensions, but got array with shape (44975, 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement