kaggle_creditcard.log 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. ///////////////////////////////////////////
  2. // Running convGAN-majority-full on kaggle_creditcard
  3. ///////////////////////////////////////////
  4. Load 'data_input/kaggle_creditcard'
  5. Data loaded.
  6. -> Shuffling data
  7. ### Start exercise for synthetic point generator
  8. ====== Step 1/5 =======
  9. -> Shuffling data
  10. -> Spliting data to slices
  11. ------ Step 1/5: Slice 1/5 -------
  12. -> Reset the GAN
  13. -> Train generator for synthetic samples
  14. -> create 227059 synthetic samples
  15. -> test with GAN.predict
  16. GAN tn, fp: 53161, 3702
  17. GAN fn, tp: 18, 81
  18. GAN f1 score: 0.042
  19. GAN cohens kappa score: 0.038
  20. -> test with 'LR'
  21. LR tn, fp: 53086, 3777
  22. LR fn, tp: 20, 79
  23. LR f1 score: 0.040
  24. LR cohens kappa score: 0.037
  25. LR average precision score: 0.518
  26. -> test with 'GB'
  27. GB tn, fp: 56581, 282
  28. GB fn, tp: 19, 80
  29. GB f1 score: 0.347
  30. GB cohens kappa score: 0.345
  31. -> test with 'KNN'
  32. KNN tn, fp: 55211, 1652
  33. KNN fn, tp: 71, 28
  34. KNN f1 score: 0.031
  35. KNN cohens kappa score: 0.028
  36. ------ Step 1/5: Slice 2/5 -------
  37. -> Reset the GAN
  38. -> Train generator for synthetic samples
  39. -> create 227059 synthetic samples
  40. -> test with GAN.predict
  41. GAN tn, fp: 43088, 13775
  42. GAN fn, tp: 2, 97
  43. GAN f1 score: 0.014
  44. GAN cohens kappa score: 0.010
  45. -> test with 'LR'
  46. LR tn, fp: 53787, 3076
  47. LR fn, tp: 6, 93
  48. LR f1 score: 0.057
  49. LR cohens kappa score: 0.054
  50. LR average precision score: 0.729
  51. -> test with 'GB'
  52. GB tn, fp: 56521, 342
  53. GB fn, tp: 10, 89
  54. GB f1 score: 0.336
  55. GB cohens kappa score: 0.334
  56. -> test with 'KNN'
  57. KNN tn, fp: 55842, 1021
  58. KNN fn, tp: 71, 28
  59. KNN f1 score: 0.049
  60. KNN cohens kappa score: 0.046
  61. ------ Step 1/5: Slice 3/5 -------
  62. -> Reset the GAN
  63. -> Train generator for synthetic samples
  64. -> create 227059 synthetic samples
  65. -> test with GAN.predict
  66. GAN tn, fp: 8231, 48632
  67. GAN fn, tp: 2, 97
  68. GAN f1 score: 0.004
  69. GAN cohens kappa score: 0.001
  70. -> test with 'LR'
  71. LR tn, fp: 54646, 2217
  72. LR fn, tp: 6, 93
  73. LR f1 score: 0.077
  74. LR cohens kappa score: 0.074
  75. LR average precision score: 0.707
  76. -> test with 'GB'
  77. GB tn, fp: 56483, 380
  78. GB fn, tp: 11, 88
  79. GB f1 score: 0.310
  80. GB cohens kappa score: 0.308
  81. -> test with 'KNN'
  82. KNN tn, fp: 56049, 814
  83. KNN fn, tp: 71, 28
  84. KNN f1 score: 0.060
  85. KNN cohens kappa score: 0.057
  86. ------ Step 1/5: Slice 4/5 -------
  87. -> Reset the GAN
  88. -> Train generator for synthetic samples
  89. -> create 227059 synthetic samples
  90. -> test with GAN.predict
  91. GAN tn, fp: 38275, 18588
  92. GAN fn, tp: 0, 99
  93. GAN f1 score: 0.011
  94. GAN cohens kappa score: 0.007
  95. -> test with 'LR'
  96. LR tn, fp: 55145, 1718
  97. LR fn, tp: 6, 93
  98. LR f1 score: 0.097
  99. LR cohens kappa score: 0.094
  100. LR average precision score: 0.764
  101. -> test with 'GB'
  102. GB tn, fp: 56487, 376
  103. GB fn, tp: 8, 91
  104. GB f1 score: 0.322
  105. GB cohens kappa score: 0.320
  106. -> test with 'KNN'
  107. KNN tn, fp: 55182, 1681
  108. KNN fn, tp: 59, 40
  109. KNN f1 score: 0.044
  110. KNN cohens kappa score: 0.041
  111. ------ Step 1/5: Slice 5/5 -------
  112. -> Reset the GAN
  113. -> Train generator for synthetic samples
  114. -> create 227056 synthetic samples
  115. -> test with GAN.predict
  116. GAN tn, fp: 56659, 204
  117. GAN fn, tp: 18, 78
  118. GAN f1 score: 0.413
  119. GAN cohens kappa score: 0.411
  120. -> test with 'LR'
  121. LR tn, fp: 54854, 2009
  122. LR fn, tp: 7, 89
  123. LR f1 score: 0.081
  124. LR cohens kappa score: 0.078
  125. LR average precision score: 0.838
  126. -> test with 'GB'
  127. GB tn, fp: 56424, 439
  128. GB fn, tp: 9, 87
  129. GB f1 score: 0.280
  130. GB cohens kappa score: 0.278
  131. -> test with 'KNN'
  132. KNN tn, fp: 55912, 951
  133. KNN fn, tp: 62, 34
  134. KNN f1 score: 0.063
  135. KNN cohens kappa score: 0.060
  136. ====== Step 2/5 =======
  137. -> Shuffling data
  138. -> Spliting data to slices
  139. ------ Step 2/5: Slice 1/5 -------
  140. -> Reset the GAN
  141. -> Train generator for synthetic samples
  142. -> create 227059 synthetic samples
  143. -> test with GAN.predict
  144. GAN tn, fp: 56413, 450
  145. GAN fn, tp: 21, 78
  146. GAN f1 score: 0.249
  147. GAN cohens kappa score: 0.247
  148. -> test with 'LR'
  149. LR tn, fp: 52754, 4109
  150. LR fn, tp: 11, 88
  151. LR f1 score: 0.041
  152. LR cohens kappa score: 0.038
  153. LR average precision score: 0.695
  154. -> test with 'GB'
  155. GB tn, fp: 56439, 424
  156. GB fn, tp: 10, 89
  157. GB f1 score: 0.291
  158. GB cohens kappa score: 0.289
  159. -> test with 'KNN'
  160. KNN tn, fp: 55796, 1067
  161. KNN fn, tp: 69, 30
  162. KNN f1 score: 0.050
  163. KNN cohens kappa score: 0.047
  164. ------ Step 2/5: Slice 2/5 -------
  165. -> Reset the GAN
  166. -> Train generator for synthetic samples
  167. -> create 227059 synthetic samples
  168. -> test with GAN.predict
  169. GAN tn, fp: 52914, 3949
  170. GAN fn, tp: 8, 91
  171. GAN f1 score: 0.044
  172. GAN cohens kappa score: 0.041
  173. -> test with 'LR'
  174. LR tn, fp: 54662, 2201
  175. LR fn, tp: 8, 91
  176. LR f1 score: 0.076
  177. LR cohens kappa score: 0.073
  178. LR average precision score: 0.667
  179. -> test with 'GB'
  180. GB tn, fp: 56466, 397
  181. GB fn, tp: 11, 88
  182. GB f1 score: 0.301
  183. GB cohens kappa score: 0.299
  184. -> test with 'KNN'
  185. KNN tn, fp: 55755, 1108
  186. KNN fn, tp: 66, 33
  187. KNN f1 score: 0.053
  188. KNN cohens kappa score: 0.050
  189. ------ Step 2/5: Slice 3/5 -------
  190. -> Reset the GAN
  191. -> Train generator for synthetic samples
  192. -> create 227059 synthetic samples
  193. -> test with GAN.predict
  194. GAN tn, fp: 56556, 307
  195. GAN fn, tp: 24, 75
  196. GAN f1 score: 0.312
  197. GAN cohens kappa score: 0.310
  198. -> test with 'LR'
  199. LR tn, fp: 54718, 2145
  200. LR fn, tp: 8, 91
  201. LR f1 score: 0.078
  202. LR cohens kappa score: 0.075
  203. LR average precision score: 0.715
  204. -> test with 'GB'
  205. GB tn, fp: 56525, 338
  206. GB fn, tp: 12, 87
  207. GB f1 score: 0.332
  208. GB cohens kappa score: 0.330
  209. -> test with 'KNN'
  210. KNN tn, fp: 55500, 1363
  211. KNN fn, tp: 60, 39
  212. KNN f1 score: 0.052
  213. KNN cohens kappa score: 0.049
  214. ------ Step 2/5: Slice 4/5 -------
  215. -> Reset the GAN
  216. -> Train generator for synthetic samples
  217. -> create 227059 synthetic samples
  218. -> test with GAN.predict
  219. GAN tn, fp: 3888, 52975
  220. GAN fn, tp: 1, 98
  221. GAN f1 score: 0.004
  222. GAN cohens kappa score: 0.000
  223. -> test with 'LR'
  224. LR tn, fp: 54534, 2329
  225. LR fn, tp: 12, 87
  226. LR f1 score: 0.069
  227. LR cohens kappa score: 0.066
  228. LR average precision score: 0.713
  229. -> test with 'GB'
  230. GB tn, fp: 56507, 356
  231. GB fn, tp: 11, 88
  232. GB f1 score: 0.324
  233. GB cohens kappa score: 0.322
  234. -> test with 'KNN'
  235. KNN tn, fp: 56368, 495
  236. KNN fn, tp: 72, 27
  237. KNN f1 score: 0.087
  238. KNN cohens kappa score: 0.084
  239. ------ Step 2/5: Slice 5/5 -------
  240. -> Reset the GAN
  241. -> Train generator for synthetic samples
  242. -> create 227056 synthetic samples
  243. -> test with GAN.predict
  244. GAN tn, fp: 54173, 2690
  245. GAN fn, tp: 10, 86
  246. GAN f1 score: 0.060
  247. GAN cohens kappa score: 0.057
  248. -> test with 'LR'
  249. LR tn, fp: 54782, 2081
  250. LR fn, tp: 12, 84
  251. LR f1 score: 0.074
  252. LR cohens kappa score: 0.071
  253. LR average precision score: 0.759
  254. -> test with 'GB'
  255. GB tn, fp: 56481, 382
  256. GB fn, tp: 15, 81
  257. GB f1 score: 0.290
  258. GB cohens kappa score: 0.288
  259. -> test with 'KNN'
  260. KNN tn, fp: 55998, 865
  261. KNN fn, tp: 74, 22
  262. KNN f1 score: 0.045
  263. KNN cohens kappa score: 0.042
  264. ====== Step 3/5 =======
  265. -> Shuffling data
  266. -> Spliting data to slices
  267. ------ Step 3/5: Slice 1/5 -------
  268. -> Reset the GAN
  269. -> Train generator for synthetic samples
  270. -> create 227059 synthetic samples
  271. -> test with GAN.predict
  272. GAN tn, fp: 56008, 855
  273. GAN fn, tp: 16, 83
  274. GAN f1 score: 0.160
  275. GAN cohens kappa score: 0.157
  276. -> test with 'LR'
  277. LR tn, fp: 53786, 3077
  278. LR fn, tp: 8, 91
  279. LR f1 score: 0.056
  280. LR cohens kappa score: 0.053
  281. LR average precision score: 0.659
  282. -> test with 'GB'
  283. GB tn, fp: 56468, 395
  284. GB fn, tp: 13, 86
  285. GB f1 score: 0.297
  286. GB cohens kappa score: 0.295
  287. -> test with 'KNN'
  288. KNN tn, fp: 56174, 689
  289. KNN fn, tp: 73, 26
  290. KNN f1 score: 0.064
  291. KNN cohens kappa score: 0.061
  292. ------ Step 3/5: Slice 2/5 -------
  293. -> Reset the GAN
  294. -> Train generator for synthetic samples
  295. -> create 227059 synthetic samples
  296. -> test with GAN.predict
  297. GAN tn, fp: 54949, 1914
  298. GAN fn, tp: 10, 89
  299. GAN f1 score: 0.085
  300. GAN cohens kappa score: 0.082
  301. -> test with 'LR'
  302. LR tn, fp: 54319, 2544
  303. LR fn, tp: 7, 92
  304. LR f1 score: 0.067
  305. LR cohens kappa score: 0.064
  306. LR average precision score: 0.632
  307. -> test with 'GB'
  308. GB tn, fp: 56480, 383
  309. GB fn, tp: 9, 90
  310. GB f1 score: 0.315
  311. GB cohens kappa score: 0.313
  312. -> test with 'KNN'
  313. KNN tn, fp: 55640, 1223
  314. KNN fn, tp: 63, 36
  315. KNN f1 score: 0.053
  316. KNN cohens kappa score: 0.050
  317. ------ Step 3/5: Slice 3/5 -------
  318. -> Reset the GAN
  319. -> Train generator for synthetic samples
  320. -> create 227059 synthetic samples
  321. -> test with GAN.predict
  322. GAN tn, fp: 56510, 353
  323. GAN fn, tp: 19, 80
  324. GAN f1 score: 0.301
  325. GAN cohens kappa score: 0.299
  326. -> test with 'LR'
  327. LR tn, fp: 54720, 2143
  328. LR fn, tp: 10, 89
  329. LR f1 score: 0.076
  330. LR cohens kappa score: 0.073
  331. LR average precision score: 0.705
  332. -> test with 'GB'
  333. GB tn, fp: 56498, 365
  334. GB fn, tp: 13, 86
  335. GB f1 score: 0.313
  336. GB cohens kappa score: 0.311
  337. -> test with 'KNN'
  338. KNN tn, fp: 56393, 470
  339. KNN fn, tp: 75, 24
  340. KNN f1 score: 0.081
  341. KNN cohens kappa score: 0.078
  342. ------ Step 3/5: Slice 4/5 -------
  343. -> Reset the GAN
  344. -> Train generator for synthetic samples
  345. -> create 227059 synthetic samples
  346. -> test with GAN.predict
  347. GAN tn, fp: 53475, 3388
  348. GAN fn, tp: 6, 93
  349. GAN f1 score: 0.052
  350. GAN cohens kappa score: 0.049
  351. -> test with 'LR'
  352. LR tn, fp: 54682, 2181
  353. LR fn, tp: 8, 91
  354. LR f1 score: 0.077
  355. LR cohens kappa score: 0.074
  356. LR average precision score: 0.783
  357. -> test with 'GB'
  358. GB tn, fp: 56451, 412
  359. GB fn, tp: 9, 90
  360. GB f1 score: 0.300
  361. GB cohens kappa score: 0.297
  362. -> test with 'KNN'
  363. KNN tn, fp: 56008, 855
  364. KNN fn, tp: 72, 27
  365. KNN f1 score: 0.055
  366. KNN cohens kappa score: 0.052
  367. ------ Step 3/5: Slice 5/5 -------
  368. -> Reset the GAN
  369. -> Train generator for synthetic samples
  370. -> create 227056 synthetic samples
  371. -> test with GAN.predict
  372. GAN tn, fp: 55179, 1684
  373. GAN fn, tp: 10, 86
  374. GAN f1 score: 0.092
  375. GAN cohens kappa score: 0.089
  376. -> test with 'LR'
  377. LR tn, fp: 55002, 1861
  378. LR fn, tp: 5, 91
  379. LR f1 score: 0.089
  380. LR cohens kappa score: 0.086
  381. LR average precision score: 0.720
  382. -> test with 'GB'
  383. GB tn, fp: 56544, 319
  384. GB fn, tp: 12, 84
  385. GB f1 score: 0.337
  386. GB cohens kappa score: 0.335
  387. -> test with 'KNN'
  388. KNN tn, fp: 55746, 1117
  389. KNN fn, tp: 63, 33
  390. KNN f1 score: 0.053
  391. KNN cohens kappa score: 0.050
  392. ====== Step 4/5 =======
  393. -> Shuffling data
  394. -> Spliting data to slices
  395. ------ Step 4/5: Slice 1/5 -------
  396. -> Reset the GAN
  397. -> Train generator for synthetic samples
  398. -> create 227059 synthetic samples
  399. -> test with GAN.predict
  400. GAN tn, fp: 56586, 277
  401. GAN fn, tp: 30, 69
  402. GAN f1 score: 0.310
  403. GAN cohens kappa score: 0.308
  404. -> test with 'LR'
  405. LR tn, fp: 54089, 2774
  406. LR fn, tp: 3, 96
  407. LR f1 score: 0.065
  408. LR cohens kappa score: 0.062
  409. LR average precision score: 0.678
  410. -> test with 'GB'
  411. GB tn, fp: 56499, 364
  412. GB fn, tp: 7, 92
  413. GB f1 score: 0.332
  414. GB cohens kappa score: 0.330
  415. -> test with 'KNN'
  416. KNN tn, fp: 56138, 725
  417. KNN fn, tp: 76, 23
  418. KNN f1 score: 0.054
  419. KNN cohens kappa score: 0.051
  420. ------ Step 4/5: Slice 2/5 -------
  421. -> Reset the GAN
  422. -> Train generator for synthetic samples
  423. -> create 227059 synthetic samples
  424. -> test with GAN.predict
  425. GAN tn, fp: 56474, 389
  426. GAN fn, tp: 22, 77
  427. GAN f1 score: 0.273
  428. GAN cohens kappa score: 0.270
  429. -> test with 'LR'
  430. LR tn, fp: 54363, 2500
  431. LR fn, tp: 12, 87
  432. LR f1 score: 0.065
  433. LR cohens kappa score: 0.062
  434. LR average precision score: 0.646
  435. -> test with 'GB'
  436. GB tn, fp: 56536, 327
  437. GB fn, tp: 12, 87
  438. GB f1 score: 0.339
  439. GB cohens kappa score: 0.337
  440. -> test with 'KNN'
  441. KNN tn, fp: 55879, 984
  442. KNN fn, tp: 78, 21
  443. KNN f1 score: 0.038
  444. KNN cohens kappa score: 0.035
  445. ------ Step 4/5: Slice 3/5 -------
  446. -> Reset the GAN
  447. -> Train generator for synthetic samples
  448. -> create 227059 synthetic samples
  449. -> test with GAN.predict
  450. GAN tn, fp: 54791, 2072
  451. GAN fn, tp: 11, 88
  452. GAN f1 score: 0.078
  453. GAN cohens kappa score: 0.075
  454. -> test with 'LR'
  455. LR tn, fp: 54784, 2079
  456. LR fn, tp: 10, 89
  457. LR f1 score: 0.079
  458. LR cohens kappa score: 0.075
  459. LR average precision score: 0.733
  460. -> test with 'GB'
  461. GB tn, fp: 56502, 361
  462. GB fn, tp: 12, 87
  463. GB f1 score: 0.318
  464. GB cohens kappa score: 0.316
  465. -> test with 'KNN'
  466. KNN tn, fp: 55465, 1398
  467. KNN fn, tp: 66, 33
  468. KNN f1 score: 0.043
  469. KNN cohens kappa score: 0.040
  470. ------ Step 4/5: Slice 4/5 -------
  471. -> Reset the GAN
  472. -> Train generator for synthetic samples
  473. -> create 227059 synthetic samples
  474. -> test with GAN.predict
  475. GAN tn, fp: 54843, 2020
  476. GAN fn, tp: 8, 91
  477. GAN f1 score: 0.082
  478. GAN cohens kappa score: 0.079
  479. -> test with 'LR'
  480. LR tn, fp: 54175, 2688
  481. LR fn, tp: 9, 90
  482. LR f1 score: 0.063
  483. LR cohens kappa score: 0.059
  484. LR average precision score: 0.741
  485. -> test with 'GB'
  486. GB tn, fp: 56422, 441
  487. GB fn, tp: 10, 89
  488. GB f1 score: 0.283
  489. GB cohens kappa score: 0.281
  490. -> test with 'KNN'
  491. KNN tn, fp: 55767, 1096
  492. KNN fn, tp: 62, 37
  493. KNN f1 score: 0.060
  494. KNN cohens kappa score: 0.057
  495. ------ Step 4/5: Slice 5/5 -------
  496. -> Reset the GAN
  497. -> Train generator for synthetic samples
  498. -> create 227056 synthetic samples
  499. -> test with GAN.predict
  500. GAN tn, fp: 32504, 24359
  501. GAN fn, tp: 0, 96
  502. GAN f1 score: 0.008
  503. GAN cohens kappa score: 0.004
  504. -> test with 'LR'
  505. LR tn, fp: 54932, 1931
  506. LR fn, tp: 11, 85
  507. LR f1 score: 0.080
  508. LR cohens kappa score: 0.078
  509. LR average precision score: 0.718
  510. -> test with 'GB'
  511. GB tn, fp: 56523, 340
  512. GB fn, tp: 15, 81
  513. GB f1 score: 0.313
  514. GB cohens kappa score: 0.311
  515. -> test with 'KNN'
  516. KNN tn, fp: 56062, 801
  517. KNN fn, tp: 71, 25
  518. KNN f1 score: 0.054
  519. KNN cohens kappa score: 0.051
  520. ====== Step 5/5 =======
  521. -> Shuffling data
  522. -> Spliting data to slices
  523. ------ Step 5/5: Slice 1/5 -------
  524. -> Reset the GAN
  525. -> Train generator for synthetic samples
  526. -> create 227059 synthetic samples
  527. -> test with GAN.predict
  528. GAN tn, fp: 56001, 862
  529. GAN fn, tp: 20, 79
  530. GAN f1 score: 0.152
  531. GAN cohens kappa score: 0.149
  532. -> test with 'LR'
  533. LR tn, fp: 53935, 2928
  534. LR fn, tp: 17, 82
  535. LR f1 score: 0.053
  536. LR cohens kappa score: 0.050
  537. LR average precision score: 0.616
  538. -> test with 'GB'
  539. GB tn, fp: 56593, 270
  540. GB fn, tp: 16, 83
  541. GB f1 score: 0.367
  542. GB cohens kappa score: 0.366
  543. -> test with 'KNN'
  544. KNN tn, fp: 55419, 1444
  545. KNN fn, tp: 66, 33
  546. KNN f1 score: 0.042
  547. KNN cohens kappa score: 0.039
  548. ------ Step 5/5: Slice 2/5 -------
  549. -> Reset the GAN
  550. -> Train generator for synthetic samples
  551. -> create 227059 synthetic samples
  552. -> test with GAN.predict
  553. GAN tn, fp: 56691, 172
  554. GAN fn, tp: 30, 69
  555. GAN f1 score: 0.406
  556. GAN cohens kappa score: 0.404
  557. -> test with 'LR'
  558. LR tn, fp: 54246, 2617
  559. LR fn, tp: 5, 94
  560. LR f1 score: 0.067
  561. LR cohens kappa score: 0.064
  562. LR average precision score: 0.746
  563. -> test with 'GB'
  564. GB tn, fp: 56516, 347
  565. GB fn, tp: 8, 91
  566. GB f1 score: 0.339
  567. GB cohens kappa score: 0.337
  568. -> test with 'KNN'
  569. KNN tn, fp: 55656, 1207
  570. KNN fn, tp: 68, 31
  571. KNN f1 score: 0.046
  572. KNN cohens kappa score: 0.043
  573. ------ Step 5/5: Slice 3/5 -------
  574. -> Reset the GAN
  575. -> Train generator for synthetic samples
  576. -> create 227059 synthetic samples
  577. -> test with GAN.predict
  578. GAN tn, fp: 53258, 3605
  579. GAN fn, tp: 13, 86
  580. GAN f1 score: 0.045
  581. GAN cohens kappa score: 0.042
  582. -> test with 'LR'
  583. LR tn, fp: 54527, 2336
  584. LR fn, tp: 11, 88
  585. LR f1 score: 0.070
  586. LR cohens kappa score: 0.067
  587. LR average precision score: 0.671
  588. -> test with 'GB'
  589. GB tn, fp: 56481, 382
  590. GB fn, tp: 13, 86
  591. GB f1 score: 0.303
  592. GB cohens kappa score: 0.301
  593. -> test with 'KNN'
  594. KNN tn, fp: 56334, 529
  595. KNN fn, tp: 74, 25
  596. KNN f1 score: 0.077
  597. KNN cohens kappa score: 0.074
  598. ------ Step 5/5: Slice 4/5 -------
  599. -> Reset the GAN
  600. -> Train generator for synthetic samples
  601. -> create 227059 synthetic samples
  602. -> test with GAN.predict
  603. GAN tn, fp: 55530, 1333
  604. GAN fn, tp: 9, 90
  605. GAN f1 score: 0.118
  606. GAN cohens kappa score: 0.115
  607. -> test with 'LR'
  608. LR tn, fp: 54654, 2209
  609. LR fn, tp: 7, 92
  610. LR f1 score: 0.077
  611. LR cohens kappa score: 0.074
  612. LR average precision score: 0.769
  613. -> test with 'GB'
  614. GB tn, fp: 56451, 412
  615. GB fn, tp: 10, 89
  616. GB f1 score: 0.297
  617. GB cohens kappa score: 0.295
  618. -> test with 'KNN'
  619. KNN tn, fp: 55919, 944
  620. KNN fn, tp: 67, 32
  621. KNN f1 score: 0.060
  622. KNN cohens kappa score: 0.057
  623. ------ Step 5/5: Slice 5/5 -------
  624. -> Reset the GAN
  625. -> Train generator for synthetic samples
  626. -> create 227056 synthetic samples
  627. -> test with GAN.predict
  628. GAN tn, fp: 56221, 642
  629. GAN fn, tp: 13, 83
  630. GAN f1 score: 0.202
  631. GAN cohens kappa score: 0.200
  632. -> test with 'LR'
  633. LR tn, fp: 54469, 2394
  634. LR fn, tp: 11, 85
  635. LR f1 score: 0.066
  636. LR cohens kappa score: 0.063
  637. LR average precision score: 0.659
  638. -> test with 'GB'
  639. GB tn, fp: 56476, 387
  640. GB fn, tp: 9, 87
  641. GB f1 score: 0.305
  642. GB cohens kappa score: 0.303
  643. -> test with 'KNN'
  644. KNN tn, fp: 55591, 1272
  645. KNN fn, tp: 62, 34
  646. KNN f1 score: 0.049
  647. KNN cohens kappa score: 0.046
  648. ### Exercise is done.
  649. -----[ LR ]-----
  650. maximum:
  651. LR tn, fp: 55145, 4109
  652. LR fn, tp: 20, 96
  653. LR f1 score: 0.097
  654. LR cohens kappa score: 0.094
  655. LR average precision score: 0.838
  656. average:
  657. LR tn, fp: 54386.04, 2476.96
  658. LR fn, tp: 9.2, 89.2
  659. LR f1 score: 0.070
  660. LR cohens kappa score: 0.066
  661. LR average precision score: 0.703
  662. minimum:
  663. LR tn, fp: 52754, 1718
  664. LR fn, tp: 3, 79
  665. LR f1 score: 0.040
  666. LR cohens kappa score: 0.037
  667. LR average precision score: 0.518
  668. -----[ GB ]-----
  669. maximum:
  670. GB tn, fp: 56593, 441
  671. GB fn, tp: 19, 92
  672. GB f1 score: 0.367
  673. GB cohens kappa score: 0.366
  674. average:
  675. GB tn, fp: 56494.16, 368.84
  676. GB fn, tp: 11.36, 87.04
  677. GB f1 score: 0.316
  678. GB cohens kappa score: 0.314
  679. minimum:
  680. GB tn, fp: 56422, 270
  681. GB fn, tp: 7, 80
  682. GB f1 score: 0.280
  683. GB cohens kappa score: 0.278
  684. -----[ KNN ]-----
  685. maximum:
  686. KNN tn, fp: 56393, 1681
  687. KNN fn, tp: 78, 40
  688. KNN f1 score: 0.087
  689. KNN cohens kappa score: 0.084
  690. average:
  691. KNN tn, fp: 55832.16, 1030.84
  692. KNN fn, tp: 68.44, 29.96
  693. KNN f1 score: 0.054
  694. KNN cohens kappa score: 0.052
  695. minimum:
  696. KNN tn, fp: 55182, 470
  697. KNN fn, tp: 59, 21
  698. KNN f1 score: 0.031
  699. KNN cohens kappa score: 0.028
  700. -----[ GAN ]-----
  701. maximum:
  702. GAN tn, fp: 56691, 52975
  703. GAN fn, tp: 30, 99
  704. GAN f1 score: 0.413
  705. GAN cohens kappa score: 0.411
  706. average:
  707. GAN tn, fp: 49295.12, 7567.88
  708. GAN fn, tp: 12.84, 85.56
  709. GAN f1 score: 0.141
  710. GAN cohens kappa score: 0.138
  711. minimum:
  712. GAN tn, fp: 3888, 172
  713. GAN fn, tp: 0, 69
  714. GAN f1 score: 0.004
  715. GAN cohens kappa score: 0.000