imblearn_protein_homo.log 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  1. ///////////////////////////////////////////
  2. // Running convGAN-majority-5 on imblearn_protein_homo
  3. ///////////////////////////////////////////
  4. Load 'data_input/imblearn_protein_homo'
  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 114528 synthetic samples
  16. -> test with GAN.predict
  17. GAN tn, fp: 28661, 230
  18. GAN fn, tp: 40, 220
  19. GAN f1 score: 0.620
  20. GAN cohens kappa score: 0.615
  21. -> test with 'LR'
  22. LR tn, fp: 27665, 1226
  23. LR fn, tp: 16, 244
  24. LR f1 score: 0.282
  25. LR cohens kappa score: 0.271
  26. LR average precision score: 0.856
  27. -> test with 'GB'
  28. GB tn, fp: 28409, 482
  29. GB fn, tp: 19, 241
  30. GB f1 score: 0.490
  31. GB cohens kappa score: 0.484
  32. -> test with 'KNN'
  33. KNN tn, fp: 28546, 345
  34. KNN fn, tp: 96, 164
  35. KNN f1 score: 0.427
  36. KNN cohens kappa score: 0.420
  37. ------ Step 1/5: Slice 2/5 -------
  38. -> Reset the GAN
  39. -> Train generator for synthetic samples
  40. -> create 114528 synthetic samples
  41. -> test with GAN.predict
  42. GAN tn, fp: 28614, 277
  43. GAN fn, tp: 32, 228
  44. GAN f1 score: 0.596
  45. GAN cohens kappa score: 0.591
  46. -> test with 'LR'
  47. LR tn, fp: 27811, 1080
  48. LR fn, tp: 15, 245
  49. LR f1 score: 0.309
  50. LR cohens kappa score: 0.299
  51. LR average precision score: 0.886
  52. -> test with 'GB'
  53. GB tn, fp: 28409, 482
  54. GB fn, tp: 15, 245
  55. GB f1 score: 0.496
  56. GB cohens kappa score: 0.490
  57. -> test with 'KNN'
  58. KNN tn, fp: 28324, 567
  59. KNN fn, tp: 80, 180
  60. KNN f1 score: 0.357
  61. KNN cohens kappa score: 0.349
  62. ------ Step 1/5: Slice 3/5 -------
  63. -> Reset the GAN
  64. -> Train generator for synthetic samples
  65. -> create 114528 synthetic samples
  66. -> test with GAN.predict
  67. GAN tn, fp: 28694, 197
  68. GAN fn, tp: 42, 218
  69. GAN f1 score: 0.646
  70. GAN cohens kappa score: 0.642
  71. -> test with 'LR'
  72. LR tn, fp: 27637, 1254
  73. LR fn, tp: 7, 253
  74. LR f1 score: 0.286
  75. LR cohens kappa score: 0.275
  76. LR average precision score: 0.886
  77. -> test with 'GB'
  78. GB tn, fp: 28369, 522
  79. GB fn, tp: 10, 250
  80. GB f1 score: 0.484
  81. GB cohens kappa score: 0.478
  82. -> test with 'KNN'
  83. KNN tn, fp: 28486, 405
  84. KNN fn, tp: 110, 150
  85. KNN f1 score: 0.368
  86. KNN cohens kappa score: 0.360
  87. ------ Step 1/5: Slice 4/5 -------
  88. -> Reset the GAN
  89. -> Train generator for synthetic samples
  90. -> create 114528 synthetic samples
  91. -> test with GAN.predict
  92. GAN tn, fp: 28678, 213
  93. GAN fn, tp: 45, 215
  94. GAN f1 score: 0.625
  95. GAN cohens kappa score: 0.621
  96. -> test with 'LR'
  97. LR tn, fp: 27749, 1142
  98. LR fn, tp: 14, 246
  99. LR f1 score: 0.299
  100. LR cohens kappa score: 0.288
  101. LR average precision score: 0.857
  102. -> test with 'GB'
  103. GB tn, fp: 28437, 454
  104. GB fn, tp: 19, 241
  105. GB f1 score: 0.505
  106. GB cohens kappa score: 0.498
  107. -> test with 'KNN'
  108. KNN tn, fp: 28499, 392
  109. KNN fn, tp: 94, 166
  110. KNN f1 score: 0.406
  111. KNN cohens kappa score: 0.399
  112. ------ Step 1/5: Slice 5/5 -------
  113. -> Reset the GAN
  114. -> Train generator for synthetic samples
  115. -> create 114524 synthetic samples
  116. -> test with GAN.predict
  117. GAN tn, fp: 28596, 295
  118. GAN fn, tp: 49, 207
  119. GAN f1 score: 0.546
  120. GAN cohens kappa score: 0.541
  121. -> test with 'LR'
  122. LR tn, fp: 27808, 1083
  123. LR fn, tp: 20, 236
  124. LR f1 score: 0.300
  125. LR cohens kappa score: 0.289
  126. LR average precision score: 0.818
  127. -> test with 'GB'
  128. GB tn, fp: 28506, 385
  129. GB fn, tp: 27, 229
  130. GB f1 score: 0.526
  131. GB cohens kappa score: 0.520
  132. -> test with 'KNN'
  133. KNN tn, fp: 28504, 387
  134. KNN fn, tp: 113, 143
  135. KNN f1 score: 0.364
  136. KNN cohens kappa score: 0.356
  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 114528 synthetic samples
  144. -> test with GAN.predict
  145. GAN tn, fp: 28700, 191
  146. GAN fn, tp: 47, 213
  147. GAN f1 score: 0.642
  148. GAN cohens kappa score: 0.638
  149. -> test with 'LR'
  150. LR tn, fp: 27768, 1123
  151. LR fn, tp: 11, 249
  152. LR f1 score: 0.305
  153. LR cohens kappa score: 0.295
  154. LR average precision score: 0.866
  155. -> test with 'GB'
  156. GB tn, fp: 28459, 432
  157. GB fn, tp: 18, 242
  158. GB f1 score: 0.518
  159. GB cohens kappa score: 0.512
  160. -> test with 'KNN'
  161. KNN tn, fp: 28547, 344
  162. KNN fn, tp: 100, 160
  163. KNN f1 score: 0.419
  164. KNN cohens kappa score: 0.412
  165. ------ Step 2/5: Slice 2/5 -------
  166. -> Reset the GAN
  167. -> Train generator for synthetic samples
  168. -> create 114528 synthetic samples
  169. -> test with GAN.predict
  170. GAN tn, fp: 28593, 298
  171. GAN fn, tp: 33, 227
  172. GAN f1 score: 0.578
  173. GAN cohens kappa score: 0.573
  174. -> test with 'LR'
  175. LR tn, fp: 27734, 1157
  176. LR fn, tp: 13, 247
  177. LR f1 score: 0.297
  178. LR cohens kappa score: 0.286
  179. LR average precision score: 0.891
  180. -> test with 'GB'
  181. GB tn, fp: 28376, 515
  182. GB fn, tp: 18, 242
  183. GB f1 score: 0.476
  184. GB cohens kappa score: 0.469
  185. -> test with 'KNN'
  186. KNN tn, fp: 28525, 366
  187. KNN fn, tp: 93, 167
  188. KNN f1 score: 0.421
  189. KNN cohens kappa score: 0.414
  190. ------ Step 2/5: Slice 3/5 -------
  191. -> Reset the GAN
  192. -> Train generator for synthetic samples
  193. -> create 114528 synthetic samples
  194. -> test with GAN.predict
  195. GAN tn, fp: 28408, 483
  196. GAN fn, tp: 47, 213
  197. GAN f1 score: 0.446
  198. GAN cohens kappa score: 0.438
  199. -> test with 'LR'
  200. LR tn, fp: 27736, 1155
  201. LR fn, tp: 17, 243
  202. LR f1 score: 0.293
  203. LR cohens kappa score: 0.282
  204. LR average precision score: 0.833
  205. -> test with 'GB'
  206. GB tn, fp: 28429, 462
  207. GB fn, tp: 22, 238
  208. GB f1 score: 0.496
  209. GB cohens kappa score: 0.489
  210. -> test with 'KNN'
  211. KNN tn, fp: 28497, 394
  212. KNN fn, tp: 99, 161
  213. KNN f1 score: 0.395
  214. KNN cohens kappa score: 0.388
  215. ------ Step 2/5: Slice 4/5 -------
  216. -> Reset the GAN
  217. -> Train generator for synthetic samples
  218. -> create 114528 synthetic samples
  219. -> test with GAN.predict
  220. GAN tn, fp: 28715, 176
  221. GAN fn, tp: 41, 219
  222. GAN f1 score: 0.669
  223. GAN cohens kappa score: 0.665
  224. -> test with 'LR'
  225. LR tn, fp: 27708, 1183
  226. LR fn, tp: 14, 246
  227. LR f1 score: 0.291
  228. LR cohens kappa score: 0.280
  229. LR average precision score: 0.863
  230. -> test with 'GB'
  231. GB tn, fp: 28422, 469
  232. GB fn, tp: 16, 244
  233. GB f1 score: 0.502
  234. GB cohens kappa score: 0.495
  235. -> test with 'KNN'
  236. KNN tn, fp: 28502, 389
  237. KNN fn, tp: 90, 170
  238. KNN f1 score: 0.415
  239. KNN cohens kappa score: 0.408
  240. ------ Step 2/5: Slice 5/5 -------
  241. -> Reset the GAN
  242. -> Train generator for synthetic samples
  243. -> create 114524 synthetic samples
  244. -> test with GAN.predict
  245. GAN tn, fp: 28634, 257
  246. GAN fn, tp: 46, 210
  247. GAN f1 score: 0.581
  248. GAN cohens kappa score: 0.576
  249. -> test with 'LR'
  250. LR tn, fp: 27656, 1235
  251. LR fn, tp: 13, 243
  252. LR f1 score: 0.280
  253. LR cohens kappa score: 0.269
  254. LR average precision score: 0.845
  255. -> test with 'GB'
  256. GB tn, fp: 28396, 495
  257. GB fn, tp: 19, 237
  258. GB f1 score: 0.480
  259. GB cohens kappa score: 0.473
  260. -> test with 'KNN'
  261. KNN tn, fp: 28518, 373
  262. KNN fn, tp: 97, 159
  263. KNN f1 score: 0.404
  264. KNN cohens kappa score: 0.396
  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 114528 synthetic samples
  272. -> test with GAN.predict
  273. GAN tn, fp: 28708, 183
  274. GAN fn, tp: 42, 218
  275. GAN f1 score: 0.660
  276. GAN cohens kappa score: 0.656
  277. -> test with 'LR'
  278. LR tn, fp: 27787, 1104
  279. LR fn, tp: 17, 243
  280. LR f1 score: 0.302
  281. LR cohens kappa score: 0.292
  282. LR average precision score: 0.868
  283. -> test with 'GB'
  284. GB tn, fp: 28456, 435
  285. GB fn, tp: 20, 240
  286. GB f1 score: 0.513
  287. GB cohens kappa score: 0.507
  288. -> test with 'KNN'
  289. KNN tn, fp: 28501, 390
  290. KNN fn, tp: 91, 169
  291. KNN f1 score: 0.413
  292. KNN cohens kappa score: 0.405
  293. ------ Step 3/5: Slice 2/5 -------
  294. -> Reset the GAN
  295. -> Train generator for synthetic samples
  296. -> create 114528 synthetic samples
  297. -> test with GAN.predict
  298. GAN tn, fp: 28752, 139
  299. GAN fn, tp: 41, 219
  300. GAN f1 score: 0.709
  301. GAN cohens kappa score: 0.706
  302. -> test with 'LR'
  303. LR tn, fp: 27705, 1186
  304. LR fn, tp: 12, 248
  305. LR f1 score: 0.293
  306. LR cohens kappa score: 0.282
  307. LR average precision score: 0.863
  308. -> test with 'GB'
  309. GB tn, fp: 28407, 484
  310. GB fn, tp: 18, 242
  311. GB f1 score: 0.491
  312. GB cohens kappa score: 0.484
  313. -> test with 'KNN'
  314. KNN tn, fp: 28539, 352
  315. KNN fn, tp: 108, 152
  316. KNN f1 score: 0.398
  317. KNN cohens kappa score: 0.391
  318. ------ Step 3/5: Slice 3/5 -------
  319. -> Reset the GAN
  320. -> Train generator for synthetic samples
  321. -> create 114528 synthetic samples
  322. -> test with GAN.predict
  323. GAN tn, fp: 27444, 1447
  324. GAN fn, tp: 34, 226
  325. GAN f1 score: 0.234
  326. GAN cohens kappa score: 0.222
  327. -> test with 'LR'
  328. LR tn, fp: 27732, 1159
  329. LR fn, tp: 17, 243
  330. LR f1 score: 0.292
  331. LR cohens kappa score: 0.282
  332. LR average precision score: 0.830
  333. -> test with 'GB'
  334. GB tn, fp: 28434, 457
  335. GB fn, tp: 22, 238
  336. GB f1 score: 0.498
  337. GB cohens kappa score: 0.492
  338. -> test with 'KNN'
  339. KNN tn, fp: 28523, 368
  340. KNN fn, tp: 101, 159
  341. KNN f1 score: 0.404
  342. KNN cohens kappa score: 0.397
  343. ------ Step 3/5: Slice 4/5 -------
  344. -> Reset the GAN
  345. -> Train generator for synthetic samples
  346. -> create 114528 synthetic samples
  347. -> test with GAN.predict
  348. GAN tn, fp: 28674, 217
  349. GAN fn, tp: 40, 220
  350. GAN f1 score: 0.631
  351. GAN cohens kappa score: 0.627
  352. -> test with 'LR'
  353. LR tn, fp: 27674, 1217
  354. LR fn, tp: 12, 248
  355. LR f1 score: 0.288
  356. LR cohens kappa score: 0.277
  357. LR average precision score: 0.865
  358. -> test with 'GB'
  359. GB tn, fp: 28435, 456
  360. GB fn, tp: 10, 250
  361. GB f1 score: 0.518
  362. GB cohens kappa score: 0.511
  363. -> test with 'KNN'
  364. KNN tn, fp: 28495, 396
  365. KNN fn, tp: 99, 161
  366. KNN f1 score: 0.394
  367. KNN cohens kappa score: 0.387
  368. ------ Step 3/5: Slice 5/5 -------
  369. -> Reset the GAN
  370. -> Train generator for synthetic samples
  371. -> create 114524 synthetic samples
  372. -> test with GAN.predict
  373. GAN tn, fp: 28663, 228
  374. GAN fn, tp: 36, 220
  375. GAN f1 score: 0.625
  376. GAN cohens kappa score: 0.621
  377. -> test with 'LR'
  378. LR tn, fp: 27697, 1194
  379. LR fn, tp: 12, 244
  380. LR f1 score: 0.288
  381. LR cohens kappa score: 0.277
  382. LR average precision score: 0.882
  383. -> test with 'GB'
  384. GB tn, fp: 28412, 479
  385. GB fn, tp: 16, 240
  386. GB f1 score: 0.492
  387. GB cohens kappa score: 0.486
  388. -> test with 'KNN'
  389. KNN tn, fp: 28504, 387
  390. KNN fn, tp: 92, 164
  391. KNN f1 score: 0.406
  392. KNN cohens kappa score: 0.399
  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 114528 synthetic samples
  400. -> test with GAN.predict
  401. GAN tn, fp: 28749, 142
  402. GAN fn, tp: 39, 221
  403. GAN f1 score: 0.709
  404. GAN cohens kappa score: 0.706
  405. -> test with 'LR'
  406. LR tn, fp: 27806, 1085
  407. LR fn, tp: 13, 247
  408. LR f1 score: 0.310
  409. LR cohens kappa score: 0.300
  410. LR average precision score: 0.873
  411. -> test with 'GB'
  412. GB tn, fp: 28419, 472
  413. GB fn, tp: 16, 244
  414. GB f1 score: 0.500
  415. GB cohens kappa score: 0.493
  416. -> test with 'KNN'
  417. KNN tn, fp: 28105, 786
  418. KNN fn, tp: 90, 170
  419. KNN f1 score: 0.280
  420. KNN cohens kappa score: 0.269
  421. ------ Step 4/5: Slice 2/5 -------
  422. -> Reset the GAN
  423. -> Train generator for synthetic samples
  424. -> create 114528 synthetic samples
  425. -> test with GAN.predict
  426. GAN tn, fp: 28647, 244
  427. GAN fn, tp: 45, 215
  428. GAN f1 score: 0.598
  429. GAN cohens kappa score: 0.593
  430. -> test with 'LR'
  431. LR tn, fp: 27761, 1130
  432. LR fn, tp: 15, 245
  433. LR f1 score: 0.300
  434. LR cohens kappa score: 0.289
  435. LR average precision score: 0.839
  436. -> test with 'GB'
  437. GB tn, fp: 28379, 512
  438. GB fn, tp: 20, 240
  439. GB f1 score: 0.474
  440. GB cohens kappa score: 0.467
  441. -> test with 'KNN'
  442. KNN tn, fp: 28527, 364
  443. KNN fn, tp: 105, 155
  444. KNN f1 score: 0.398
  445. KNN cohens kappa score: 0.391
  446. ------ Step 4/5: Slice 3/5 -------
  447. -> Reset the GAN
  448. -> Train generator for synthetic samples
  449. -> create 114528 synthetic samples
  450. -> test with GAN.predict
  451. GAN tn, fp: 28737, 154
  452. GAN fn, tp: 45, 215
  453. GAN f1 score: 0.684
  454. GAN cohens kappa score: 0.680
  455. -> test with 'LR'
  456. LR tn, fp: 27737, 1154
  457. LR fn, tp: 18, 242
  458. LR f1 score: 0.292
  459. LR cohens kappa score: 0.281
  460. LR average precision score: 0.855
  461. -> test with 'GB'
  462. GB tn, fp: 28447, 444
  463. GB fn, tp: 20, 240
  464. GB f1 score: 0.508
  465. GB cohens kappa score: 0.502
  466. -> test with 'KNN'
  467. KNN tn, fp: 28499, 392
  468. KNN fn, tp: 89, 171
  469. KNN f1 score: 0.416
  470. KNN cohens kappa score: 0.408
  471. ------ Step 4/5: Slice 4/5 -------
  472. -> Reset the GAN
  473. -> Train generator for synthetic samples
  474. -> create 114528 synthetic samples
  475. -> test with GAN.predict
  476. GAN tn, fp: 28675, 216
  477. GAN fn, tp: 45, 215
  478. GAN f1 score: 0.622
  479. GAN cohens kappa score: 0.618
  480. -> test with 'LR'
  481. LR tn, fp: 27710, 1181
  482. LR fn, tp: 11, 249
  483. LR f1 score: 0.295
  484. LR cohens kappa score: 0.284
  485. LR average precision score: 0.879
  486. -> test with 'GB'
  487. GB tn, fp: 28466, 425
  488. GB fn, tp: 14, 246
  489. GB f1 score: 0.528
  490. GB cohens kappa score: 0.522
  491. -> test with 'KNN'
  492. KNN tn, fp: 28523, 368
  493. KNN fn, tp: 93, 167
  494. KNN f1 score: 0.420
  495. KNN cohens kappa score: 0.413
  496. ------ Step 4/5: Slice 5/5 -------
  497. -> Reset the GAN
  498. -> Train generator for synthetic samples
  499. -> create 114524 synthetic samples
  500. -> test with GAN.predict
  501. GAN tn, fp: 28660, 231
  502. GAN fn, tp: 31, 225
  503. GAN f1 score: 0.632
  504. GAN cohens kappa score: 0.628
  505. -> test with 'LR'
  506. LR tn, fp: 27747, 1144
  507. LR fn, tp: 16, 240
  508. LR f1 score: 0.293
  509. LR cohens kappa score: 0.282
  510. LR average precision score: 0.839
  511. -> test with 'GB'
  512. GB tn, fp: 28389, 502
  513. GB fn, tp: 15, 241
  514. GB f1 score: 0.482
  515. GB cohens kappa score: 0.476
  516. -> test with 'KNN'
  517. KNN tn, fp: 28492, 399
  518. KNN fn, tp: 89, 167
  519. KNN f1 score: 0.406
  520. KNN cohens kappa score: 0.399
  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 114528 synthetic samples
  528. -> test with GAN.predict
  529. GAN tn, fp: 28616, 275
  530. GAN fn, tp: 36, 224
  531. GAN f1 score: 0.590
  532. GAN cohens kappa score: 0.585
  533. -> test with 'LR'
  534. LR tn, fp: 27773, 1118
  535. LR fn, tp: 13, 247
  536. LR f1 score: 0.304
  537. LR cohens kappa score: 0.293
  538. LR average precision score: 0.863
  539. -> test with 'GB'
  540. GB tn, fp: 28432, 459
  541. GB fn, tp: 17, 243
  542. GB f1 score: 0.505
  543. GB cohens kappa score: 0.499
  544. -> test with 'KNN'
  545. KNN tn, fp: 28548, 343
  546. KNN fn, tp: 100, 160
  547. KNN f1 score: 0.419
  548. KNN cohens kappa score: 0.412
  549. ------ Step 5/5: Slice 2/5 -------
  550. -> Reset the GAN
  551. -> Train generator for synthetic samples
  552. -> create 114528 synthetic samples
  553. -> test with GAN.predict
  554. GAN tn, fp: 28606, 285
  555. GAN fn, tp: 40, 220
  556. GAN f1 score: 0.575
  557. GAN cohens kappa score: 0.570
  558. -> test with 'LR'
  559. LR tn, fp: 27745, 1146
  560. LR fn, tp: 14, 246
  561. LR f1 score: 0.298
  562. LR cohens kappa score: 0.287
  563. LR average precision score: 0.868
  564. -> test with 'GB'
  565. GB tn, fp: 28444, 447
  566. GB fn, tp: 18, 242
  567. GB f1 score: 0.510
  568. GB cohens kappa score: 0.504
  569. -> test with 'KNN'
  570. KNN tn, fp: 28518, 373
  571. KNN fn, tp: 100, 160
  572. KNN f1 score: 0.404
  573. KNN cohens kappa score: 0.396
  574. ------ Step 5/5: Slice 3/5 -------
  575. -> Reset the GAN
  576. -> Train generator for synthetic samples
  577. -> create 114528 synthetic samples
  578. -> test with GAN.predict
  579. GAN tn, fp: 28741, 150
  580. GAN fn, tp: 46, 214
  581. GAN f1 score: 0.686
  582. GAN cohens kappa score: 0.683
  583. -> test with 'LR'
  584. LR tn, fp: 27678, 1213
  585. LR fn, tp: 18, 242
  586. LR f1 score: 0.282
  587. LR cohens kappa score: 0.271
  588. LR average precision score: 0.853
  589. -> test with 'GB'
  590. GB tn, fp: 28471, 420
  591. GB fn, tp: 17, 243
  592. GB f1 score: 0.527
  593. GB cohens kappa score: 0.520
  594. -> test with 'KNN'
  595. KNN tn, fp: 28515, 376
  596. KNN fn, tp: 106, 154
  597. KNN f1 score: 0.390
  598. KNN cohens kappa score: 0.382
  599. ------ Step 5/5: Slice 4/5 -------
  600. -> Reset the GAN
  601. -> Train generator for synthetic samples
  602. -> create 114528 synthetic samples
  603. -> test with GAN.predict
  604. GAN tn, fp: 28765, 126
  605. GAN fn, tp: 44, 216
  606. GAN f1 score: 0.718
  607. GAN cohens kappa score: 0.715
  608. -> test with 'LR'
  609. LR tn, fp: 27728, 1163
  610. LR fn, tp: 10, 250
  611. LR f1 score: 0.299
  612. LR cohens kappa score: 0.288
  613. LR average precision score: 0.863
  614. -> test with 'GB'
  615. GB tn, fp: 28408, 483
  616. GB fn, tp: 18, 242
  617. GB f1 score: 0.491
  618. GB cohens kappa score: 0.485
  619. -> test with 'KNN'
  620. KNN tn, fp: 28522, 369
  621. KNN fn, tp: 95, 165
  622. KNN f1 score: 0.416
  623. KNN cohens kappa score: 0.409
  624. ------ Step 5/5: Slice 5/5 -------
  625. -> Reset the GAN
  626. -> Train generator for synthetic samples
  627. -> create 114524 synthetic samples
  628. -> test with GAN.predict
  629. GAN tn, fp: 28463, 428
  630. GAN fn, tp: 33, 223
  631. GAN f1 score: 0.492
  632. GAN cohens kappa score: 0.485
  633. -> test with 'LR'
  634. LR tn, fp: 27734, 1157
  635. LR fn, tp: 15, 241
  636. LR f1 score: 0.291
  637. LR cohens kappa score: 0.281
  638. LR average precision score: 0.849
  639. -> test with 'GB'
  640. GB tn, fp: 28391, 500
  641. GB fn, tp: 15, 241
  642. GB f1 score: 0.483
  643. GB cohens kappa score: 0.477
  644. -> test with 'KNN'
  645. KNN tn, fp: 28519, 372
  646. KNN fn, tp: 91, 165
  647. KNN f1 score: 0.416
  648. KNN cohens kappa score: 0.409
  649. ### Exercise is done.
  650. -----[ LR ]-----
  651. maximum:
  652. LR tn, fp: 27811, 1254
  653. LR fn, tp: 20, 253
  654. LR f1 score: 0.310
  655. LR cohens kappa score: 0.300
  656. LR average precision score: 0.891
  657. average:
  658. LR tn, fp: 27731.44, 1159.56
  659. LR fn, tp: 14.12, 245.08
  660. LR f1 score: 0.295
  661. LR cohens kappa score: 0.284
  662. LR average precision score: 0.860
  663. minimum:
  664. LR tn, fp: 27637, 1080
  665. LR fn, tp: 7, 236
  666. LR f1 score: 0.280
  667. LR cohens kappa score: 0.269
  668. LR average precision score: 0.818
  669. -----[ GB ]-----
  670. maximum:
  671. GB tn, fp: 28506, 522
  672. GB fn, tp: 27, 250
  673. GB f1 score: 0.528
  674. GB cohens kappa score: 0.522
  675. average:
  676. GB tn, fp: 28424.08, 466.92
  677. GB fn, tp: 17.56, 241.64
  678. GB f1 score: 0.500
  679. GB cohens kappa score: 0.493
  680. minimum:
  681. GB tn, fp: 28369, 385
  682. GB fn, tp: 10, 229
  683. GB f1 score: 0.474
  684. GB cohens kappa score: 0.467
  685. -----[ KNN ]-----
  686. maximum:
  687. KNN tn, fp: 28548, 786
  688. KNN fn, tp: 113, 180
  689. KNN f1 score: 0.427
  690. KNN cohens kappa score: 0.420
  691. average:
  692. KNN tn, fp: 28491.12, 399.88
  693. KNN fn, tp: 96.84, 162.36
  694. KNN f1 score: 0.398
  695. KNN cohens kappa score: 0.391
  696. minimum:
  697. KNN tn, fp: 28105, 343
  698. KNN fn, tp: 80, 143
  699. KNN f1 score: 0.280
  700. KNN cohens kappa score: 0.269
  701. -----[ GAN ]-----
  702. maximum:
  703. GAN tn, fp: 28765, 1447
  704. GAN fn, tp: 49, 228
  705. GAN f1 score: 0.718
  706. GAN cohens kappa score: 0.715
  707. average:
  708. GAN tn, fp: 28607.72, 283.28
  709. GAN fn, tp: 40.76, 218.44
  710. GAN f1 score: 0.605
  711. GAN cohens kappa score: 0.600
  712. minimum:
  713. GAN tn, fp: 27444, 126
  714. GAN fn, tp: 31, 207
  715. GAN f1 score: 0.234
  716. GAN cohens kappa score: 0.222