Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /usr/bin/python3.8 /home/vladimir/PycharmProjects/Lab4Neuro/main.py
- 2020-12-09 08:29:38.812972: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
- 2020-12-09 08:29:38.812991: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
- [1, 14, 22, 16, 43, 530, 973, 1622, 1385, 65, 458, 4468, 66, 3941, 4, 173, 36, 256, 5, 25, 100, 43, 838, 112, 50, 670, 2, 9, 35, 480, 284, 5, 150, 4, 172, 112, 167, 2, 336, 385, 39, 4, 172, 4536, 1111, 17, 546, 38, 13, 447, 4, 192, 50, 16, 6, 147, 2025, 19, 14, 22, 4, 1920, 4613, 469, 4, 22, 71, 87, 12, 16, 43, 530, 38, 76, 15, 13, 1247, 4, 22, 17, 515, 17, 12, 16, 626, 18, 2, 5, 62, 386, 12, 8, 316, 8, 106, 5, 4, 2223, 5244, 16, 480, 66, 3785, 33, 4, 130, 12, 16, 38, 619, 5, 25, 124, 51, 36, 135, 48, 25, 1415, 33, 6, 22, 12, 215, 28, 77, 52, 5, 14, 407, 16, 82, 2, 8, 4, 107, 117, 5952, 15, 256, 4, 2, 7, 3766, 5, 723, 36, 71, 43, 530, 476, 26, 400, 317, 46, 7, 4, 2, 1029, 13, 104, 88, 4, 381, 15, 297, 98, 32, 2071, 56, 26, 141, 6, 194, 7486, 18, 4, 226, 22, 21, 134, 476, 26, 480, 5, 144, 30, 5535, 18, 51, 36, 28, 224, 92, 25, 104, 4, 226, 65, 16, 38, 1334, 88, 12, 16, 283, 5, 16, 4472, 113, 103, 32, 15, 16, 5345, 19, 178, 32]
- 2020-12-09 08:29:44.477966: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
- 2020-12-09 08:29:44.477983: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
- 2020-12-09 08:29:44.477999: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (vladimir-37): /proc/driver/nvidia/version does not exist
- 2020-12-09 08:29:44.478149: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 FMA
- To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
- 2020-12-09 08:29:44.500425: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 3393210000 Hz
- 2020-12-09 08:29:44.501118: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0xb1ac520 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
- 2020-12-09 08:29:44.501144: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
- Model: "sequential"
- _________________________________________________________________
- Layer (type) Output Shape Param #
- =================================================================
- dropout (Dropout) (None, 10000) 0
- _________________________________________________________________
- dense (Dense) (None, 50) 500050
- _________________________________________________________________
- dropout_1 (Dropout) (None, 50) 0
- _________________________________________________________________
- dense_1 (Dense) (None, 50) 2550
- _________________________________________________________________
- dropout_2 (Dropout) (None, 50) 0
- _________________________________________________________________
- dense_2 (Dense) (None, 1) 51
- =================================================================
- Total params: 502,651
- Trainable params: 502,651
- Non-trainable params: 0
- _________________________________________________________________
- 2020-12-09 08:29:44.941109: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 1280000000 exceeds 10% of free system memory.
- Epoch 1/10
- 64/64 [==============================] - 2s 28ms/step - loss: 0.4382 - accuracy: 0.8031 - val_loss: 0.2583 - val_accuracy: 0.8967
- Epoch 2/10
- 64/64 [==============================] - 1s 23ms/step - loss: 0.2668 - accuracy: 0.8944 - val_loss: 0.2446 - val_accuracy: 0.9020
- Epoch 3/10
- 64/64 [==============================] - 1s 23ms/step - loss: 0.2235 - accuracy: 0.9115 - val_loss: 0.2467 - val_accuracy: 0.8996
- Epoch 4/10
- 64/64 [==============================] - 1s 23ms/step - loss: 0.1925 - accuracy: 0.9235 - val_loss: 0.2594 - val_accuracy: 0.8971
- Epoch 5/10
- 64/64 [==============================] - 1s 23ms/step - loss: 0.1711 - accuracy: 0.9329 - val_loss: 0.2609 - val_accuracy: 0.8981
- Epoch 6/10
- 64/64 [==============================] - 1s 23ms/step - loss: 0.1516 - accuracy: 0.9431 - val_loss: 0.2772 - val_accuracy: 0.8957
- Epoch 7/10
- 64/64 [==============================] - 2s 23ms/step - loss: 0.1250 - accuracy: 0.9529 - val_loss: 0.2810 - val_accuracy: 0.8966
- Epoch 8/10
- 64/64 [==============================] - 2s 24ms/step - loss: 0.1139 - accuracy: 0.9575 - val_loss: 0.2990 - val_accuracy: 0.8917
- Epoch 9/10
- 64/64 [==============================] - 1s 23ms/step - loss: 0.1017 - accuracy: 0.9616 - val_loss: 0.3036 - val_accuracy: 0.8949
- Epoch 10/10
- 64/64 [==============================] - 1s 23ms/step - loss: 0.0933 - accuracy: 0.9658 - val_loss: 0.3096 - val_accuracy: 0.8945
- 313/313 [==============================] - 1s 2ms/step - loss: 0.3433 - accuracy: 0.8862
- Test Потери: 34.33%
- Test Точность: 88.62%
- Предсказание -- на самом деле
- 0.999955 -- 1.000000
- 0.000000 -- 0.000000
- 0.000084 -- 0.000000
- 1.000000 -- 1.000000
- 0.000172 -- 0.000000
- 0.172429 -- 0.000000
- 0.998724 -- 1.000000
- 0.000000 -- 0.000000
- 0.999990 -- 1.000000
- 0.165367 -- 0.000000
- Индексы слов согласно IMDB (первые 20шт)
- fawn : 34701
- tsukino : 52006
- nunnery : 52007
- sonja : 16816
- vani : 63951
- woods : 1408
- spiders : 16115
- hanging : 2345
- woody : 2289
- trawling : 52008
- hold's : 52009
- comically : 11307
- localized : 40830
- disobeying : 30568
- 'royale : 52010
- harpo's : 40831
- canet : 52011
- aileen : 19313
- acurately : 52012
- diplomat's : 52013
- rickman : 25242
- Входной текст рецензии
- The Shawshank Redemption is written and directed by Frank Darabont.
- It is an adaptation of the Stephen King novella Rita Hayworth and Shawshank Redemption.
- Starring Tim Robbins and Morgan Freeman, the film portrays the story of Andy Dufresne (Robbins),
- a banker who is sentenced to two life sentences at Shawshank State Prison for apparently murdering his wife
- and her lover. Andy finds it tough going but finds solace in the friendship he forms with fellow inmate
- Ellis Red Redding (Freeman). While things start to pick up when the warden finds Andy a
- prison job more befitting his talents as a banker. However, the arrival of another inmate is going
- to vastly change things for all of them.
- Секвенция слов из входной рецензии
- ['the', 'shawshank', 'redemption', 'is', 'written', 'and', 'directed', 'by', 'frank', 'darabont', 'it', 'is', 'an', 'adaptation', 'of', 'the', 'stephen', 'king', 'novella', 'rita', 'hayworth', 'and', 'shawshank', 'redemption', 'starring', 'tim', 'robbins', 'and', 'morgan', 'freeman', 'the', 'film', 'portrays', 'the', 'story', 'of', 'andy', 'dufresne', 'robbins', 'a', 'banker', 'who', 'is', 'sentenced', 'to', 'two', 'life', 'sentences', 'at', 'shawshank', 'state', 'prison', 'for', 'apparently', 'murdering', 'his', 'wife', 'and', 'her', 'lover', 'andy', 'finds', 'it', 'tough', 'going', 'but', 'finds', 'solace', 'in', 'the', 'friendship', 'he', 'forms', 'with', 'fellow', 'inmate', 'ellis', 'red', 'redding', 'freeman', 'while', 'things', 'start', 'to', 'pick', 'up', 'when', 'the', 'warden', 'finds', 'andy', 'a', 'prison', 'job', 'more', 'befitting', 'his', 'talents', 'as', 'a', 'banker', 'however', 'the', 'arrival', 'of', 'another', 'inmate', 'is', 'going', 'to', 'vastly', 'change', 'things', 'for', 'all', 'of', 'them']
- Длина секвенции
- 117
- Преобразованная секвенция в индексы
- [1, 0, 3262, 6, 395, 2, 523, 31, 1262, 0, 9, 6, 32, 1250, 4, 1, 1657, 708, 0, 5588, 6724, 2, 0, 3262, 1181, 1753, 5660, 2, 2018, 2828, 1, 19, 2232, 1, 62, 4, 1795, 0, 5660, 3, 0, 34, 6, 9643, 5, 104, 110, 7173, 30, 0, 1107, 1169, 15, 681, 5327, 24, 319, 2, 38, 1458, 1795, 656, 9, 1208, 167, 18, 656, 0, 8, 1, 1859, 26, 4304, 16, 1483, 0, 0, 764, 0, 2828, 134, 180, 377, 5, 1258, 53, 51, 1, 7410, 656, 1795, 3, 1169, 289, 50, 0, 24, 1953, 14, 3, 0, 187, 1, 4788, 4, 157, 0, 6, 167, 5, 6160, 650, 180, 15, 29, 4, 95]
- Уверенность нейросети в эмоциональности рецензии - 0.642770
- Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement