kaggle_creditcard.log 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. ///////////////////////////////////////////
  2. // Running convGAN-majority-5 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: 56164, 699
  17. GAN fn, tp: 36, 63
  18. GAN f1 score: 0.146
  19. GAN cohens kappa score: 0.144
  20. -> test with 'LR'
  21. LR tn, fp: 53960, 2903
  22. LR fn, tp: 16, 83
  23. LR f1 score: 0.054
  24. LR cohens kappa score: 0.051
  25. LR average precision score: 0.568
  26. -> test with 'GB'
  27. GB tn, fp: 56550, 313
  28. GB fn, tp: 19, 80
  29. GB f1 score: 0.325
  30. GB cohens kappa score: 0.323
  31. -> test with 'KNN'
  32. KNN tn, fp: 56654, 209
  33. KNN fn, tp: 78, 21
  34. KNN f1 score: 0.128
  35. KNN cohens kappa score: 0.126
  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: 801, 56062
  42. GAN fn, tp: 0, 99
  43. GAN f1 score: 0.004
  44. GAN cohens kappa score: 0.000
  45. -> test with 'LR'
  46. LR tn, fp: 53519, 3344
  47. LR fn, tp: 6, 93
  48. LR f1 score: 0.053
  49. LR cohens kappa score: 0.049
  50. LR average precision score: 0.711
  51. -> test with 'GB'
  52. GB tn, fp: 56592, 271
  53. GB fn, tp: 10, 89
  54. GB f1 score: 0.388
  55. GB cohens kappa score: 0.386
  56. -> test with 'KNN'
  57. KNN tn, fp: 56676, 187
  58. KNN fn, tp: 81, 18
  59. KNN f1 score: 0.118
  60. KNN cohens kappa score: 0.116
  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: 39860, 17003
  67. GAN fn, tp: 3, 96
  68. GAN f1 score: 0.011
  69. GAN cohens kappa score: 0.008
  70. -> test with 'LR'
  71. LR tn, fp: 55010, 1853
  72. LR fn, tp: 9, 90
  73. LR f1 score: 0.088
  74. LR cohens kappa score: 0.085
  75. LR average precision score: 0.683
  76. -> test with 'GB'
  77. GB tn, fp: 56562, 301
  78. GB fn, tp: 13, 86
  79. GB f1 score: 0.354
  80. GB cohens kappa score: 0.352
  81. -> test with 'KNN'
  82. KNN tn, fp: 56536, 327
  83. KNN fn, tp: 76, 23
  84. KNN f1 score: 0.102
  85. KNN cohens kappa score: 0.100
  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: 56745, 118
  92. GAN fn, tp: 43, 56
  93. GAN f1 score: 0.410
  94. GAN cohens kappa score: 0.409
  95. -> test with 'LR'
  96. LR tn, fp: 55193, 1670
  97. LR fn, tp: 6, 93
  98. LR f1 score: 0.100
  99. LR cohens kappa score: 0.097
  100. LR average precision score: 0.752
  101. -> test with 'GB'
  102. GB tn, fp: 56514, 349
  103. GB fn, tp: 8, 91
  104. GB f1 score: 0.338
  105. GB cohens kappa score: 0.336
  106. -> test with 'KNN'
  107. KNN tn, fp: 56516, 347
  108. KNN fn, tp: 71, 28
  109. KNN f1 score: 0.118
  110. KNN cohens kappa score: 0.116
  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: 991, 55872
  117. GAN fn, tp: 0, 96
  118. GAN f1 score: 0.003
  119. GAN cohens kappa score: 0.000
  120. -> test with 'LR'
  121. LR tn, fp: 55266, 1597
  122. LR fn, tp: 7, 89
  123. LR f1 score: 0.100
  124. LR cohens kappa score: 0.097
  125. LR average precision score: 0.854
  126. -> test with 'GB'
  127. GB tn, fp: 56509, 354
  128. GB fn, tp: 10, 86
  129. GB f1 score: 0.321
  130. GB cohens kappa score: 0.319
  131. -> test with 'KNN'
  132. KNN tn, fp: 56483, 380
  133. KNN fn, tp: 71, 25
  134. KNN f1 score: 0.100
  135. KNN cohens kappa score: 0.097
  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: 27129, 29734
  145. GAN fn, tp: 1, 98
  146. GAN f1 score: 0.007
  147. GAN cohens kappa score: 0.003
  148. -> test with 'LR'
  149. LR tn, fp: 54102, 2761
  150. LR fn, tp: 8, 91
  151. LR f1 score: 0.062
  152. LR cohens kappa score: 0.059
  153. LR average precision score: 0.719
  154. -> test with 'GB'
  155. GB tn, fp: 56469, 394
  156. GB fn, tp: 10, 89
  157. GB f1 score: 0.306
  158. GB cohens kappa score: 0.304
  159. -> test with 'KNN'
  160. KNN tn, fp: 56476, 387
  161. KNN fn, tp: 75, 24
  162. KNN f1 score: 0.094
  163. KNN cohens kappa score: 0.092
  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: 55309, 1554
  170. GAN fn, tp: 13, 86
  171. GAN f1 score: 0.099
  172. GAN cohens kappa score: 0.096
  173. -> test with 'LR'
  174. LR tn, fp: 54067, 2796
  175. LR fn, tp: 12, 87
  176. LR f1 score: 0.058
  177. LR cohens kappa score: 0.055
  178. LR average precision score: 0.611
  179. -> test with 'GB'
  180. GB tn, fp: 56443, 420
  181. GB fn, tp: 11, 88
  182. GB f1 score: 0.290
  183. GB cohens kappa score: 0.288
  184. -> test with 'KNN'
  185. KNN tn, fp: 56541, 322
  186. KNN fn, tp: 71, 28
  187. KNN f1 score: 0.125
  188. KNN cohens kappa score: 0.122
  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: 56670, 193
  195. GAN fn, tp: 49, 50
  196. GAN f1 score: 0.292
  197. GAN cohens kappa score: 0.291
  198. -> test with 'LR'
  199. LR tn, fp: 54617, 2246
  200. LR fn, tp: 10, 89
  201. LR f1 score: 0.073
  202. LR cohens kappa score: 0.070
  203. LR average precision score: 0.653
  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: 56435, 428
  211. KNN fn, tp: 66, 33
  212. KNN f1 score: 0.118
  213. KNN cohens kappa score: 0.115
  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: 56631, 232
  220. GAN fn, tp: 29, 70
  221. GAN f1 score: 0.349
  222. GAN cohens kappa score: 0.347
  223. -> test with 'LR'
  224. LR tn, fp: 55314, 1549
  225. LR fn, tp: 7, 92
  226. LR f1 score: 0.106
  227. LR cohens kappa score: 0.103
  228. LR average precision score: 0.719
  229. -> test with 'GB'
  230. GB tn, fp: 56564, 299
  231. GB fn, tp: 12, 87
  232. GB f1 score: 0.359
  233. GB cohens kappa score: 0.357
  234. -> test with 'KNN'
  235. KNN tn, fp: 56575, 288
  236. KNN fn, tp: 78, 21
  237. KNN f1 score: 0.103
  238. KNN cohens kappa score: 0.101
  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: 56719, 144
  245. GAN fn, tp: 40, 56
  246. GAN f1 score: 0.378
  247. GAN cohens kappa score: 0.377
  248. -> test with 'LR'
  249. LR tn, fp: 54929, 1934
  250. LR fn, tp: 11, 85
  251. LR f1 score: 0.080
  252. LR cohens kappa score: 0.077
  253. LR average precision score: 0.753
  254. -> test with 'GB'
  255. GB tn, fp: 56466, 397
  256. GB fn, tp: 14, 82
  257. GB f1 score: 0.285
  258. GB cohens kappa score: 0.283
  259. -> test with 'KNN'
  260. KNN tn, fp: 56696, 167
  261. KNN fn, tp: 76, 20
  262. KNN f1 score: 0.141
  263. KNN cohens kappa score: 0.139
  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: 55199, 1664
  273. GAN fn, tp: 14, 85
  274. GAN f1 score: 0.092
  275. GAN cohens kappa score: 0.089
  276. -> test with 'LR'
  277. LR tn, fp: 54138, 2725
  278. LR fn, tp: 14, 85
  279. LR f1 score: 0.058
  280. LR cohens kappa score: 0.055
  281. LR average precision score: 0.617
  282. -> test with 'GB'
  283. GB tn, fp: 56598, 265
  284. GB fn, tp: 15, 84
  285. GB f1 score: 0.375
  286. GB cohens kappa score: 0.373
  287. -> test with 'KNN'
  288. KNN tn, fp: 56453, 410
  289. KNN fn, tp: 73, 26
  290. KNN f1 score: 0.097
  291. KNN cohens kappa score: 0.095
  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: 56534, 329
  298. GAN fn, tp: 42, 57
  299. GAN f1 score: 0.235
  300. GAN cohens kappa score: 0.233
  301. -> test with 'LR'
  302. LR tn, fp: 54318, 2545
  303. LR fn, tp: 10, 89
  304. LR f1 score: 0.065
  305. LR cohens kappa score: 0.062
  306. LR average precision score: 0.600
  307. -> test with 'GB'
  308. GB tn, fp: 56555, 308
  309. GB fn, tp: 11, 88
  310. GB f1 score: 0.356
  311. GB cohens kappa score: 0.354
  312. -> test with 'KNN'
  313. KNN tn, fp: 56453, 410
  314. KNN fn, tp: 71, 28
  315. KNN f1 score: 0.104
  316. KNN cohens kappa score: 0.102
  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: 56114, 749
  323. GAN fn, tp: 15, 84
  324. GAN f1 score: 0.180
  325. GAN cohens kappa score: 0.178
  326. -> test with 'LR'
  327. LR tn, fp: 55387, 1476
  328. LR fn, tp: 11, 88
  329. LR f1 score: 0.106
  330. LR cohens kappa score: 0.103
  331. LR average precision score: 0.721
  332. -> test with 'GB'
  333. GB tn, fp: 56653, 210
  334. GB fn, tp: 14, 85
  335. GB f1 score: 0.431
  336. GB cohens kappa score: 0.430
  337. -> test with 'KNN'
  338. KNN tn, fp: 56285, 578
  339. KNN fn, tp: 71, 28
  340. KNN f1 score: 0.079
  341. KNN cohens kappa score: 0.077
  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: 50741, 6122
  348. GAN fn, tp: 6, 93
  349. GAN f1 score: 0.029
  350. GAN cohens kappa score: 0.026
  351. -> test with 'LR'
  352. LR tn, fp: 55113, 1750
  353. LR fn, tp: 9, 90
  354. LR f1 score: 0.093
  355. LR cohens kappa score: 0.090
  356. LR average precision score: 0.796
  357. -> test with 'GB'
  358. GB tn, fp: 56531, 332
  359. GB fn, tp: 9, 90
  360. GB f1 score: 0.345
  361. GB cohens kappa score: 0.344
  362. -> test with 'KNN'
  363. KNN tn, fp: 56470, 393
  364. KNN fn, tp: 76, 23
  365. KNN f1 score: 0.089
  366. KNN cohens kappa score: 0.087
  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: 56592, 271
  373. GAN fn, tp: 28, 68
  374. GAN f1 score: 0.313
  375. GAN cohens kappa score: 0.311
  376. -> test with 'LR'
  377. LR tn, fp: 55327, 1536
  378. LR fn, tp: 10, 86
  379. LR f1 score: 0.100
  380. LR cohens kappa score: 0.097
  381. LR average precision score: 0.760
  382. -> test with 'GB'
  383. GB tn, fp: 56555, 308
  384. GB fn, tp: 12, 84
  385. GB f1 score: 0.344
  386. GB cohens kappa score: 0.342
  387. -> test with 'KNN'
  388. KNN tn, fp: 56420, 443
  389. KNN fn, tp: 66, 30
  390. KNN f1 score: 0.105
  391. KNN cohens kappa score: 0.103
  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: 23078, 33785
  401. GAN fn, tp: 3, 96
  402. GAN f1 score: 0.006
  403. GAN cohens kappa score: 0.002
  404. -> test with 'LR'
  405. LR tn, fp: 54806, 2057
  406. LR fn, tp: 5, 94
  407. LR f1 score: 0.084
  408. LR cohens kappa score: 0.081
  409. LR average precision score: 0.702
  410. -> test with 'GB'
  411. GB tn, fp: 56518, 345
  412. GB fn, tp: 8, 91
  413. GB f1 score: 0.340
  414. GB cohens kappa score: 0.338
  415. -> test with 'KNN'
  416. KNN tn, fp: 56571, 292
  417. KNN fn, tp: 77, 22
  418. KNN f1 score: 0.107
  419. KNN cohens kappa score: 0.104
  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: 53630, 3233
  426. GAN fn, tp: 11, 88
  427. GAN f1 score: 0.051
  428. GAN cohens kappa score: 0.048
  429. -> test with 'LR'
  430. LR tn, fp: 54935, 1928
  431. LR fn, tp: 12, 87
  432. LR f1 score: 0.082
  433. LR cohens kappa score: 0.079
  434. LR average precision score: 0.651
  435. -> test with 'GB'
  436. GB tn, fp: 56553, 310
  437. GB fn, tp: 12, 87
  438. GB f1 score: 0.351
  439. GB cohens kappa score: 0.349
  440. -> test with 'KNN'
  441. KNN tn, fp: 56392, 471
  442. KNN fn, tp: 80, 19
  443. KNN f1 score: 0.065
  444. KNN cohens kappa score: 0.062
  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: 56154, 709
  451. GAN fn, tp: 19, 80
  452. GAN f1 score: 0.180
  453. GAN cohens kappa score: 0.178
  454. -> test with 'LR'
  455. LR tn, fp: 54382, 2481
  456. LR fn, tp: 15, 84
  457. LR f1 score: 0.063
  458. LR cohens kappa score: 0.060
  459. LR average precision score: 0.684
  460. -> test with 'GB'
  461. GB tn, fp: 56479, 384
  462. GB fn, tp: 12, 87
  463. GB f1 score: 0.305
  464. GB cohens kappa score: 0.303
  465. -> test with 'KNN'
  466. KNN tn, fp: 56490, 373
  467. KNN fn, tp: 69, 30
  468. KNN f1 score: 0.120
  469. KNN cohens kappa score: 0.117
  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: 41568, 15295
  476. GAN fn, tp: 2, 97
  477. GAN f1 score: 0.013
  478. GAN cohens kappa score: 0.009
  479. -> test with 'LR'
  480. LR tn, fp: 54841, 2022
  481. LR fn, tp: 7, 92
  482. LR f1 score: 0.083
  483. LR cohens kappa score: 0.080
  484. LR average precision score: 0.762
  485. -> test with 'GB'
  486. GB tn, fp: 56487, 376
  487. GB fn, tp: 11, 88
  488. GB f1 score: 0.313
  489. GB cohens kappa score: 0.311
  490. -> test with 'KNN'
  491. KNN tn, fp: 56549, 314
  492. KNN fn, tp: 66, 33
  493. KNN f1 score: 0.148
  494. KNN cohens kappa score: 0.146
  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: 54292, 2571
  501. GAN fn, tp: 10, 86
  502. GAN f1 score: 0.062
  503. GAN cohens kappa score: 0.059
  504. -> test with 'LR'
  505. LR tn, fp: 54314, 2549
  506. LR fn, tp: 7, 89
  507. LR f1 score: 0.065
  508. LR cohens kappa score: 0.062
  509. LR average precision score: 0.737
  510. -> test with 'GB'
  511. GB tn, fp: 56610, 253
  512. GB fn, tp: 15, 81
  513. GB f1 score: 0.377
  514. GB cohens kappa score: 0.375
  515. -> test with 'KNN'
  516. KNN tn, fp: 56559, 304
  517. KNN fn, tp: 71, 25
  518. KNN f1 score: 0.118
  519. KNN cohens kappa score: 0.115
  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: 56153, 710
  529. GAN fn, tp: 24, 75
  530. GAN f1 score: 0.170
  531. GAN cohens kappa score: 0.167
  532. -> test with 'LR'
  533. LR tn, fp: 53916, 2947
  534. LR fn, tp: 16, 83
  535. LR f1 score: 0.053
  536. LR cohens kappa score: 0.050
  537. LR average precision score: 0.612
  538. -> test with 'GB'
  539. GB tn, fp: 56623, 240
  540. GB fn, tp: 18, 81
  541. GB f1 score: 0.386
  542. GB cohens kappa score: 0.384
  543. -> test with 'KNN'
  544. KNN tn, fp: 56702, 161
  545. KNN fn, tp: 77, 22
  546. KNN f1 score: 0.156
  547. KNN cohens kappa score: 0.154
  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: 55608, 1255
  554. GAN fn, tp: 10, 89
  555. GAN f1 score: 0.123
  556. GAN cohens kappa score: 0.121
  557. -> test with 'LR'
  558. LR tn, fp: 55396, 1467
  559. LR fn, tp: 6, 93
  560. LR f1 score: 0.112
  561. LR cohens kappa score: 0.109
  562. LR average precision score: 0.781
  563. -> test with 'GB'
  564. GB tn, fp: 56562, 301
  565. GB fn, tp: 7, 92
  566. GB f1 score: 0.374
  567. GB cohens kappa score: 0.372
  568. -> test with 'KNN'
  569. KNN tn, fp: 56379, 484
  570. KNN fn, tp: 68, 31
  571. KNN f1 score: 0.101
  572. KNN cohens kappa score: 0.098
  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: 53055, 3808
  579. GAN fn, tp: 12, 87
  580. GAN f1 score: 0.044
  581. GAN cohens kappa score: 0.040
  582. -> test with 'LR'
  583. LR tn, fp: 55211, 1652
  584. LR fn, tp: 12, 87
  585. LR f1 score: 0.095
  586. LR cohens kappa score: 0.092
  587. LR average precision score: 0.656
  588. -> test with 'GB'
  589. GB tn, fp: 56539, 324
  590. GB fn, tp: 12, 87
  591. GB f1 score: 0.341
  592. GB cohens kappa score: 0.339
  593. -> test with 'KNN'
  594. KNN tn, fp: 56461, 402
  595. KNN fn, tp: 74, 25
  596. KNN f1 score: 0.095
  597. KNN cohens kappa score: 0.092
  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: 32505, 24358
  604. GAN fn, tp: 1, 98
  605. GAN f1 score: 0.008
  606. GAN cohens kappa score: 0.005
  607. -> test with 'LR'
  608. LR tn, fp: 54241, 2622
  609. LR fn, tp: 11, 88
  610. LR f1 score: 0.063
  611. LR cohens kappa score: 0.060
  612. LR average precision score: 0.745
  613. -> test with 'GB'
  614. GB tn, fp: 56438, 425
  615. GB fn, tp: 9, 90
  616. GB f1 score: 0.293
  617. GB cohens kappa score: 0.291
  618. -> test with 'KNN'
  619. KNN tn, fp: 56668, 195
  620. KNN fn, tp: 78, 21
  621. KNN f1 score: 0.133
  622. KNN cohens kappa score: 0.131
  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: 56149, 714
  629. GAN fn, tp: 14, 82
  630. GAN f1 score: 0.184
  631. GAN cohens kappa score: 0.181
  632. -> test with 'LR'
  633. LR tn, fp: 54754, 2109
  634. LR fn, tp: 7, 89
  635. LR f1 score: 0.078
  636. LR cohens kappa score: 0.075
  637. LR average precision score: 0.658
  638. -> test with 'GB'
  639. GB tn, fp: 56468, 395
  640. GB fn, tp: 8, 88
  641. GB f1 score: 0.304
  642. GB cohens kappa score: 0.302
  643. -> test with 'KNN'
  644. KNN tn, fp: 56594, 269
  645. KNN fn, tp: 72, 24
  646. KNN f1 score: 0.123
  647. KNN cohens kappa score: 0.121
  648. ### Exercise is done.
  649. -----[ LR ]-----
  650. maximum:
  651. LR tn, fp: 55396, 3344
  652. LR fn, tp: 16, 94
  653. LR f1 score: 0.112
  654. LR cohens kappa score: 0.109
  655. LR average precision score: 0.854
  656. average:
  657. LR tn, fp: 54682.24, 2180.76
  658. LR fn, tp: 9.76, 88.64
  659. LR f1 score: 0.079
  660. LR cohens kappa score: 0.076
  661. LR average precision score: 0.700
  662. minimum:
  663. LR tn, fp: 53519, 1467
  664. LR fn, tp: 5, 83
  665. LR f1 score: 0.053
  666. LR cohens kappa score: 0.049
  667. LR average precision score: 0.568
  668. -----[ GB ]-----
  669. maximum:
  670. GB tn, fp: 56653, 425
  671. GB fn, tp: 19, 92
  672. GB f1 score: 0.431
  673. GB cohens kappa score: 0.430
  674. average:
  675. GB tn, fp: 56534.52, 328.48
  676. GB fn, tp: 11.68, 86.72
  677. GB f1 score: 0.341
  678. GB cohens kappa score: 0.339
  679. minimum:
  680. GB tn, fp: 56438, 210
  681. GB fn, tp: 7, 80
  682. GB f1 score: 0.285
  683. GB cohens kappa score: 0.283
  684. -----[ KNN ]-----
  685. maximum:
  686. KNN tn, fp: 56702, 578
  687. KNN fn, tp: 81, 33
  688. KNN f1 score: 0.156
  689. KNN cohens kappa score: 0.154
  690. average:
  691. KNN tn, fp: 56521.36, 341.64
  692. KNN fn, tp: 73.28, 25.12
  693. KNN f1 score: 0.112
  694. KNN cohens kappa score: 0.109
  695. minimum:
  696. KNN tn, fp: 56285, 161
  697. KNN fn, tp: 66, 18
  698. KNN f1 score: 0.065
  699. KNN cohens kappa score: 0.062
  700. -----[ GAN ]-----
  701. maximum:
  702. GAN tn, fp: 56745, 56062
  703. GAN fn, tp: 49, 99
  704. GAN f1 score: 0.410
  705. GAN cohens kappa score: 0.409
  706. average:
  707. GAN tn, fp: 46575.64, 10287.36
  708. GAN fn, tp: 17.0, 81.4
  709. GAN f1 score: 0.136
  710. GAN cohens kappa score: 0.133
  711. minimum:
  712. GAN tn, fp: 801, 118
  713. GAN fn, tp: 0, 50
  714. GAN f1 score: 0.003
  715. GAN cohens kappa score: 0.000