Advertisement
Aaaaa988

OutputVova

Dec 8th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.73 KB | None | 0 0
  1. /usr/bin/python3.8 /home/vladimir/PycharmProjects/Lab4Neuro/main.py
  2. 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
  3. 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.
  4. [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]
  5. 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
  6. 2020-12-09 08:29:44.477983: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)
  7. 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
  8. 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
  9. To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
  10. 2020-12-09 08:29:44.500425: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 3393210000 Hz
  11. 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:
  12. 2020-12-09 08:29:44.501144: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
  13. Model: "sequential"
  14. _________________________________________________________________
  15. Layer (type) Output Shape Param #
  16. =================================================================
  17. dropout (Dropout) (None, 10000) 0
  18. _________________________________________________________________
  19. dense (Dense) (None, 50) 500050
  20. _________________________________________________________________
  21. dropout_1 (Dropout) (None, 50) 0
  22. _________________________________________________________________
  23. dense_1 (Dense) (None, 50) 2550
  24. _________________________________________________________________
  25. dropout_2 (Dropout) (None, 50) 0
  26. _________________________________________________________________
  27. dense_2 (Dense) (None, 1) 51
  28. =================================================================
  29. Total params: 502,651
  30. Trainable params: 502,651
  31. Non-trainable params: 0
  32. _________________________________________________________________
  33. 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.
  34. Epoch 1/10
  35. 64/64 [==============================] - 2s 28ms/step - loss: 0.4382 - accuracy: 0.8031 - val_loss: 0.2583 - val_accuracy: 0.8967
  36. Epoch 2/10
  37. 64/64 [==============================] - 1s 23ms/step - loss: 0.2668 - accuracy: 0.8944 - val_loss: 0.2446 - val_accuracy: 0.9020
  38. Epoch 3/10
  39. 64/64 [==============================] - 1s 23ms/step - loss: 0.2235 - accuracy: 0.9115 - val_loss: 0.2467 - val_accuracy: 0.8996
  40. Epoch 4/10
  41. 64/64 [==============================] - 1s 23ms/step - loss: 0.1925 - accuracy: 0.9235 - val_loss: 0.2594 - val_accuracy: 0.8971
  42. Epoch 5/10
  43. 64/64 [==============================] - 1s 23ms/step - loss: 0.1711 - accuracy: 0.9329 - val_loss: 0.2609 - val_accuracy: 0.8981
  44. Epoch 6/10
  45. 64/64 [==============================] - 1s 23ms/step - loss: 0.1516 - accuracy: 0.9431 - val_loss: 0.2772 - val_accuracy: 0.8957
  46. Epoch 7/10
  47. 64/64 [==============================] - 2s 23ms/step - loss: 0.1250 - accuracy: 0.9529 - val_loss: 0.2810 - val_accuracy: 0.8966
  48. Epoch 8/10
  49. 64/64 [==============================] - 2s 24ms/step - loss: 0.1139 - accuracy: 0.9575 - val_loss: 0.2990 - val_accuracy: 0.8917
  50. Epoch 9/10
  51. 64/64 [==============================] - 1s 23ms/step - loss: 0.1017 - accuracy: 0.9616 - val_loss: 0.3036 - val_accuracy: 0.8949
  52. Epoch 10/10
  53. 64/64 [==============================] - 1s 23ms/step - loss: 0.0933 - accuracy: 0.9658 - val_loss: 0.3096 - val_accuracy: 0.8945
  54. 313/313 [==============================] - 1s 2ms/step - loss: 0.3433 - accuracy: 0.8862
  55. Test Потери: 34.33%
  56. Test Точность: 88.62%
  57. Предсказание -- на самом деле
  58. 0.999955 -- 1.000000
  59. 0.000000 -- 0.000000
  60. 0.000084 -- 0.000000
  61. 1.000000 -- 1.000000
  62. 0.000172 -- 0.000000
  63. 0.172429 -- 0.000000
  64. 0.998724 -- 1.000000
  65. 0.000000 -- 0.000000
  66. 0.999990 -- 1.000000
  67. 0.165367 -- 0.000000
  68. Индексы слов согласно IMDB (первые 20шт)
  69. fawn : 34701
  70. tsukino : 52006
  71. nunnery : 52007
  72. sonja : 16816
  73. vani : 63951
  74. woods : 1408
  75. spiders : 16115
  76. hanging : 2345
  77. woody : 2289
  78. trawling : 52008
  79. hold's : 52009
  80. comically : 11307
  81. localized : 40830
  82. disobeying : 30568
  83. 'royale : 52010
  84. harpo's : 40831
  85. canet : 52011
  86. aileen : 19313
  87. acurately : 52012
  88. diplomat's : 52013
  89. rickman : 25242
  90.  
  91. Входной текст рецензии
  92.  
  93. The Shawshank Redemption is written and directed by Frank Darabont.
  94. It is an adaptation of the Stephen King novella Rita Hayworth and Shawshank Redemption.
  95. Starring Tim Robbins and Morgan Freeman, the film portrays the story of Andy Dufresne (Robbins),
  96. a banker who is sentenced to two life sentences at Shawshank State Prison for apparently murdering his wife
  97. and her lover. Andy finds it tough going but finds solace in the friendship he forms with fellow inmate
  98. Ellis Red Redding (Freeman). While things start to pick up when the warden finds Andy a
  99. prison job more befitting his talents as a banker. However, the arrival of another inmate is going
  100. to vastly change things for all of them.
  101.  
  102.  
  103. Секвенция слов из входной рецензии
  104. ['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']
  105. Длина секвенции
  106. 117
  107. Преобразованная секвенция в индексы
  108. [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]
  109. Уверенность нейросети в эмоциональности рецензии - 0.642770
  110.  
  111. Process finished with exit code 0
  112.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement