Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- simon@sasha:~/nn/fnc-1-baseline$ python runNets.py
- Using TensorFlow backend.
- ['x_val', 'x_train', 'embedding_matrix', 'word_index', 'y_val', 'y_train']
- Training model.
- 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.
- 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.
- 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.
- 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.
- _________________________________________________________________
- Layer (type) Output Shape Param #
- =================================================================
- embedding_2 (Embedding) (None, 4894, 300) 8362200
- _________________________________________________________________
- dense_1 (Dense) (None, 4894, 4) 1204
- =================================================================
- Total params: 8,363,404
- Trainable params: 1,204
- Non-trainable params: 8,362,200
- _________________________________________________________________
- None
- Traceback (most recent call last):
- File "runNets.py", line 95, in <module>
- model.fit(x_train, y_train, epochs=3, batch_size=64)
- File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 853, in fit
- initial_epoch=initial_epoch)
- File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1406, in fit
- batch_size=batch_size)
- File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1300, in _standardize_user_data
- exception_prefix='model target')
- File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 121, in _standardize_input_data
- str(array.shape))
- 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