kaggle_creditcard.log 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. ///////////////////////////////////////////
  2. // Running convGAN-proximary-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: 52781, 4082
  17. GAN fn, tp: 13, 86
  18. GAN f1 score: 0.040
  19. GAN cohens kappa score: 0.037
  20. -> test with 'LR'
  21. LR tn, fp: 53586, 3277
  22. LR fn, tp: 16, 83
  23. LR f1 score: 0.048
  24. LR cohens kappa score: 0.045
  25. LR average precision score: 0.563
  26. -> test with 'GB'
  27. GB tn, fp: 56611, 252
  28. GB fn, tp: 19, 80
  29. GB f1 score: 0.371
  30. GB cohens kappa score: 0.370
  31. -> test with 'KNN'
  32. KNN tn, fp: 55607, 1256
  33. KNN fn, tp: 77, 22
  34. KNN f1 score: 0.032
  35. KNN cohens kappa score: 0.029
  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: 56311, 552
  42. GAN fn, tp: 13, 86
  43. GAN f1 score: 0.233
  44. GAN cohens kappa score: 0.231
  45. -> test with 'LR'
  46. LR tn, fp: 53657, 3206
  47. LR fn, tp: 6, 93
  48. LR f1 score: 0.055
  49. LR cohens kappa score: 0.052
  50. LR average precision score: 0.734
  51. -> test with 'GB'
  52. GB tn, fp: 56464, 399
  53. GB fn, tp: 8, 91
  54. GB f1 score: 0.309
  55. GB cohens kappa score: 0.307
  56. -> test with 'KNN'
  57. KNN tn, fp: 56363, 500
  58. KNN fn, tp: 77, 22
  59. KNN f1 score: 0.071
  60. KNN cohens kappa score: 0.068
  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: 56461, 402
  67. GAN fn, tp: 15, 84
  68. GAN f1 score: 0.287
  69. GAN cohens kappa score: 0.285
  70. -> test with 'LR'
  71. LR tn, fp: 54172, 2691
  72. LR fn, tp: 9, 90
  73. LR f1 score: 0.062
  74. LR cohens kappa score: 0.059
  75. LR average precision score: 0.658
  76. -> test with 'GB'
  77. GB tn, fp: 56516, 347
  78. GB fn, tp: 12, 87
  79. GB f1 score: 0.326
  80. GB cohens kappa score: 0.325
  81. -> test with 'KNN'
  82. KNN tn, fp: 55941, 922
  83. KNN fn, tp: 72, 27
  84. KNN f1 score: 0.052
  85. KNN cohens kappa score: 0.049
  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: 43317, 13546
  92. GAN fn, tp: 3, 96
  93. GAN f1 score: 0.014
  94. GAN cohens kappa score: 0.011
  95. -> test with 'LR'
  96. LR tn, fp: 55008, 1855
  97. LR fn, tp: 6, 93
  98. LR f1 score: 0.091
  99. LR cohens kappa score: 0.088
  100. LR average precision score: 0.791
  101. -> test with 'GB'
  102. GB tn, fp: 56502, 361
  103. GB fn, tp: 8, 91
  104. GB f1 score: 0.330
  105. GB cohens kappa score: 0.328
  106. -> test with 'KNN'
  107. KNN tn, fp: 55804, 1059
  108. KNN fn, tp: 69, 30
  109. KNN f1 score: 0.051
  110. KNN cohens kappa score: 0.047
  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: 51762, 5101
  117. GAN fn, tp: 6, 90
  118. GAN f1 score: 0.034
  119. GAN cohens kappa score: 0.031
  120. -> test with 'LR'
  121. LR tn, fp: 54715, 2148
  122. LR fn, tp: 9, 87
  123. LR f1 score: 0.075
  124. LR cohens kappa score: 0.072
  125. LR average precision score: 0.793
  126. -> test with 'GB'
  127. GB tn, fp: 56391, 472
  128. GB fn, tp: 9, 87
  129. GB f1 score: 0.266
  130. GB cohens kappa score: 0.264
  131. -> test with 'KNN'
  132. KNN tn, fp: 56285, 578
  133. KNN fn, tp: 70, 26
  134. KNN f1 score: 0.074
  135. KNN cohens kappa score: 0.072
  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: 55210, 1653
  145. GAN fn, tp: 12, 87
  146. GAN f1 score: 0.095
  147. GAN cohens kappa score: 0.092
  148. -> test with 'LR'
  149. LR tn, fp: 52822, 4041
  150. LR fn, tp: 12, 87
  151. LR f1 score: 0.041
  152. LR cohens kappa score: 0.038
  153. LR average precision score: 0.701
  154. -> test with 'GB'
  155. GB tn, fp: 56487, 376
  156. GB fn, tp: 10, 89
  157. GB f1 score: 0.316
  158. GB cohens kappa score: 0.314
  159. -> test with 'KNN'
  160. KNN tn, fp: 55426, 1437
  161. KNN fn, tp: 72, 27
  162. KNN f1 score: 0.035
  163. KNN cohens kappa score: 0.031
  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: 52251, 4612
  170. GAN fn, tp: 7, 92
  171. GAN f1 score: 0.038
  172. GAN cohens kappa score: 0.035
  173. -> test with 'LR'
  174. LR tn, fp: 53964, 2899
  175. LR fn, tp: 9, 90
  176. LR f1 score: 0.058
  177. LR cohens kappa score: 0.055
  178. LR average precision score: 0.643
  179. -> test with 'GB'
  180. GB tn, fp: 56403, 460
  181. GB fn, tp: 10, 89
  182. GB f1 score: 0.275
  183. GB cohens kappa score: 0.273
  184. -> test with 'KNN'
  185. KNN tn, fp: 56508, 355
  186. KNN fn, tp: 71, 28
  187. KNN f1 score: 0.116
  188. KNN cohens kappa score: 0.114
  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: 51974, 4889
  195. GAN fn, tp: 4, 95
  196. GAN f1 score: 0.037
  197. GAN cohens kappa score: 0.034
  198. -> test with 'LR'
  199. LR tn, fp: 54274, 2589
  200. LR fn, tp: 10, 89
  201. LR f1 score: 0.064
  202. LR cohens kappa score: 0.061
  203. LR average precision score: 0.659
  204. -> test with 'GB'
  205. GB tn, fp: 56521, 342
  206. GB fn, tp: 11, 88
  207. GB f1 score: 0.333
  208. GB cohens kappa score: 0.331
  209. -> test with 'KNN'
  210. KNN tn, fp: 56110, 753
  211. KNN fn, tp: 68, 31
  212. KNN f1 score: 0.070
  213. KNN cohens kappa score: 0.067
  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: 51109, 5754
  220. GAN fn, tp: 6, 93
  221. GAN f1 score: 0.031
  222. GAN cohens kappa score: 0.028
  223. -> test with 'LR'
  224. LR tn, fp: 54871, 1992
  225. LR fn, tp: 8, 91
  226. LR f1 score: 0.083
  227. LR cohens kappa score: 0.080
  228. LR average precision score: 0.737
  229. -> test with 'GB'
  230. GB tn, fp: 56509, 354
  231. GB fn, tp: 10, 89
  232. GB f1 score: 0.328
  233. GB cohens kappa score: 0.326
  234. -> test with 'KNN'
  235. KNN tn, fp: 56552, 311
  236. KNN fn, tp: 78, 21
  237. KNN f1 score: 0.097
  238. KNN cohens kappa score: 0.095
  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: 56454, 409
  245. GAN fn, tp: 16, 80
  246. GAN f1 score: 0.274
  247. GAN cohens kappa score: 0.271
  248. -> test with 'LR'
  249. LR tn, fp: 54634, 2229
  250. LR fn, tp: 12, 84
  251. LR f1 score: 0.070
  252. LR cohens kappa score: 0.067
  253. LR average precision score: 0.759
  254. -> test with 'GB'
  255. GB tn, fp: 56431, 432
  256. GB fn, tp: 15, 81
  257. GB f1 score: 0.266
  258. GB cohens kappa score: 0.264
  259. -> test with 'KNN'
  260. KNN tn, fp: 56517, 346
  261. KNN fn, tp: 76, 20
  262. KNN f1 score: 0.087
  263. KNN cohens kappa score: 0.084
  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: 52135, 4728
  273. GAN fn, tp: 6, 93
  274. GAN f1 score: 0.038
  275. GAN cohens kappa score: 0.035
  276. -> test with 'LR'
  277. LR tn, fp: 53496, 3367
  278. LR fn, tp: 9, 90
  279. LR f1 score: 0.051
  280. LR cohens kappa score: 0.047
  281. LR average precision score: 0.673
  282. -> test with 'GB'
  283. GB tn, fp: 56438, 425
  284. GB fn, tp: 14, 85
  285. GB f1 score: 0.279
  286. GB cohens kappa score: 0.277
  287. -> test with 'KNN'
  288. KNN tn, fp: 55897, 966
  289. KNN fn, tp: 72, 27
  290. KNN f1 score: 0.049
  291. KNN cohens kappa score: 0.046
  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: 55694, 1169
  298. GAN fn, tp: 12, 87
  299. GAN f1 score: 0.128
  300. GAN cohens kappa score: 0.126
  301. -> test with 'LR'
  302. LR tn, fp: 54640, 2223
  303. LR fn, tp: 7, 92
  304. LR f1 score: 0.076
  305. LR cohens kappa score: 0.073
  306. LR average precision score: 0.686
  307. -> test with 'GB'
  308. GB tn, fp: 56465, 398
  309. GB fn, tp: 10, 89
  310. GB f1 score: 0.304
  311. GB cohens kappa score: 0.302
  312. -> test with 'KNN'
  313. KNN tn, fp: 56045, 818
  314. KNN fn, tp: 70, 29
  315. KNN f1 score: 0.061
  316. KNN cohens kappa score: 0.058
  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: 51836, 5027
  323. GAN fn, tp: 7, 92
  324. GAN f1 score: 0.035
  325. GAN cohens kappa score: 0.032
  326. -> test with 'LR'
  327. LR tn, fp: 54671, 2192
  328. LR fn, tp: 11, 88
  329. LR f1 score: 0.074
  330. LR cohens kappa score: 0.071
  331. LR average precision score: 0.698
  332. -> test with 'GB'
  333. GB tn, fp: 56516, 347
  334. GB fn, tp: 14, 85
  335. GB f1 score: 0.320
  336. GB cohens kappa score: 0.318
  337. -> test with 'KNN'
  338. KNN tn, fp: 56040, 823
  339. KNN fn, tp: 75, 24
  340. KNN f1 score: 0.051
  341. KNN cohens kappa score: 0.048
  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: 56227, 636
  348. GAN fn, tp: 20, 79
  349. GAN f1 score: 0.194
  350. GAN cohens kappa score: 0.192
  351. -> test with 'LR'
  352. LR tn, fp: 54738, 2125
  353. LR fn, tp: 8, 91
  354. LR f1 score: 0.079
  355. LR cohens kappa score: 0.076
  356. LR average precision score: 0.788
  357. -> test with 'GB'
  358. GB tn, fp: 56437, 426
  359. GB fn, tp: 10, 89
  360. GB f1 score: 0.290
  361. GB cohens kappa score: 0.288
  362. -> test with 'KNN'
  363. KNN tn, fp: 56028, 835
  364. KNN fn, tp: 70, 29
  365. KNN f1 score: 0.060
  366. KNN cohens kappa score: 0.057
  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: 46516, 10347
  373. GAN fn, tp: 4, 92
  374. GAN f1 score: 0.017
  375. GAN cohens kappa score: 0.014
  376. -> test with 'LR'
  377. LR tn, fp: 54971, 1892
  378. LR fn, tp: 5, 91
  379. LR f1 score: 0.088
  380. LR cohens kappa score: 0.085
  381. LR average precision score: 0.710
  382. -> test with 'GB'
  383. GB tn, fp: 56528, 335
  384. GB fn, tp: 12, 84
  385. GB f1 score: 0.326
  386. GB cohens kappa score: 0.324
  387. -> test with 'KNN'
  388. KNN tn, fp: 56065, 798
  389. KNN fn, tp: 67, 29
  390. KNN f1 score: 0.063
  391. KNN cohens kappa score: 0.060
  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: 25153, 31710
  401. GAN fn, tp: 2, 97
  402. GAN f1 score: 0.006
  403. GAN cohens kappa score: 0.003
  404. -> test with 'LR'
  405. LR tn, fp: 54080, 2783
  406. LR fn, tp: 3, 96
  407. LR f1 score: 0.064
  408. LR cohens kappa score: 0.061
  409. LR average precision score: 0.680
  410. -> test with 'GB'
  411. GB tn, fp: 56500, 363
  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: 55887, 976
  417. KNN fn, tp: 72, 27
  418. KNN f1 score: 0.049
  419. KNN cohens kappa score: 0.046
  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: 56570, 293
  426. GAN fn, tp: 22, 77
  427. GAN f1 score: 0.328
  428. GAN cohens kappa score: 0.327
  429. -> test with 'LR'
  430. LR tn, fp: 54746, 2117
  431. LR fn, tp: 11, 88
  432. LR f1 score: 0.076
  433. LR cohens kappa score: 0.073
  434. LR average precision score: 0.672
  435. -> test with 'GB'
  436. GB tn, fp: 56506, 357
  437. GB fn, tp: 13, 86
  438. GB f1 score: 0.317
  439. GB cohens kappa score: 0.315
  440. -> test with 'KNN'
  441. KNN tn, fp: 56042, 821
  442. KNN fn, tp: 77, 22
  443. KNN f1 score: 0.047
  444. KNN cohens kappa score: 0.044
  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: 53376, 3487
  451. GAN fn, tp: 11, 88
  452. GAN f1 score: 0.048
  453. GAN cohens kappa score: 0.045
  454. -> test with 'LR'
  455. LR tn, fp: 54690, 2173
  456. LR fn, tp: 10, 89
  457. LR f1 score: 0.075
  458. LR cohens kappa score: 0.072
  459. LR average precision score: 0.723
  460. -> test with 'GB'
  461. GB tn, fp: 56522, 341
  462. GB fn, tp: 11, 88
  463. GB f1 score: 0.333
  464. GB cohens kappa score: 0.331
  465. -> test with 'KNN'
  466. KNN tn, fp: 56189, 674
  467. KNN fn, tp: 74, 25
  468. KNN f1 score: 0.063
  469. KNN cohens kappa score: 0.060
  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: 12505, 44358
  476. GAN fn, tp: 1, 98
  477. GAN f1 score: 0.004
  478. GAN cohens kappa score: 0.001
  479. -> test with 'LR'
  480. LR tn, fp: 54384, 2479
  481. LR fn, tp: 9, 90
  482. LR f1 score: 0.067
  483. LR cohens kappa score: 0.064
  484. LR average precision score: 0.751
  485. -> test with 'GB'
  486. GB tn, fp: 56419, 444
  487. GB fn, tp: 11, 88
  488. GB f1 score: 0.279
  489. GB cohens kappa score: 0.277
  490. -> test with 'KNN'
  491. KNN tn, fp: 56198, 665
  492. KNN fn, tp: 64, 35
  493. KNN f1 score: 0.088
  494. KNN cohens kappa score: 0.085
  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: 55163, 1700
  501. GAN fn, tp: 13, 83
  502. GAN f1 score: 0.088
  503. GAN cohens kappa score: 0.085
  504. -> test with 'LR'
  505. LR tn, fp: 54890, 1973
  506. LR fn, tp: 11, 85
  507. LR f1 score: 0.079
  508. LR cohens kappa score: 0.076
  509. LR average precision score: 0.720
  510. -> test with 'GB'
  511. GB tn, fp: 56487, 376
  512. GB fn, tp: 14, 82
  513. GB f1 score: 0.296
  514. GB cohens kappa score: 0.294
  515. -> test with 'KNN'
  516. KNN tn, fp: 56260, 603
  517. KNN fn, tp: 70, 26
  518. KNN f1 score: 0.072
  519. KNN cohens kappa score: 0.069
  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: 52566, 4297
  529. GAN fn, tp: 12, 87
  530. GAN f1 score: 0.039
  531. GAN cohens kappa score: 0.036
  532. -> test with 'LR'
  533. LR tn, fp: 54385, 2478
  534. LR fn, tp: 11, 88
  535. LR f1 score: 0.066
  536. LR cohens kappa score: 0.063
  537. LR average precision score: 0.630
  538. -> test with 'GB'
  539. GB tn, fp: 56585, 278
  540. GB fn, tp: 16, 83
  541. GB f1 score: 0.361
  542. GB cohens kappa score: 0.359
  543. -> test with 'KNN'
  544. KNN tn, fp: 56156, 707
  545. KNN fn, tp: 75, 24
  546. KNN f1 score: 0.058
  547. KNN cohens kappa score: 0.055
  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: 51554, 5309
  554. GAN fn, tp: 3, 96
  555. GAN f1 score: 0.035
  556. GAN cohens kappa score: 0.032
  557. -> test with 'LR'
  558. LR tn, fp: 54103, 2760
  559. LR fn, tp: 5, 94
  560. LR f1 score: 0.064
  561. LR cohens kappa score: 0.061
  562. LR average precision score: 0.773
  563. -> test with 'GB'
  564. GB tn, fp: 56491, 372
  565. GB fn, tp: 7, 92
  566. GB f1 score: 0.327
  567. GB cohens kappa score: 0.325
  568. -> test with 'KNN'
  569. KNN tn, fp: 56163, 700
  570. KNN fn, tp: 71, 28
  571. KNN f1 score: 0.068
  572. KNN cohens kappa score: 0.065
  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: 55413, 1450
  579. GAN fn, tp: 14, 85
  580. GAN f1 score: 0.104
  581. GAN cohens kappa score: 0.101
  582. -> test with 'LR'
  583. LR tn, fp: 54887, 1976
  584. LR fn, tp: 11, 88
  585. LR f1 score: 0.081
  586. LR cohens kappa score: 0.078
  587. LR average precision score: 0.688
  588. -> test with 'GB'
  589. GB tn, fp: 56491, 372
  590. GB fn, tp: 13, 86
  591. GB f1 score: 0.309
  592. GB cohens kappa score: 0.307
  593. -> test with 'KNN'
  594. KNN tn, fp: 56159, 704
  595. KNN fn, tp: 74, 25
  596. KNN f1 score: 0.060
  597. KNN cohens kappa score: 0.058
  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: 56099, 764
  604. GAN fn, tp: 11, 88
  605. GAN f1 score: 0.185
  606. GAN cohens kappa score: 0.183
  607. -> test with 'LR'
  608. LR tn, fp: 54530, 2333
  609. LR fn, tp: 7, 92
  610. LR f1 score: 0.073
  611. LR cohens kappa score: 0.070
  612. LR average precision score: 0.767
  613. -> test with 'GB'
  614. GB tn, fp: 56486, 377
  615. GB fn, tp: 9, 90
  616. GB f1 score: 0.318
  617. GB cohens kappa score: 0.316
  618. -> test with 'KNN'
  619. KNN tn, fp: 55906, 957
  620. KNN fn, tp: 66, 33
  621. KNN f1 score: 0.061
  622. KNN cohens kappa score: 0.058
  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: 55476, 1387
  629. GAN fn, tp: 12, 84
  630. GAN f1 score: 0.107
  631. GAN cohens kappa score: 0.104
  632. -> test with 'LR'
  633. LR tn, fp: 54225, 2638
  634. LR fn, tp: 9, 87
  635. LR f1 score: 0.062
  636. LR cohens kappa score: 0.059
  637. LR average precision score: 0.653
  638. -> test with 'GB'
  639. GB tn, fp: 56478, 385
  640. GB fn, tp: 9, 87
  641. GB f1 score: 0.306
  642. GB cohens kappa score: 0.304
  643. -> test with 'KNN'
  644. KNN tn, fp: 56508, 355
  645. KNN fn, tp: 73, 23
  646. KNN f1 score: 0.097
  647. KNN cohens kappa score: 0.095
  648. ### Exercise is done.
  649. -----[ LR ]-----
  650. maximum:
  651. LR tn, fp: 55008, 4041
  652. LR fn, tp: 16, 96
  653. LR f1 score: 0.091
  654. LR cohens kappa score: 0.088
  655. LR average precision score: 0.793
  656. average:
  657. LR tn, fp: 54365.56, 2497.44
  658. LR fn, tp: 8.96, 89.44
  659. LR f1 score: 0.069
  660. LR cohens kappa score: 0.066
  661. LR average precision score: 0.706
  662. minimum:
  663. LR tn, fp: 52822, 1855
  664. LR fn, tp: 3, 83
  665. LR f1 score: 0.041
  666. LR cohens kappa score: 0.038
  667. LR average precision score: 0.563
  668. -----[ GB ]-----
  669. maximum:
  670. GB tn, fp: 56611, 472
  671. GB fn, tp: 19, 92
  672. GB f1 score: 0.371
  673. GB cohens kappa score: 0.370
  674. average:
  675. GB tn, fp: 56487.36, 375.64
  676. GB fn, tp: 11.28, 87.12
  677. GB f1 score: 0.313
  678. GB cohens kappa score: 0.311
  679. minimum:
  680. GB tn, fp: 56391, 252
  681. GB fn, tp: 7, 80
  682. GB f1 score: 0.266
  683. GB cohens kappa score: 0.264
  684. -----[ KNN ]-----
  685. maximum:
  686. KNN tn, fp: 56552, 1437
  687. KNN fn, tp: 78, 35
  688. KNN f1 score: 0.116
  689. KNN cohens kappa score: 0.114
  690. average:
  691. KNN tn, fp: 56106.24, 756.76
  692. KNN fn, tp: 72.0, 26.4
  693. KNN f1 score: 0.065
  694. KNN cohens kappa score: 0.062
  695. minimum:
  696. KNN tn, fp: 55426, 311
  697. KNN fn, tp: 64, 20
  698. KNN f1 score: 0.032
  699. KNN cohens kappa score: 0.029
  700. -----[ GAN ]-----
  701. maximum:
  702. GAN tn, fp: 56570, 44358
  703. GAN fn, tp: 22, 98
  704. GAN f1 score: 0.328
  705. GAN cohens kappa score: 0.327
  706. average:
  707. GAN tn, fp: 50556.52, 6306.48
  708. GAN fn, tp: 9.8, 88.6
  709. GAN f1 score: 0.098
  710. GAN cohens kappa score: 0.095
  711. minimum:
  712. GAN tn, fp: 12505, 293
  713. GAN fn, tp: 1, 77
  714. GAN f1 score: 0.004
  715. GAN cohens kappa score: 0.001