Created
May 7, 2017 10:34
-
-
Save manuel-delverme/0ff41923a1d4070c64f9081bf0ad351a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/python3.5 /home/awok/Documents/sapienza/s1/nlp/hw2/src/homework2.py model ../ ../resources | |
Using Theano backend. | |
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release (v0.10). Please switch to the gpuarray backend. You can get more information about how to switch at this URL: | |
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29 | |
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again. | |
model_output_path model | |
homework_dir: ../ | |
model output: model | |
homework dir: ../ | |
src dir: ../src/ | |
data dir: ../data/ | |
resource dir: ../resources | |
BORG INITD | |
BORG INITD | |
BORG: model load | |
train ../data/en-ud-train.conllu | |
Loading data... | |
load_data ../data/en-ud-train.conllu | |
cached model for ../data/en-ud-train.conllu failed | |
add_context 12543 | |
204586 train sequences | |
load_data ../data/en-ud-dev.conllu | |
cached model for ../data/en-ud-dev.conllu failed | |
add_context 2002 | |
_________________________________________________________________ | |
Layer (type) Output Shape Param # | |
================================================================= | |
bidirectional_1 (Bidirection (None, 128) 140160 | |
_________________________________________________________________ | |
dense_1 (Dense) (None, 17) 2193 | |
================================================================= | |
Total params: 142,353 | |
Trainable params: 142,353 | |
Non-trainable params: 0 | |
_________________________________________________________________ | |
None | |
Train... | |
Train on 204586 samples, validate on 25148 samples | |
Epoch 1/10 | |
204586/204586 [==============================] - 99s - loss: 0.7975 - acc: 0.7504 - val_loss: 0.4403 - val_acc: 0.8616 | |
Epoch 2/10 | |
204586/204586 [==============================] - 99s - loss: 0.4092 - acc: 0.8708 - val_loss: 0.3848 - val_acc: 0.8795 | |
Epoch 3/10 | |
204586/204586 [==============================] - 99s - loss: 0.3589 - acc: 0.8851 - val_loss: 0.3618 - val_acc: 0.8858 | |
Epoch 4/10 | |
204586/204586 [==============================] - 98s - loss: 0.3298 - acc: 0.8937 - val_loss: 0.3510 - val_acc: 0.8903 | |
Epoch 5/10 | |
204586/204586 [==============================] - 100s - loss: 0.3126 - acc: 0.8988 - val_loss: 0.3404 - val_acc: 0.8936 | |
Epoch 6/10 | |
204586/204586 [==============================] - 99s - loss: 0.2970 - acc: 0.9036 - val_loss: 0.3329 - val_acc: 0.8972 | |
Epoch 7/10 | |
204586/204586 [==============================] - 99s - loss: 0.2855 - acc: 0.9070 - val_loss: 0.3370 - val_acc: 0.8966 | |
Epoch 8/10 | |
204586/204586 [==============================] - 99s - loss: 0.2765 - acc: 0.9101 - val_loss: 0.3272 - val_acc: 0.8984 | |
Epoch 9/10 | |
204586/204586 [==============================] - 100s - loss: 0.2662 - acc: 0.9132 - val_loss: 0.3226 - val_acc: 0.8992 | |
Epoch 10/10 | |
204586/204586 [==============================] - 100s - loss: 0.2599 - acc: 0.9150 - val_loss: 0.3250 - val_acc: 0.8992 | |
dict_keys(['acc', 'val_acc', 'val_loss', 'loss']) | |
TEST 0 PASSED | |
TEST 1 PASSED | |
BORG INITD | |
results {'f1': 0.8428834766276005, 'precision': 0.8525968524840005, 'coverage': 1.0, 'recall': 0.8333889307639964} | |
TEST 2 PASSED | |
predicted ['PRON', 'VERB', 'DET', 'ADJ', 'NOUN', 'PUNCT'] | |
TEST 3 PASSED | |
{'f1': 0.8428834766276005, 'precision': 0.8525968524840005, 'coverage': 1.0, 'recall': 0.8333889307639964} | |
. PASSED | |
/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_gtk3.py:219: Warning: Source ID 8 was not found when attempting to remove it | |
GLib.source_remove(self._idle_draw_id) | |
Process finished with exit code 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment