folding_winequality-red-4.log 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. ///////////////////////////////////////////
  2. // Running convGAN-full on folding_winequality-red-4
  3. ///////////////////////////////////////////
  4. Load 'data_input/folding_winequality-red-4'
  5. from pickle file
  6. Data loaded.
  7. -> Shuffling data
  8. ### Start exercise for synthetic point generator
  9. ====== Step 1/5 =======
  10. -> Shuffling data
  11. -> Spliting data to slices
  12. ------ Step 1/5: Slice 1/5 -------
  13. -> Reset the GAN
  14. -> Train generator for synthetic samples
  15. -> create 1194 synthetic samples
  16. -> test with 'LR'
  17. LR tn, fp: 214, 96
  18. LR fn, tp: 5, 6
  19. LR f1 score: 0.106
  20. LR cohens kappa score: 0.047
  21. LR average precision score: 0.133
  22. -> test with 'GB'
  23. GB tn, fp: 295, 15
  24. GB fn, tp: 9, 2
  25. GB f1 score: 0.143
  26. GB cohens kappa score: 0.106
  27. -> test with 'KNN'
  28. KNN tn, fp: 204, 106
  29. KNN fn, tp: 7, 4
  30. KNN f1 score: 0.066
  31. KNN cohens kappa score: 0.004
  32. ------ Step 1/5: Slice 2/5 -------
  33. -> Reset the GAN
  34. -> Train generator for synthetic samples
  35. -> create 1194 synthetic samples
  36. -> test with 'LR'
  37. LR tn, fp: 222, 88
  38. LR fn, tp: 4, 7
  39. LR f1 score: 0.132
  40. LR cohens kappa score: 0.075
  41. LR average precision score: 0.119
  42. -> test with 'GB'
  43. GB tn, fp: 292, 18
  44. GB fn, tp: 7, 4
  45. GB f1 score: 0.242
  46. GB cohens kappa score: 0.206
  47. -> test with 'KNN'
  48. KNN tn, fp: 228, 82
  49. KNN fn, tp: 5, 6
  50. KNN f1 score: 0.121
  51. KNN cohens kappa score: 0.064
  52. ------ Step 1/5: Slice 3/5 -------
  53. -> Reset the GAN
  54. -> Train generator for synthetic samples
  55. -> create 1194 synthetic samples
  56. -> test with 'LR'
  57. LR tn, fp: 198, 112
  58. LR fn, tp: 1, 10
  59. LR f1 score: 0.150
  60. LR cohens kappa score: 0.093
  61. LR average precision score: 0.261
  62. -> test with 'GB'
  63. GB tn, fp: 289, 21
  64. GB fn, tp: 6, 5
  65. GB f1 score: 0.270
  66. GB cohens kappa score: 0.233
  67. -> test with 'KNN'
  68. KNN tn, fp: 204, 106
  69. KNN fn, tp: 7, 4
  70. KNN f1 score: 0.066
  71. KNN cohens kappa score: 0.004
  72. ------ Step 1/5: Slice 4/5 -------
  73. -> Reset the GAN
  74. -> Train generator for synthetic samples
  75. -> create 1194 synthetic samples
  76. -> test with 'LR'
  77. LR tn, fp: 248, 62
  78. LR fn, tp: 5, 6
  79. LR f1 score: 0.152
  80. LR cohens kappa score: 0.099
  81. LR average precision score: 0.148
  82. -> test with 'GB'
  83. GB tn, fp: 292, 18
  84. GB fn, tp: 11, 0
  85. GB f1 score: 0.000
  86. GB cohens kappa score: -0.044
  87. -> test with 'KNN'
  88. KNN tn, fp: 231, 79
  89. KNN fn, tp: 9, 2
  90. KNN f1 score: 0.043
  91. KNN cohens kappa score: -0.018
  92. ------ Step 1/5: Slice 5/5 -------
  93. -> Reset the GAN
  94. -> Train generator for synthetic samples
  95. -> create 1196 synthetic samples
  96. -> test with 'LR'
  97. LR tn, fp: 224, 82
  98. LR fn, tp: 4, 5
  99. LR f1 score: 0.104
  100. LR cohens kappa score: 0.055
  101. LR average precision score: 0.213
  102. -> test with 'GB'
  103. GB tn, fp: 294, 12
  104. GB fn, tp: 9, 0
  105. GB f1 score: 0.000
  106. GB cohens kappa score: -0.034
  107. -> test with 'KNN'
  108. KNN tn, fp: 230, 76
  109. KNN fn, tp: 8, 1
  110. KNN f1 score: 0.023
  111. KNN cohens kappa score: -0.029
  112. ====== Step 2/5 =======
  113. -> Shuffling data
  114. -> Spliting data to slices
  115. ------ Step 2/5: Slice 1/5 -------
  116. -> Reset the GAN
  117. -> Train generator for synthetic samples
  118. -> create 1194 synthetic samples
  119. -> test with 'LR'
  120. LR tn, fp: 215, 95
  121. LR fn, tp: 3, 8
  122. LR f1 score: 0.140
  123. LR cohens kappa score: 0.084
  124. LR average precision score: 0.128
  125. -> test with 'GB'
  126. GB tn, fp: 292, 18
  127. GB fn, tp: 8, 3
  128. GB f1 score: 0.187
  129. GB cohens kappa score: 0.149
  130. -> test with 'KNN'
  131. KNN tn, fp: 219, 91
  132. KNN fn, tp: 6, 5
  133. KNN f1 score: 0.093
  134. KNN cohens kappa score: 0.034
  135. ------ Step 2/5: Slice 2/5 -------
  136. -> Reset the GAN
  137. -> Train generator for synthetic samples
  138. -> create 1194 synthetic samples
  139. -> test with 'LR'
  140. LR tn, fp: 217, 93
  141. LR fn, tp: 3, 8
  142. LR f1 score: 0.143
  143. LR cohens kappa score: 0.086
  144. LR average precision score: 0.132
  145. -> test with 'GB'
  146. GB tn, fp: 298, 12
  147. GB fn, tp: 10, 1
  148. GB f1 score: 0.083
  149. GB cohens kappa score: 0.048
  150. -> test with 'KNN'
  151. KNN tn, fp: 228, 82
  152. KNN fn, tp: 8, 3
  153. KNN f1 score: 0.062
  154. KNN cohens kappa score: 0.002
  155. ------ Step 2/5: Slice 3/5 -------
  156. -> Reset the GAN
  157. -> Train generator for synthetic samples
  158. -> create 1194 synthetic samples
  159. -> test with 'LR'
  160. LR tn, fp: 224, 86
  161. LR fn, tp: 3, 8
  162. LR f1 score: 0.152
  163. LR cohens kappa score: 0.097
  164. LR average precision score: 0.177
  165. -> test with 'GB'
  166. GB tn, fp: 287, 23
  167. GB fn, tp: 9, 2
  168. GB f1 score: 0.111
  169. GB cohens kappa score: 0.067
  170. -> test with 'KNN'
  171. KNN tn, fp: 223, 87
  172. KNN fn, tp: 8, 3
  173. KNN f1 score: 0.059
  174. KNN cohens kappa score: -0.002
  175. ------ Step 2/5: Slice 4/5 -------
  176. -> Reset the GAN
  177. -> Train generator for synthetic samples
  178. -> create 1194 synthetic samples
  179. -> test with 'LR'
  180. LR tn, fp: 233, 77
  181. LR fn, tp: 5, 6
  182. LR f1 score: 0.128
  183. LR cohens kappa score: 0.071
  184. LR average precision score: 0.269
  185. -> test with 'GB'
  186. GB tn, fp: 298, 12
  187. GB fn, tp: 9, 2
  188. GB f1 score: 0.160
  189. GB cohens kappa score: 0.126
  190. -> test with 'KNN'
  191. KNN tn, fp: 218, 92
  192. KNN fn, tp: 8, 3
  193. KNN f1 score: 0.057
  194. KNN cohens kappa score: -0.005
  195. ------ Step 2/5: Slice 5/5 -------
  196. -> Reset the GAN
  197. -> Train generator for synthetic samples
  198. -> create 1196 synthetic samples
  199. -> test with 'LR'
  200. LR tn, fp: 228, 78
  201. LR fn, tp: 3, 6
  202. LR f1 score: 0.129
  203. LR cohens kappa score: 0.082
  204. LR average precision score: 0.108
  205. -> test with 'GB'
  206. GB tn, fp: 289, 17
  207. GB fn, tp: 7, 2
  208. GB f1 score: 0.143
  209. GB cohens kappa score: 0.108
  210. -> test with 'KNN'
  211. KNN tn, fp: 222, 84
  212. KNN fn, tp: 6, 3
  213. KNN f1 score: 0.062
  214. KNN cohens kappa score: 0.011
  215. ====== Step 3/5 =======
  216. -> Shuffling data
  217. -> Spliting data to slices
  218. ------ Step 3/5: Slice 1/5 -------
  219. -> Reset the GAN
  220. -> Train generator for synthetic samples
  221. -> create 1194 synthetic samples
  222. -> test with 'LR'
  223. LR tn, fp: 233, 77
  224. LR fn, tp: 5, 6
  225. LR f1 score: 0.128
  226. LR cohens kappa score: 0.071
  227. LR average precision score: 0.171
  228. -> test with 'GB'
  229. GB tn, fp: 296, 14
  230. GB fn, tp: 9, 2
  231. GB f1 score: 0.148
  232. GB cohens kappa score: 0.112
  233. -> test with 'KNN'
  234. KNN tn, fp: 216, 94
  235. KNN fn, tp: 7, 4
  236. KNN f1 score: 0.073
  237. KNN cohens kappa score: 0.013
  238. ------ Step 3/5: Slice 2/5 -------
  239. -> Reset the GAN
  240. -> Train generator for synthetic samples
  241. -> create 1194 synthetic samples
  242. -> test with 'LR'
  243. LR tn, fp: 214, 96
  244. LR fn, tp: 2, 9
  245. LR f1 score: 0.155
  246. LR cohens kappa score: 0.099
  247. LR average precision score: 0.254
  248. -> test with 'GB'
  249. GB tn, fp: 288, 22
  250. GB fn, tp: 9, 2
  251. GB f1 score: 0.114
  252. GB cohens kappa score: 0.071
  253. -> test with 'KNN'
  254. KNN tn, fp: 230, 80
  255. KNN fn, tp: 8, 3
  256. KNN f1 score: 0.064
  257. KNN cohens kappa score: 0.004
  258. ------ Step 3/5: Slice 3/5 -------
  259. -> Reset the GAN
  260. -> Train generator for synthetic samples
  261. -> create 1194 synthetic samples
  262. -> test with 'LR'
  263. LR tn, fp: 219, 91
  264. LR fn, tp: 5, 6
  265. LR f1 score: 0.111
  266. LR cohens kappa score: 0.053
  267. LR average precision score: 0.069
  268. -> test with 'GB'
  269. GB tn, fp: 289, 21
  270. GB fn, tp: 10, 1
  271. GB f1 score: 0.061
  272. GB cohens kappa score: 0.016
  273. -> test with 'KNN'
  274. KNN tn, fp: 211, 99
  275. KNN fn, tp: 6, 5
  276. KNN f1 score: 0.087
  277. KNN cohens kappa score: 0.027
  278. ------ Step 3/5: Slice 4/5 -------
  279. -> Reset the GAN
  280. -> Train generator for synthetic samples
  281. -> create 1194 synthetic samples
  282. -> test with 'LR'
  283. LR tn, fp: 212, 98
  284. LR fn, tp: 2, 9
  285. LR f1 score: 0.153
  286. LR cohens kappa score: 0.096
  287. LR average precision score: 0.193
  288. -> test with 'GB'
  289. GB tn, fp: 289, 21
  290. GB fn, tp: 10, 1
  291. GB f1 score: 0.061
  292. GB cohens kappa score: 0.016
  293. -> test with 'KNN'
  294. KNN tn, fp: 228, 82
  295. KNN fn, tp: 5, 6
  296. KNN f1 score: 0.121
  297. KNN cohens kappa score: 0.064
  298. ------ Step 3/5: Slice 5/5 -------
  299. -> Reset the GAN
  300. -> Train generator for synthetic samples
  301. -> create 1196 synthetic samples
  302. -> test with 'LR'
  303. LR tn, fp: 231, 75
  304. LR fn, tp: 3, 6
  305. LR f1 score: 0.133
  306. LR cohens kappa score: 0.086
  307. LR average precision score: 0.093
  308. -> test with 'GB'
  309. GB tn, fp: 293, 13
  310. GB fn, tp: 7, 2
  311. GB f1 score: 0.167
  312. GB cohens kappa score: 0.136
  313. -> test with 'KNN'
  314. KNN tn, fp: 229, 77
  315. KNN fn, tp: 7, 2
  316. KNN f1 score: 0.045
  317. KNN cohens kappa score: -0.006
  318. ====== Step 4/5 =======
  319. -> Shuffling data
  320. -> Spliting data to slices
  321. ------ Step 4/5: Slice 1/5 -------
  322. -> Reset the GAN
  323. -> Train generator for synthetic samples
  324. -> create 1194 synthetic samples
  325. -> test with 'LR'
  326. LR tn, fp: 225, 85
  327. LR fn, tp: 3, 8
  328. LR f1 score: 0.154
  329. LR cohens kappa score: 0.099
  330. LR average precision score: 0.380
  331. -> test with 'GB'
  332. GB tn, fp: 298, 12
  333. GB fn, tp: 10, 1
  334. GB f1 score: 0.083
  335. GB cohens kappa score: 0.048
  336. -> test with 'KNN'
  337. KNN tn, fp: 236, 74
  338. KNN fn, tp: 9, 2
  339. KNN f1 score: 0.046
  340. KNN cohens kappa score: -0.015
  341. ------ Step 4/5: Slice 2/5 -------
  342. -> Reset the GAN
  343. -> Train generator for synthetic samples
  344. -> create 1194 synthetic samples
  345. -> test with 'LR'
  346. LR tn, fp: 215, 95
  347. LR fn, tp: 3, 8
  348. LR f1 score: 0.140
  349. LR cohens kappa score: 0.084
  350. LR average precision score: 0.174
  351. -> test with 'GB'
  352. GB tn, fp: 291, 19
  353. GB fn, tp: 10, 1
  354. GB f1 score: 0.065
  355. GB cohens kappa score: 0.021
  356. -> test with 'KNN'
  357. KNN tn, fp: 215, 95
  358. KNN fn, tp: 9, 2
  359. KNN f1 score: 0.037
  360. KNN cohens kappa score: -0.026
  361. ------ Step 4/5: Slice 3/5 -------
  362. -> Reset the GAN
  363. -> Train generator for synthetic samples
  364. -> create 1194 synthetic samples
  365. -> test with 'LR'
  366. LR tn, fp: 229, 81
  367. LR fn, tp: 5, 6
  368. LR f1 score: 0.122
  369. LR cohens kappa score: 0.066
  370. LR average precision score: 0.109
  371. -> test with 'GB'
  372. GB tn, fp: 291, 19
  373. GB fn, tp: 9, 2
  374. GB f1 score: 0.125
  375. GB cohens kappa score: 0.084
  376. -> test with 'KNN'
  377. KNN tn, fp: 231, 79
  378. KNN fn, tp: 8, 3
  379. KNN f1 score: 0.065
  380. KNN cohens kappa score: 0.004
  381. ------ Step 4/5: Slice 4/5 -------
  382. -> Reset the GAN
  383. -> Train generator for synthetic samples
  384. -> create 1194 synthetic samples
  385. -> test with 'LR'
  386. LR tn, fp: 214, 96
  387. LR fn, tp: 1, 10
  388. LR f1 score: 0.171
  389. LR cohens kappa score: 0.116
  390. LR average precision score: 0.152
  391. -> test with 'GB'
  392. GB tn, fp: 293, 17
  393. GB fn, tp: 9, 2
  394. GB f1 score: 0.133
  395. GB cohens kappa score: 0.094
  396. -> test with 'KNN'
  397. KNN tn, fp: 215, 95
  398. KNN fn, tp: 8, 3
  399. KNN f1 score: 0.055
  400. KNN cohens kappa score: -0.007
  401. ------ Step 4/5: Slice 5/5 -------
  402. -> Reset the GAN
  403. -> Train generator for synthetic samples
  404. -> create 1196 synthetic samples
  405. -> test with 'LR'
  406. LR tn, fp: 212, 94
  407. LR fn, tp: 6, 3
  408. LR f1 score: 0.057
  409. LR cohens kappa score: 0.005
  410. LR average precision score: 0.070
  411. -> test with 'GB'
  412. GB tn, fp: 281, 25
  413. GB fn, tp: 8, 1
  414. GB f1 score: 0.057
  415. GB cohens kappa score: 0.015
  416. -> test with 'KNN'
  417. KNN tn, fp: 238, 68
  418. KNN fn, tp: 7, 2
  419. KNN f1 score: 0.051
  420. KNN cohens kappa score: 0.000
  421. ====== Step 5/5 =======
  422. -> Shuffling data
  423. -> Spliting data to slices
  424. ------ Step 5/5: Slice 1/5 -------
  425. -> Reset the GAN
  426. -> Train generator for synthetic samples
  427. -> create 1194 synthetic samples
  428. -> test with 'LR'
  429. LR tn, fp: 232, 78
  430. LR fn, tp: 5, 6
  431. LR f1 score: 0.126
  432. LR cohens kappa score: 0.070
  433. LR average precision score: 0.073
  434. -> test with 'GB'
  435. GB tn, fp: 295, 15
  436. GB fn, tp: 9, 2
  437. GB f1 score: 0.143
  438. GB cohens kappa score: 0.106
  439. -> test with 'KNN'
  440. KNN tn, fp: 227, 83
  441. KNN fn, tp: 7, 4
  442. KNN f1 score: 0.082
  443. KNN cohens kappa score: 0.022
  444. ------ Step 5/5: Slice 2/5 -------
  445. -> Reset the GAN
  446. -> Train generator for synthetic samples
  447. -> create 1194 synthetic samples
  448. -> test with 'LR'
  449. LR tn, fp: 228, 82
  450. LR fn, tp: 6, 5
  451. LR f1 score: 0.102
  452. LR cohens kappa score: 0.044
  453. LR average precision score: 0.106
  454. -> test with 'GB'
  455. GB tn, fp: 289, 21
  456. GB fn, tp: 9, 2
  457. GB f1 score: 0.118
  458. GB cohens kappa score: 0.075
  459. -> test with 'KNN'
  460. KNN tn, fp: 228, 82
  461. KNN fn, tp: 7, 4
  462. KNN f1 score: 0.082
  463. KNN cohens kappa score: 0.023
  464. ------ Step 5/5: Slice 3/5 -------
  465. -> Reset the GAN
  466. -> Train generator for synthetic samples
  467. -> create 1194 synthetic samples
  468. -> test with 'LR'
  469. LR tn, fp: 203, 107
  470. LR fn, tp: 0, 11
  471. LR f1 score: 0.171
  472. LR cohens kappa score: 0.115
  473. LR average precision score: 0.275
  474. -> test with 'GB'
  475. GB tn, fp: 281, 29
  476. GB fn, tp: 9, 2
  477. GB f1 score: 0.095
  478. GB cohens kappa score: 0.047
  479. -> test with 'KNN'
  480. KNN tn, fp: 220, 90
  481. KNN fn, tp: 7, 4
  482. KNN f1 score: 0.076
  483. KNN cohens kappa score: 0.016
  484. ------ Step 5/5: Slice 4/5 -------
  485. -> Reset the GAN
  486. -> Train generator for synthetic samples
  487. -> create 1194 synthetic samples
  488. -> test with 'LR'
  489. LR tn, fp: 221, 89
  490. LR fn, tp: 4, 7
  491. LR f1 score: 0.131
  492. LR cohens kappa score: 0.074
  493. LR average precision score: 0.193
  494. -> test with 'GB'
  495. GB tn, fp: 294, 16
  496. GB fn, tp: 9, 2
  497. GB f1 score: 0.138
  498. GB cohens kappa score: 0.100
  499. -> test with 'KNN'
  500. KNN tn, fp: 234, 76
  501. KNN fn, tp: 7, 4
  502. KNN f1 score: 0.088
  503. KNN cohens kappa score: 0.029
  504. ------ Step 5/5: Slice 5/5 -------
  505. -> Reset the GAN
  506. -> Train generator for synthetic samples
  507. -> create 1196 synthetic samples
  508. -> test with 'LR'
  509. LR tn, fp: 248, 58
  510. LR fn, tp: 4, 5
  511. LR f1 score: 0.139
  512. LR cohens kappa score: 0.094
  513. LR average precision score: 0.142
  514. -> test with 'GB'
  515. GB tn, fp: 296, 10
  516. GB fn, tp: 8, 1
  517. GB f1 score: 0.100
  518. GB cohens kappa score: 0.071
  519. -> test with 'KNN'
  520. KNN tn, fp: 227, 79
  521. KNN fn, tp: 7, 2
  522. KNN f1 score: 0.044
  523. KNN cohens kappa score: -0.007
  524. ### Exercise is done.
  525. -----[ LR ]-----
  526. maximum:
  527. LR tn, fp: 248, 112
  528. LR fn, tp: 6, 11
  529. LR f1 score: 0.171
  530. LR cohens kappa score: 0.116
  531. LR average precision score: 0.380
  532. average:
  533. LR tn, fp: 222.36, 86.84
  534. LR fn, tp: 3.6, 7.0
  535. LR f1 score: 0.133
  536. LR cohens kappa score: 0.078
  537. LR average precision score: 0.166
  538. minimum:
  539. LR tn, fp: 198, 58
  540. LR fn, tp: 0, 3
  541. LR f1 score: 0.057
  542. LR cohens kappa score: 0.005
  543. LR average precision score: 0.069
  544. -----[ GB ]-----
  545. maximum:
  546. GB tn, fp: 298, 29
  547. GB fn, tp: 11, 5
  548. GB f1 score: 0.270
  549. GB cohens kappa score: 0.233
  550. average:
  551. GB tn, fp: 291.6, 17.6
  552. GB fn, tp: 8.8, 1.8
  553. GB f1 score: 0.118
  554. GB cohens kappa score: 0.079
  555. minimum:
  556. GB tn, fp: 281, 10
  557. GB fn, tp: 6, 0
  558. GB f1 score: 0.000
  559. GB cohens kappa score: -0.044
  560. -----[ KNN ]-----
  561. maximum:
  562. KNN tn, fp: 238, 106
  563. KNN fn, tp: 9, 6
  564. KNN f1 score: 0.121
  565. KNN cohens kappa score: 0.064
  566. average:
  567. KNN tn, fp: 223.68, 85.52
  568. KNN fn, tp: 7.24, 3.36
  569. KNN f1 score: 0.067
  570. KNN cohens kappa score: 0.008
  571. minimum:
  572. KNN tn, fp: 204, 68
  573. KNN fn, tp: 5, 1
  574. KNN f1 score: 0.023
  575. KNN cohens kappa score: -0.029