imblearn_ozone_level.log 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  1. ///////////////////////////////////////////
  2. // Running convGAN-proximary-5 on imblearn_ozone_level
  3. ///////////////////////////////////////////
  4. Load 'data_input/imblearn_ozone_level'
  5. from imblearn
  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 1912 synthetic samples
  16. -> test with GAN.predict
  17. GAN tn, fp: 394, 99
  18. GAN fn, tp: 3, 12
  19. GAN f1 score: 0.190
  20. GAN cohens kappa score: 0.146
  21. -> test with 'LR'
  22. LR tn, fp: 425, 68
  23. LR fn, tp: 1, 14
  24. LR f1 score: 0.289
  25. LR cohens kappa score: 0.251
  26. LR average precision score: 0.349
  27. -> test with 'GB'
  28. GB tn, fp: 478, 15
  29. GB fn, tp: 7, 8
  30. GB f1 score: 0.421
  31. GB cohens kappa score: 0.400
  32. -> test with 'KNN'
  33. KNN tn, fp: 391, 102
  34. KNN fn, tp: 9, 6
  35. KNN f1 score: 0.098
  36. KNN cohens kappa score: 0.048
  37. ------ Step 1/5: Slice 2/5 -------
  38. -> Reset the GAN
  39. -> Train generator for synthetic samples
  40. -> create 1912 synthetic samples
  41. -> test with GAN.predict
  42. GAN tn, fp: 484, 9
  43. GAN fn, tp: 15, 0
  44. GAN f1 score: 0.000
  45. GAN cohens kappa score: -0.023
  46. -> test with 'LR'
  47. LR tn, fp: 432, 61
  48. LR fn, tp: 4, 11
  49. LR f1 score: 0.253
  50. LR cohens kappa score: 0.214
  51. LR average precision score: 0.202
  52. -> test with 'GB'
  53. GB tn, fp: 485, 8
  54. GB fn, tp: 7, 8
  55. GB f1 score: 0.516
  56. GB cohens kappa score: 0.501
  57. -> test with 'KNN'
  58. KNN tn, fp: 446, 47
  59. KNN fn, tp: 13, 2
  60. KNN f1 score: 0.062
  61. KNN cohens kappa score: 0.018
  62. ------ Step 1/5: Slice 3/5 -------
  63. -> Reset the GAN
  64. -> Train generator for synthetic samples
  65. -> create 1912 synthetic samples
  66. -> test with GAN.predict
  67. GAN tn, fp: 492, 1
  68. GAN fn, tp: 15, 0
  69. GAN f1 score: 0.000
  70. GAN cohens kappa score: -0.004
  71. -> test with 'LR'
  72. LR tn, fp: 432, 61
  73. LR fn, tp: 4, 11
  74. LR f1 score: 0.253
  75. LR cohens kappa score: 0.214
  76. LR average precision score: 0.119
  77. -> test with 'GB'
  78. GB tn, fp: 478, 15
  79. GB fn, tp: 7, 8
  80. GB f1 score: 0.421
  81. GB cohens kappa score: 0.400
  82. -> test with 'KNN'
  83. KNN tn, fp: 426, 67
  84. KNN fn, tp: 11, 4
  85. KNN f1 score: 0.093
  86. KNN cohens kappa score: 0.047
  87. ------ Step 1/5: Slice 4/5 -------
  88. -> Reset the GAN
  89. -> Train generator for synthetic samples
  90. -> create 1912 synthetic samples
  91. -> test with GAN.predict
  92. GAN tn, fp: 387, 106
  93. GAN fn, tp: 4, 11
  94. GAN f1 score: 0.167
  95. GAN cohens kappa score: 0.121
  96. -> test with 'LR'
  97. LR tn, fp: 432, 61
  98. LR fn, tp: 5, 10
  99. LR f1 score: 0.233
  100. LR cohens kappa score: 0.193
  101. LR average precision score: 0.202
  102. -> test with 'GB'
  103. GB tn, fp: 485, 8
  104. GB fn, tp: 9, 6
  105. GB f1 score: 0.414
  106. GB cohens kappa score: 0.397
  107. -> test with 'KNN'
  108. KNN tn, fp: 430, 63
  109. KNN fn, tp: 10, 5
  110. KNN f1 score: 0.120
  111. KNN cohens kappa score: 0.076
  112. ------ Step 1/5: Slice 5/5 -------
  113. -> Reset the GAN
  114. -> Train generator for synthetic samples
  115. -> create 1912 synthetic samples
  116. -> test with GAN.predict
  117. GAN tn, fp: 163, 328
  118. GAN fn, tp: 1, 12
  119. GAN f1 score: 0.068
  120. GAN cohens kappa score: 0.019
  121. -> test with 'LR'
  122. LR tn, fp: 427, 64
  123. LR fn, tp: 3, 10
  124. LR f1 score: 0.230
  125. LR cohens kappa score: 0.195
  126. LR average precision score: 0.180
  127. -> test with 'GB'
  128. GB tn, fp: 475, 16
  129. GB fn, tp: 9, 4
  130. GB f1 score: 0.242
  131. GB cohens kappa score: 0.218
  132. -> test with 'KNN'
  133. KNN tn, fp: 383, 108
  134. KNN fn, tp: 5, 8
  135. KNN f1 score: 0.124
  136. KNN cohens kappa score: 0.081
  137. ====== Step 2/5 =======
  138. -> Shuffling data
  139. -> Spliting data to slices
  140. ------ Step 2/5: Slice 1/5 -------
  141. -> Reset the GAN
  142. -> Train generator for synthetic samples
  143. -> create 1912 synthetic samples
  144. -> test with GAN.predict
  145. GAN tn, fp: 39, 454
  146. GAN fn, tp: 0, 15
  147. GAN f1 score: 0.062
  148. GAN cohens kappa score: 0.005
  149. -> test with 'LR'
  150. LR tn, fp: 425, 68
  151. LR fn, tp: 5, 10
  152. LR f1 score: 0.215
  153. LR cohens kappa score: 0.174
  154. LR average precision score: 0.308
  155. -> test with 'GB'
  156. GB tn, fp: 483, 10
  157. GB fn, tp: 12, 3
  158. GB f1 score: 0.214
  159. GB cohens kappa score: 0.192
  160. -> test with 'KNN'
  161. KNN tn, fp: 415, 78
  162. KNN fn, tp: 10, 5
  163. KNN f1 score: 0.102
  164. KNN cohens kappa score: 0.055
  165. ------ Step 2/5: Slice 2/5 -------
  166. -> Reset the GAN
  167. -> Train generator for synthetic samples
  168. -> create 1912 synthetic samples
  169. -> test with GAN.predict
  170. GAN tn, fp: 341, 152
  171. GAN fn, tp: 7, 8
  172. GAN f1 score: 0.091
  173. GAN cohens kappa score: 0.040
  174. -> test with 'LR'
  175. LR tn, fp: 444, 49
  176. LR fn, tp: 5, 10
  177. LR f1 score: 0.270
  178. LR cohens kappa score: 0.234
  179. LR average precision score: 0.214
  180. -> test with 'GB'
  181. GB tn, fp: 481, 12
  182. GB fn, tp: 7, 8
  183. GB f1 score: 0.457
  184. GB cohens kappa score: 0.438
  185. -> test with 'KNN'
  186. KNN tn, fp: 396, 97
  187. KNN fn, tp: 6, 9
  188. KNN f1 score: 0.149
  189. KNN cohens kappa score: 0.102
  190. ------ Step 2/5: Slice 3/5 -------
  191. -> Reset the GAN
  192. -> Train generator for synthetic samples
  193. -> create 1912 synthetic samples
  194. -> test with GAN.predict
  195. GAN tn, fp: 72, 421
  196. GAN fn, tp: 0, 15
  197. GAN f1 score: 0.067
  198. GAN cohens kappa score: 0.010
  199. -> test with 'LR'
  200. LR tn, fp: 426, 67
  201. LR fn, tp: 1, 14
  202. LR f1 score: 0.292
  203. LR cohens kappa score: 0.255
  204. LR average precision score: 0.413
  205. -> test with 'GB'
  206. GB tn, fp: 482, 11
  207. GB fn, tp: 8, 7
  208. GB f1 score: 0.424
  209. GB cohens kappa score: 0.405
  210. -> test with 'KNN'
  211. KNN tn, fp: 394, 99
  212. KNN fn, tp: 11, 4
  213. KNN f1 score: 0.068
  214. KNN cohens kappa score: 0.017
  215. ------ Step 2/5: Slice 4/5 -------
  216. -> Reset the GAN
  217. -> Train generator for synthetic samples
  218. -> create 1912 synthetic samples
  219. -> test with GAN.predict
  220. GAN tn, fp: 450, 43
  221. GAN fn, tp: 13, 2
  222. GAN f1 score: 0.067
  223. GAN cohens kappa score: 0.023
  224. -> test with 'LR'
  225. LR tn, fp: 440, 53
  226. LR fn, tp: 5, 10
  227. LR f1 score: 0.256
  228. LR cohens kappa score: 0.219
  229. LR average precision score: 0.155
  230. -> test with 'GB'
  231. GB tn, fp: 477, 16
  232. GB fn, tp: 11, 4
  233. GB f1 score: 0.229
  234. GB cohens kappa score: 0.202
  235. -> test with 'KNN'
  236. KNN tn, fp: 432, 61
  237. KNN fn, tp: 11, 4
  238. KNN f1 score: 0.100
  239. KNN cohens kappa score: 0.055
  240. ------ Step 2/5: Slice 5/5 -------
  241. -> Reset the GAN
  242. -> Train generator for synthetic samples
  243. -> create 1912 synthetic samples
  244. -> test with GAN.predict
  245. GAN tn, fp: 473, 18
  246. GAN fn, tp: 11, 2
  247. GAN f1 score: 0.121
  248. GAN cohens kappa score: 0.093
  249. -> test with 'LR'
  250. LR tn, fp: 430, 61
  251. LR fn, tp: 3, 10
  252. LR f1 score: 0.238
  253. LR cohens kappa score: 0.203
  254. LR average precision score: 0.195
  255. -> test with 'GB'
  256. GB tn, fp: 479, 12
  257. GB fn, tp: 7, 6
  258. GB f1 score: 0.387
  259. GB cohens kappa score: 0.368
  260. -> test with 'KNN'
  261. KNN tn, fp: 377, 114
  262. KNN fn, tp: 2, 11
  263. KNN f1 score: 0.159
  264. KNN cohens kappa score: 0.118
  265. ====== Step 3/5 =======
  266. -> Shuffling data
  267. -> Spliting data to slices
  268. ------ Step 3/5: Slice 1/5 -------
  269. -> Reset the GAN
  270. -> Train generator for synthetic samples
  271. -> create 1912 synthetic samples
  272. -> test with GAN.predict
  273. GAN tn, fp: 379, 114
  274. GAN fn, tp: 8, 7
  275. GAN f1 score: 0.103
  276. GAN cohens kappa score: 0.053
  277. -> test with 'LR'
  278. LR tn, fp: 431, 62
  279. LR fn, tp: 3, 12
  280. LR f1 score: 0.270
  281. LR cohens kappa score: 0.232
  282. LR average precision score: 0.302
  283. -> test with 'GB'
  284. GB tn, fp: 475, 18
  285. GB fn, tp: 10, 5
  286. GB f1 score: 0.263
  287. GB cohens kappa score: 0.236
  288. -> test with 'KNN'
  289. KNN tn, fp: 395, 98
  290. KNN fn, tp: 9, 6
  291. KNN f1 score: 0.101
  292. KNN cohens kappa score: 0.052
  293. ------ Step 3/5: Slice 2/5 -------
  294. -> Reset the GAN
  295. -> Train generator for synthetic samples
  296. -> create 1912 synthetic samples
  297. -> test with GAN.predict
  298. GAN tn, fp: 463, 30
  299. GAN fn, tp: 11, 4
  300. GAN f1 score: 0.163
  301. GAN cohens kappa score: 0.128
  302. -> test with 'LR'
  303. LR tn, fp: 430, 63
  304. LR fn, tp: 3, 12
  305. LR f1 score: 0.267
  306. LR cohens kappa score: 0.229
  307. LR average precision score: 0.147
  308. -> test with 'GB'
  309. GB tn, fp: 476, 17
  310. GB fn, tp: 8, 7
  311. GB f1 score: 0.359
  312. GB cohens kappa score: 0.335
  313. -> test with 'KNN'
  314. KNN tn, fp: 391, 102
  315. KNN fn, tp: 7, 8
  316. KNN f1 score: 0.128
  317. KNN cohens kappa score: 0.080
  318. ------ Step 3/5: Slice 3/5 -------
  319. -> Reset the GAN
  320. -> Train generator for synthetic samples
  321. -> create 1912 synthetic samples
  322. -> test with GAN.predict
  323. GAN tn, fp: 411, 82
  324. GAN fn, tp: 5, 10
  325. GAN f1 score: 0.187
  326. GAN cohens kappa score: 0.143
  327. -> test with 'LR'
  328. LR tn, fp: 449, 44
  329. LR fn, tp: 4, 11
  330. LR f1 score: 0.314
  331. LR cohens kappa score: 0.281
  332. LR average precision score: 0.188
  333. -> test with 'GB'
  334. GB tn, fp: 477, 16
  335. GB fn, tp: 9, 6
  336. GB f1 score: 0.324
  337. GB cohens kappa score: 0.300
  338. -> test with 'KNN'
  339. KNN tn, fp: 398, 95
  340. KNN fn, tp: 10, 5
  341. KNN f1 score: 0.087
  342. KNN cohens kappa score: 0.038
  343. ------ Step 3/5: Slice 4/5 -------
  344. -> Reset the GAN
  345. -> Train generator for synthetic samples
  346. -> create 1912 synthetic samples
  347. -> test with GAN.predict
  348. GAN tn, fp: 482, 11
  349. GAN fn, tp: 15, 0
  350. GAN f1 score: 0.000
  351. GAN cohens kappa score: -0.026
  352. -> test with 'LR'
  353. LR tn, fp: 448, 45
  354. LR fn, tp: 5, 10
  355. LR f1 score: 0.286
  356. LR cohens kappa score: 0.251
  357. LR average precision score: 0.165
  358. -> test with 'GB'
  359. GB tn, fp: 477, 16
  360. GB fn, tp: 9, 6
  361. GB f1 score: 0.324
  362. GB cohens kappa score: 0.300
  363. -> test with 'KNN'
  364. KNN tn, fp: 394, 99
  365. KNN fn, tp: 9, 6
  366. KNN f1 score: 0.100
  367. KNN cohens kappa score: 0.051
  368. ------ Step 3/5: Slice 5/5 -------
  369. -> Reset the GAN
  370. -> Train generator for synthetic samples
  371. -> create 1912 synthetic samples
  372. -> test with GAN.predict
  373. GAN tn, fp: 143, 348
  374. GAN fn, tp: 0, 13
  375. GAN f1 score: 0.070
  376. GAN cohens kappa score: 0.021
  377. -> test with 'LR'
  378. LR tn, fp: 424, 67
  379. LR fn, tp: 2, 11
  380. LR f1 score: 0.242
  381. LR cohens kappa score: 0.207
  382. LR average precision score: 0.367
  383. -> test with 'GB'
  384. GB tn, fp: 478, 13
  385. GB fn, tp: 8, 5
  386. GB f1 score: 0.323
  387. GB cohens kappa score: 0.302
  388. -> test with 'KNN'
  389. KNN tn, fp: 396, 95
  390. KNN fn, tp: 3, 10
  391. KNN f1 score: 0.169
  392. KNN cohens kappa score: 0.130
  393. ====== Step 4/5 =======
  394. -> Shuffling data
  395. -> Spliting data to slices
  396. ------ Step 4/5: Slice 1/5 -------
  397. -> Reset the GAN
  398. -> Train generator for synthetic samples
  399. -> create 1912 synthetic samples
  400. -> test with GAN.predict
  401. GAN tn, fp: 490, 3
  402. GAN fn, tp: 15, 0
  403. GAN f1 score: 0.000
  404. GAN cohens kappa score: -0.010
  405. -> test with 'LR'
  406. LR tn, fp: 432, 61
  407. LR fn, tp: 4, 11
  408. LR f1 score: 0.253
  409. LR cohens kappa score: 0.214
  410. LR average precision score: 0.270
  411. -> test with 'GB'
  412. GB tn, fp: 478, 15
  413. GB fn, tp: 10, 5
  414. GB f1 score: 0.286
  415. GB cohens kappa score: 0.261
  416. -> test with 'KNN'
  417. KNN tn, fp: 399, 94
  418. KNN fn, tp: 9, 6
  419. KNN f1 score: 0.104
  420. KNN cohens kappa score: 0.056
  421. ------ Step 4/5: Slice 2/5 -------
  422. -> Reset the GAN
  423. -> Train generator for synthetic samples
  424. -> create 1912 synthetic samples
  425. -> test with GAN.predict
  426. GAN tn, fp: 456, 37
  427. GAN fn, tp: 11, 4
  428. GAN f1 score: 0.143
  429. GAN cohens kappa score: 0.104
  430. -> test with 'LR'
  431. LR tn, fp: 439, 54
  432. LR fn, tp: 4, 11
  433. LR f1 score: 0.275
  434. LR cohens kappa score: 0.238
  435. LR average precision score: 0.238
  436. -> test with 'GB'
  437. GB tn, fp: 478, 15
  438. GB fn, tp: 7, 8
  439. GB f1 score: 0.421
  440. GB cohens kappa score: 0.400
  441. -> test with 'KNN'
  442. KNN tn, fp: 406, 87
  443. KNN fn, tp: 9, 6
  444. KNN f1 score: 0.111
  445. KNN cohens kappa score: 0.063
  446. ------ Step 4/5: Slice 3/5 -------
  447. -> Reset the GAN
  448. -> Train generator for synthetic samples
  449. -> create 1912 synthetic samples
  450. -> test with GAN.predict
  451. GAN tn, fp: 452, 41
  452. GAN fn, tp: 10, 5
  453. GAN f1 score: 0.164
  454. GAN cohens kappa score: 0.125
  455. -> test with 'LR'
  456. LR tn, fp: 433, 60
  457. LR fn, tp: 3, 12
  458. LR f1 score: 0.276
  459. LR cohens kappa score: 0.239
  460. LR average precision score: 0.193
  461. -> test with 'GB'
  462. GB tn, fp: 480, 13
  463. GB fn, tp: 7, 8
  464. GB f1 score: 0.444
  465. GB cohens kappa score: 0.425
  466. -> test with 'KNN'
  467. KNN tn, fp: 412, 81
  468. KNN fn, tp: 11, 4
  469. KNN f1 score: 0.080
  470. KNN cohens kappa score: 0.031
  471. ------ Step 4/5: Slice 4/5 -------
  472. -> Reset the GAN
  473. -> Train generator for synthetic samples
  474. -> create 1912 synthetic samples
  475. -> test with GAN.predict
  476. GAN tn, fp: 449, 44
  477. GAN fn, tp: 9, 6
  478. GAN f1 score: 0.185
  479. GAN cohens kappa score: 0.146
  480. -> test with 'LR'
  481. LR tn, fp: 435, 58
  482. LR fn, tp: 3, 12
  483. LR f1 score: 0.282
  484. LR cohens kappa score: 0.246
  485. LR average precision score: 0.283
  486. -> test with 'GB'
  487. GB tn, fp: 477, 16
  488. GB fn, tp: 8, 7
  489. GB f1 score: 0.368
  490. GB cohens kappa score: 0.345
  491. -> test with 'KNN'
  492. KNN tn, fp: 395, 98
  493. KNN fn, tp: 9, 6
  494. KNN f1 score: 0.101
  495. KNN cohens kappa score: 0.052
  496. ------ Step 4/5: Slice 5/5 -------
  497. -> Reset the GAN
  498. -> Train generator for synthetic samples
  499. -> create 1912 synthetic samples
  500. -> test with GAN.predict
  501. GAN tn, fp: 338, 153
  502. GAN fn, tp: 4, 9
  503. GAN f1 score: 0.103
  504. GAN cohens kappa score: 0.058
  505. -> test with 'LR'
  506. LR tn, fp: 422, 69
  507. LR fn, tp: 4, 9
  508. LR f1 score: 0.198
  509. LR cohens kappa score: 0.161
  510. LR average precision score: 0.212
  511. -> test with 'GB'
  512. GB tn, fp: 474, 17
  513. GB fn, tp: 7, 6
  514. GB f1 score: 0.333
  515. GB cohens kappa score: 0.311
  516. -> test with 'KNN'
  517. KNN tn, fp: 393, 98
  518. KNN fn, tp: 6, 7
  519. KNN f1 score: 0.119
  520. KNN cohens kappa score: 0.076
  521. ====== Step 5/5 =======
  522. -> Shuffling data
  523. -> Spliting data to slices
  524. ------ Step 5/5: Slice 1/5 -------
  525. -> Reset the GAN
  526. -> Train generator for synthetic samples
  527. -> create 1912 synthetic samples
  528. -> test with GAN.predict
  529. GAN tn, fp: 17, 476
  530. GAN fn, tp: 0, 15
  531. GAN f1 score: 0.059
  532. GAN cohens kappa score: 0.002
  533. -> test with 'LR'
  534. LR tn, fp: 441, 52
  535. LR fn, tp: 2, 13
  536. LR f1 score: 0.325
  537. LR cohens kappa score: 0.291
  538. LR average precision score: 0.266
  539. -> test with 'GB'
  540. GB tn, fp: 480, 13
  541. GB fn, tp: 7, 8
  542. GB f1 score: 0.444
  543. GB cohens kappa score: 0.425
  544. -> test with 'KNN'
  545. KNN tn, fp: 383, 110
  546. KNN fn, tp: 11, 4
  547. KNN f1 score: 0.062
  548. KNN cohens kappa score: 0.010
  549. ------ Step 5/5: Slice 2/5 -------
  550. -> Reset the GAN
  551. -> Train generator for synthetic samples
  552. -> create 1912 synthetic samples
  553. -> test with GAN.predict
  554. GAN tn, fp: 423, 70
  555. GAN fn, tp: 4, 11
  556. GAN f1 score: 0.229
  557. GAN cohens kappa score: 0.189
  558. -> test with 'LR'
  559. LR tn, fp: 422, 71
  560. LR fn, tp: 3, 12
  561. LR f1 score: 0.245
  562. LR cohens kappa score: 0.205
  563. LR average precision score: 0.159
  564. -> test with 'GB'
  565. GB tn, fp: 476, 17
  566. GB fn, tp: 10, 5
  567. GB f1 score: 0.270
  568. GB cohens kappa score: 0.244
  569. -> test with 'KNN'
  570. KNN tn, fp: 410, 83
  571. KNN fn, tp: 11, 4
  572. KNN f1 score: 0.078
  573. KNN cohens kappa score: 0.030
  574. ------ Step 5/5: Slice 3/5 -------
  575. -> Reset the GAN
  576. -> Train generator for synthetic samples
  577. -> create 1912 synthetic samples
  578. -> test with GAN.predict
  579. GAN tn, fp: 455, 38
  580. GAN fn, tp: 9, 6
  581. GAN f1 score: 0.203
  582. GAN cohens kappa score: 0.167
  583. -> test with 'LR'
  584. LR tn, fp: 455, 38
  585. LR fn, tp: 6, 9
  586. LR f1 score: 0.290
  587. LR cohens kappa score: 0.257
  588. LR average precision score: 0.191
  589. -> test with 'GB'
  590. GB tn, fp: 482, 11
  591. GB fn, tp: 11, 4
  592. GB f1 score: 0.267
  593. GB cohens kappa score: 0.244
  594. -> test with 'KNN'
  595. KNN tn, fp: 363, 130
  596. KNN fn, tp: 5, 10
  597. KNN f1 score: 0.129
  598. KNN cohens kappa score: 0.080
  599. ------ Step 5/5: Slice 4/5 -------
  600. -> Reset the GAN
  601. -> Train generator for synthetic samples
  602. -> create 1912 synthetic samples
  603. -> test with GAN.predict
  604. GAN tn, fp: 387, 106
  605. GAN fn, tp: 3, 12
  606. GAN f1 score: 0.180
  607. GAN cohens kappa score: 0.135
  608. -> test with 'LR'
  609. LR tn, fp: 425, 68
  610. LR fn, tp: 2, 13
  611. LR f1 score: 0.271
  612. LR cohens kappa score: 0.233
  613. LR average precision score: 0.242
  614. -> test with 'GB'
  615. GB tn, fp: 474, 19
  616. GB fn, tp: 6, 9
  617. GB f1 score: 0.419
  618. GB cohens kappa score: 0.395
  619. -> test with 'KNN'
  620. KNN tn, fp: 404, 89
  621. KNN fn, tp: 8, 7
  622. KNN f1 score: 0.126
  623. KNN cohens kappa score: 0.079
  624. ------ Step 5/5: Slice 5/5 -------
  625. -> Reset the GAN
  626. -> Train generator for synthetic samples
  627. -> create 1912 synthetic samples
  628. -> test with GAN.predict
  629. GAN tn, fp: 232, 259
  630. GAN fn, tp: 0, 13
  631. GAN f1 score: 0.091
  632. GAN cohens kappa score: 0.044
  633. -> test with 'LR'
  634. LR tn, fp: 421, 70
  635. LR fn, tp: 2, 11
  636. LR f1 score: 0.234
  637. LR cohens kappa score: 0.198
  638. LR average precision score: 0.277
  639. -> test with 'GB'
  640. GB tn, fp: 476, 15
  641. GB fn, tp: 9, 4
  642. GB f1 score: 0.250
  643. GB cohens kappa score: 0.226
  644. -> test with 'KNN'
  645. KNN tn, fp: 383, 108
  646. KNN fn, tp: 6, 7
  647. KNN f1 score: 0.109
  648. KNN cohens kappa score: 0.066
  649. ### Exercise is done.
  650. -----[ LR ]-----
  651. maximum:
  652. LR tn, fp: 455, 71
  653. LR fn, tp: 6, 14
  654. LR f1 score: 0.325
  655. LR cohens kappa score: 0.291
  656. LR average precision score: 0.413
  657. average:
  658. LR tn, fp: 432.8, 59.8
  659. LR fn, tp: 3.44, 11.16
  660. LR f1 score: 0.262
  661. LR cohens kappa score: 0.225
  662. LR average precision score: 0.233
  663. minimum:
  664. LR tn, fp: 421, 38
  665. LR fn, tp: 1, 9
  666. LR f1 score: 0.198
  667. LR cohens kappa score: 0.161
  668. LR average precision score: 0.119
  669. -----[ GB ]-----
  670. maximum:
  671. GB tn, fp: 485, 19
  672. GB fn, tp: 12, 9
  673. GB f1 score: 0.516
  674. GB cohens kappa score: 0.501
  675. average:
  676. GB tn, fp: 478.44, 14.16
  677. GB fn, tp: 8.4, 6.2
  678. GB f1 score: 0.353
  679. GB cohens kappa score: 0.331
  680. minimum:
  681. GB tn, fp: 474, 8
  682. GB fn, tp: 6, 3
  683. GB f1 score: 0.214
  684. GB cohens kappa score: 0.192
  685. -----[ KNN ]-----
  686. maximum:
  687. KNN tn, fp: 446, 130
  688. KNN fn, tp: 13, 11
  689. KNN f1 score: 0.169
  690. KNN cohens kappa score: 0.130
  691. average:
  692. KNN tn, fp: 400.48, 92.12
  693. KNN fn, tp: 8.44, 6.16
  694. KNN f1 score: 0.107
  695. KNN cohens kappa score: 0.060
  696. minimum:
  697. KNN tn, fp: 363, 47
  698. KNN fn, tp: 2, 2
  699. KNN f1 score: 0.062
  700. KNN cohens kappa score: 0.010
  701. -----[ GAN ]-----
  702. maximum:
  703. GAN tn, fp: 492, 476
  704. GAN fn, tp: 15, 15
  705. GAN f1 score: 0.229
  706. GAN cohens kappa score: 0.189
  707. average:
  708. GAN tn, fp: 354.88, 137.72
  709. GAN fn, tp: 6.92, 7.68
  710. GAN f1 score: 0.109
  711. GAN cohens kappa score: 0.068
  712. minimum:
  713. GAN tn, fp: 17, 1
  714. GAN fn, tp: 0, 0
  715. GAN f1 score: 0.000
  716. GAN cohens kappa score: -0.026