kaggle_creditcard.log 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. ///////////////////////////////////////////
  2. // Running convGAN-proximary-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: 34356, 22507
  17. GAN fn, tp: 4, 95
  18. GAN f1 score: 0.008
  19. GAN cohens kappa score: 0.005
  20. -> test with 'LR'
  21. LR tn, fp: 54228, 2635
  22. LR fn, tp: 17, 82
  23. LR f1 score: 0.058
  24. LR cohens kappa score: 0.055
  25. LR average precision score: 0.548
  26. -> test with 'GB'
  27. GB tn, fp: 56650, 213
  28. GB fn, tp: 19, 80
  29. GB f1 score: 0.408
  30. GB cohens kappa score: 0.407
  31. -> test with 'KNN'
  32. KNN tn, fp: 56611, 252
  33. KNN fn, tp: 79, 20
  34. KNN f1 score: 0.108
  35. KNN cohens kappa score: 0.106
  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: 14063, 42800
  42. GAN fn, tp: 1, 98
  43. GAN f1 score: 0.005
  44. GAN cohens kappa score: 0.001
  45. -> test with 'LR'
  46. LR tn, fp: 54148, 2715
  47. LR fn, tp: 6, 93
  48. LR f1 score: 0.064
  49. LR cohens kappa score: 0.061
  50. LR average precision score: 0.725
  51. -> test with 'GB'
  52. GB tn, fp: 56631, 232
  53. GB fn, tp: 10, 89
  54. GB f1 score: 0.424
  55. GB cohens kappa score: 0.422
  56. -> test with 'KNN'
  57. KNN tn, fp: 56682, 181
  58. KNN fn, tp: 79, 20
  59. KNN f1 score: 0.133
  60. KNN cohens kappa score: 0.131
  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: 56736, 127
  67. GAN fn, tp: 47, 52
  68. GAN f1 score: 0.374
  69. GAN cohens kappa score: 0.373
  70. -> test with 'LR'
  71. LR tn, fp: 54573, 2290
  72. LR fn, tp: 9, 90
  73. LR f1 score: 0.073
  74. LR cohens kappa score: 0.070
  75. LR average precision score: 0.663
  76. -> test with 'GB'
  77. GB tn, fp: 56540, 323
  78. GB fn, tp: 13, 86
  79. GB f1 score: 0.339
  80. GB cohens kappa score: 0.337
  81. -> test with 'KNN'
  82. KNN tn, fp: 56565, 298
  83. KNN fn, tp: 77, 22
  84. KNN f1 score: 0.105
  85. KNN cohens kappa score: 0.103
  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: 56733, 130
  92. GAN fn, tp: 33, 66
  93. GAN f1 score: 0.447
  94. GAN cohens kappa score: 0.446
  95. -> test with 'LR'
  96. LR tn, fp: 55214, 1649
  97. LR fn, tp: 7, 92
  98. LR f1 score: 0.100
  99. LR cohens kappa score: 0.097
  100. LR average precision score: 0.751
  101. -> test with 'GB'
  102. GB tn, fp: 56500, 363
  103. GB fn, tp: 7, 92
  104. GB f1 score: 0.332
  105. GB cohens kappa score: 0.330
  106. -> test with 'KNN'
  107. KNN tn, fp: 56575, 288
  108. KNN fn, tp: 73, 26
  109. KNN f1 score: 0.126
  110. KNN cohens kappa score: 0.124
  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: 56708, 155
  117. GAN fn, tp: 23, 73
  118. GAN f1 score: 0.451
  119. GAN cohens kappa score: 0.449
  120. -> test with 'LR'
  121. LR tn, fp: 55107, 1756
  122. LR fn, tp: 7, 89
  123. LR f1 score: 0.092
  124. LR cohens kappa score: 0.089
  125. LR average precision score: 0.857
  126. -> test with 'GB'
  127. GB tn, fp: 56479, 384
  128. GB fn, tp: 9, 87
  129. GB f1 score: 0.307
  130. GB cohens kappa score: 0.305
  131. -> test with 'KNN'
  132. KNN tn, fp: 56549, 314
  133. KNN fn, tp: 70, 26
  134. KNN f1 score: 0.119
  135. KNN cohens kappa score: 0.117
  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: 56555, 308
  145. GAN fn, tp: 29, 70
  146. GAN f1 score: 0.294
  147. GAN cohens kappa score: 0.292
  148. -> test with 'LR'
  149. LR tn, fp: 54544, 2319
  150. LR fn, tp: 7, 92
  151. LR f1 score: 0.073
  152. LR cohens kappa score: 0.070
  153. LR average precision score: 0.750
  154. -> test with 'GB'
  155. GB tn, fp: 56467, 396
  156. GB fn, tp: 10, 89
  157. GB f1 score: 0.305
  158. GB cohens kappa score: 0.303
  159. -> test with 'KNN'
  160. KNN tn, fp: 56641, 222
  161. KNN fn, tp: 78, 21
  162. KNN f1 score: 0.123
  163. KNN cohens kappa score: 0.121
  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: 56756, 107
  170. GAN fn, tp: 48, 51
  171. GAN f1 score: 0.397
  172. GAN cohens kappa score: 0.396
  173. -> test with 'LR'
  174. LR tn, fp: 54054, 2809
  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.608
  179. -> test with 'GB'
  180. GB tn, fp: 56422, 441
  181. GB fn, tp: 9, 90
  182. GB f1 score: 0.286
  183. GB cohens kappa score: 0.284
  184. -> test with 'KNN'
  185. KNN tn, fp: 56512, 351
  186. KNN fn, tp: 69, 30
  187. KNN f1 score: 0.125
  188. KNN cohens kappa score: 0.123
  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: 52985, 3878
  195. GAN fn, tp: 8, 91
  196. GAN f1 score: 0.045
  197. GAN cohens kappa score: 0.041
  198. -> test with 'LR'
  199. LR tn, fp: 54553, 2310
  200. LR fn, tp: 10, 89
  201. LR f1 score: 0.071
  202. LR cohens kappa score: 0.068
  203. LR average precision score: 0.663
  204. -> test with 'GB'
  205. GB tn, fp: 56604, 259
  206. GB fn, tp: 12, 87
  207. GB f1 score: 0.391
  208. GB cohens kappa score: 0.389
  209. -> test with 'KNN'
  210. KNN tn, fp: 56523, 340
  211. KNN fn, tp: 67, 32
  212. KNN f1 score: 0.136
  213. KNN cohens kappa score: 0.134
  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: 56661, 202
  220. GAN fn, tp: 54, 45
  221. GAN f1 score: 0.260
  222. GAN cohens kappa score: 0.258
  223. -> test with 'LR'
  224. LR tn, fp: 55078, 1785
  225. LR fn, tp: 9, 90
  226. LR f1 score: 0.091
  227. LR cohens kappa score: 0.088
  228. LR average precision score: 0.673
  229. -> test with 'GB'
  230. GB tn, fp: 56636, 227
  231. GB fn, tp: 13, 86
  232. GB f1 score: 0.417
  233. GB cohens kappa score: 0.416
  234. -> test with 'KNN'
  235. KNN tn, fp: 56592, 271
  236. KNN fn, tp: 77, 22
  237. KNN f1 score: 0.112
  238. KNN cohens kappa score: 0.110
  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: 56727, 136
  245. GAN fn, tp: 27, 69
  246. GAN f1 score: 0.458
  247. GAN cohens kappa score: 0.457
  248. -> test with 'LR'
  249. LR tn, fp: 54621, 2242
  250. LR fn, tp: 13, 83
  251. LR f1 score: 0.069
  252. LR cohens kappa score: 0.066
  253. LR average precision score: 0.737
  254. -> test with 'GB'
  255. GB tn, fp: 56472, 391
  256. GB fn, tp: 16, 80
  257. GB f1 score: 0.282
  258. GB cohens kappa score: 0.280
  259. -> test with 'KNN'
  260. KNN tn, fp: 56609, 254
  261. KNN fn, tp: 75, 21
  262. KNN f1 score: 0.113
  263. KNN cohens kappa score: 0.111
  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: 55865, 998
  273. GAN fn, tp: 15, 84
  274. GAN f1 score: 0.142
  275. GAN cohens kappa score: 0.140
  276. -> test with 'LR'
  277. LR tn, fp: 55632, 1231
  278. LR fn, tp: 10, 89
  279. LR f1 score: 0.125
  280. LR cohens kappa score: 0.123
  281. LR average precision score: 0.665
  282. -> test with 'GB'
  283. GB tn, fp: 56688, 175
  284. GB fn, tp: 15, 84
  285. GB f1 score: 0.469
  286. GB cohens kappa score: 0.468
  287. -> test with 'KNN'
  288. KNN tn, fp: 56287, 576
  289. KNN fn, tp: 76, 23
  290. KNN f1 score: 0.066
  291. KNN cohens kappa score: 0.063
  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: 4941, 51922
  298. GAN fn, tp: 0, 99
  299. GAN f1 score: 0.004
  300. GAN cohens kappa score: 0.000
  301. -> test with 'LR'
  302. LR tn, fp: 54257, 2606
  303. LR fn, tp: 7, 92
  304. LR f1 score: 0.066
  305. LR cohens kappa score: 0.063
  306. LR average precision score: 0.638
  307. -> test with 'GB'
  308. GB tn, fp: 56482, 381
  309. GB fn, tp: 10, 89
  310. GB f1 score: 0.313
  311. GB cohens kappa score: 0.311
  312. -> test with 'KNN'
  313. KNN tn, fp: 56687, 176
  314. KNN fn, tp: 78, 21
  315. KNN f1 score: 0.142
  316. KNN cohens kappa score: 0.140
  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: 2800, 54063
  323. GAN fn, tp: 0, 99
  324. GAN f1 score: 0.004
  325. GAN cohens kappa score: 0.000
  326. -> test with 'LR'
  327. LR tn, fp: 54766, 2097
  328. LR fn, tp: 10, 89
  329. LR f1 score: 0.078
  330. LR cohens kappa score: 0.075
  331. LR average precision score: 0.722
  332. -> test with 'GB'
  333. GB tn, fp: 56595, 268
  334. GB fn, tp: 13, 86
  335. GB f1 score: 0.380
  336. GB cohens kappa score: 0.378
  337. -> test with 'KNN'
  338. KNN tn, fp: 56578, 285
  339. KNN fn, tp: 77, 22
  340. KNN f1 score: 0.108
  341. KNN cohens kappa score: 0.106
  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: 3270, 53593
  348. GAN fn, tp: 1, 98
  349. GAN f1 score: 0.004
  350. GAN cohens kappa score: 0.000
  351. -> test with 'LR'
  352. LR tn, fp: 54299, 2564
  353. LR fn, tp: 9, 90
  354. LR f1 score: 0.065
  355. LR cohens kappa score: 0.062
  356. LR average precision score: 0.745
  357. -> test with 'GB'
  358. GB tn, fp: 56540, 323
  359. GB fn, tp: 9, 90
  360. GB f1 score: 0.352
  361. GB cohens kappa score: 0.350
  362. -> test with 'KNN'
  363. KNN tn, fp: 56682, 181
  364. KNN fn, tp: 79, 20
  365. KNN f1 score: 0.133
  366. KNN cohens kappa score: 0.131
  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: 47210, 9653
  373. GAN fn, tp: 8, 88
  374. GAN f1 score: 0.018
  375. GAN cohens kappa score: 0.015
  376. -> test with 'LR'
  377. LR tn, fp: 55383, 1480
  378. LR fn, tp: 8, 88
  379. LR f1 score: 0.106
  380. LR cohens kappa score: 0.103
  381. LR average precision score: 0.745
  382. -> test with 'GB'
  383. GB tn, fp: 56536, 327
  384. GB fn, tp: 11, 85
  385. GB f1 score: 0.335
  386. GB cohens kappa score: 0.333
  387. -> test with 'KNN'
  388. KNN tn, fp: 56423, 440
  389. KNN fn, tp: 67, 29
  390. KNN f1 score: 0.103
  391. KNN cohens kappa score: 0.100
  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: 56263, 600
  401. GAN fn, tp: 14, 85
  402. GAN f1 score: 0.217
  403. GAN cohens kappa score: 0.214
  404. -> test with 'LR'
  405. LR tn, fp: 54684, 2179
  406. LR fn, tp: 3, 96
  407. LR f1 score: 0.081
  408. LR cohens kappa score: 0.078
  409. LR average precision score: 0.708
  410. -> test with 'GB'
  411. GB tn, fp: 56502, 361
  412. GB fn, tp: 7, 92
  413. GB f1 score: 0.333
  414. GB cohens kappa score: 0.331
  415. -> test with 'KNN'
  416. KNN tn, fp: 56547, 316
  417. KNN fn, tp: 79, 20
  418. KNN f1 score: 0.092
  419. KNN cohens kappa score: 0.090
  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: 56725, 138
  426. GAN fn, tp: 46, 53
  427. GAN f1 score: 0.366
  428. GAN cohens kappa score: 0.364
  429. -> test with 'LR'
  430. LR tn, fp: 54793, 2070
  431. LR fn, tp: 10, 89
  432. LR f1 score: 0.079
  433. LR cohens kappa score: 0.076
  434. LR average precision score: 0.617
  435. -> test with 'GB'
  436. GB tn, fp: 56571, 292
  437. GB fn, tp: 13, 86
  438. GB f1 score: 0.361
  439. GB cohens kappa score: 0.359
  440. -> test with 'KNN'
  441. KNN tn, fp: 56584, 279
  442. KNN fn, tp: 81, 18
  443. KNN f1 score: 0.091
  444. KNN cohens kappa score: 0.089
  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: 12795, 44068
  451. GAN fn, tp: 2, 97
  452. GAN f1 score: 0.004
  453. GAN cohens kappa score: 0.001
  454. -> test with 'LR'
  455. LR tn, fp: 54916, 1947
  456. LR fn, tp: 11, 88
  457. LR f1 score: 0.082
  458. LR cohens kappa score: 0.079
  459. LR average precision score: 0.712
  460. -> test with 'GB'
  461. GB tn, fp: 56534, 329
  462. GB fn, tp: 13, 86
  463. GB f1 score: 0.335
  464. GB cohens kappa score: 0.333
  465. -> test with 'KNN'
  466. KNN tn, fp: 56686, 177
  467. KNN fn, tp: 77, 22
  468. KNN f1 score: 0.148
  469. KNN cohens kappa score: 0.146
  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: 56655, 208
  476. GAN fn, tp: 21, 78
  477. GAN f1 score: 0.405
  478. GAN cohens kappa score: 0.404
  479. -> test with 'LR'
  480. LR tn, fp: 54798, 2065
  481. LR fn, tp: 8, 91
  482. LR f1 score: 0.081
  483. LR cohens kappa score: 0.078
  484. LR average precision score: 0.766
  485. -> test with 'GB'
  486. GB tn, fp: 56494, 369
  487. GB fn, tp: 11, 88
  488. GB f1 score: 0.317
  489. GB cohens kappa score: 0.315
  490. -> test with 'KNN'
  491. KNN tn, fp: 56532, 331
  492. KNN fn, tp: 64, 35
  493. KNN f1 score: 0.151
  494. KNN cohens kappa score: 0.148
  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: 56750, 113
  501. GAN fn, tp: 49, 47
  502. GAN f1 score: 0.367
  503. GAN cohens kappa score: 0.366
  504. -> test with 'LR'
  505. LR tn, fp: 55501, 1362
  506. LR fn, tp: 11, 85
  507. LR f1 score: 0.110
  508. LR cohens kappa score: 0.107
  509. LR average precision score: 0.716
  510. -> test with 'GB'
  511. GB tn, fp: 56658, 205
  512. GB fn, tp: 14, 82
  513. GB f1 score: 0.428
  514. GB cohens kappa score: 0.427
  515. -> test with 'KNN'
  516. KNN tn, fp: 56454, 409
  517. KNN fn, tp: 72, 24
  518. KNN f1 score: 0.091
  519. KNN cohens kappa score: 0.088
  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: 56685, 178
  529. GAN fn, tp: 44, 55
  530. GAN f1 score: 0.331
  531. GAN cohens kappa score: 0.330
  532. -> test with 'LR'
  533. LR tn, fp: 55050, 1813
  534. LR fn, tp: 15, 84
  535. LR f1 score: 0.084
  536. LR cohens kappa score: 0.081
  537. LR average precision score: 0.652
  538. -> test with 'GB'
  539. GB tn, fp: 56633, 230
  540. GB fn, tp: 19, 80
  541. GB f1 score: 0.391
  542. GB cohens kappa score: 0.390
  543. -> test with 'KNN'
  544. KNN tn, fp: 56440, 423
  545. KNN fn, tp: 72, 27
  546. KNN f1 score: 0.098
  547. KNN cohens kappa score: 0.096
  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: 56704, 159
  554. GAN fn, tp: 28, 71
  555. GAN f1 score: 0.432
  556. GAN cohens kappa score: 0.430
  557. -> test with 'LR'
  558. LR tn, fp: 54787, 2076
  559. LR fn, tp: 5, 94
  560. LR f1 score: 0.083
  561. LR cohens kappa score: 0.080
  562. LR average precision score: 0.767
  563. -> test with 'GB'
  564. GB tn, fp: 56528, 335
  565. GB fn, tp: 8, 91
  566. GB f1 score: 0.347
  567. GB cohens kappa score: 0.345
  568. -> test with 'KNN'
  569. KNN tn, fp: 56461, 402
  570. KNN fn, tp: 69, 30
  571. KNN f1 score: 0.113
  572. KNN cohens kappa score: 0.110
  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: 3197, 53666
  579. GAN fn, tp: 0, 99
  580. GAN f1 score: 0.004
  581. GAN cohens kappa score: 0.000
  582. -> test with 'LR'
  583. LR tn, fp: 55134, 1729
  584. LR fn, tp: 12, 87
  585. LR f1 score: 0.091
  586. LR cohens kappa score: 0.088
  587. LR average precision score: 0.691
  588. -> test with 'GB'
  589. GB tn, fp: 56505, 358
  590. GB fn, tp: 13, 86
  591. GB f1 score: 0.317
  592. GB cohens kappa score: 0.315
  593. -> test with 'KNN'
  594. KNN tn, fp: 56427, 436
  595. KNN fn, tp: 73, 26
  596. KNN f1 score: 0.093
  597. KNN cohens kappa score: 0.090
  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: 56450, 413
  604. GAN fn, tp: 13, 86
  605. GAN f1 score: 0.288
  606. GAN cohens kappa score: 0.286
  607. -> test with 'LR'
  608. LR tn, fp: 54893, 1970
  609. LR fn, tp: 9, 90
  610. LR f1 score: 0.083
  611. LR cohens kappa score: 0.080
  612. LR average precision score: 0.768
  613. -> test with 'GB'
  614. GB tn, fp: 56469, 394
  615. GB fn, tp: 9, 90
  616. GB f1 score: 0.309
  617. GB cohens kappa score: 0.307
  618. -> test with 'KNN'
  619. KNN tn, fp: 56459, 404
  620. KNN fn, tp: 77, 22
  621. KNN f1 score: 0.084
  622. KNN cohens kappa score: 0.081
  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: 51540, 5323
  629. GAN fn, tp: 6, 90
  630. GAN f1 score: 0.033
  631. GAN cohens kappa score: 0.029
  632. -> test with 'LR'
  633. LR tn, fp: 54706, 2157
  634. LR fn, tp: 11, 85
  635. LR f1 score: 0.073
  636. LR cohens kappa score: 0.070
  637. LR average precision score: 0.663
  638. -> test with 'GB'
  639. GB tn, fp: 56556, 307
  640. GB fn, tp: 10, 86
  641. GB f1 score: 0.352
  642. GB cohens kappa score: 0.350
  643. -> test with 'KNN'
  644. KNN tn, fp: 56520, 343
  645. KNN fn, tp: 73, 23
  646. KNN f1 score: 0.100
  647. KNN cohens kappa score: 0.097
  648. ### Exercise is done.
  649. -----[ LR ]-----
  650. maximum:
  651. LR tn, fp: 55632, 2809
  652. LR fn, tp: 17, 96
  653. LR f1 score: 0.125
  654. LR cohens kappa score: 0.123
  655. LR average precision score: 0.857
  656. average:
  657. LR tn, fp: 54788.76, 2074.24
  658. LR fn, tp: 9.44, 88.96
  659. LR f1 score: 0.081
  660. LR cohens kappa score: 0.078
  661. LR average precision score: 0.702
  662. minimum:
  663. LR tn, fp: 54054, 1231
  664. LR fn, tp: 3, 82
  665. LR f1 score: 0.058
  666. LR cohens kappa score: 0.055
  667. LR average precision score: 0.548
  668. -----[ GB ]-----
  669. maximum:
  670. GB tn, fp: 56688, 441
  671. GB fn, tp: 19, 92
  672. GB f1 score: 0.469
  673. GB cohens kappa score: 0.468
  674. average:
  675. GB tn, fp: 56547.68, 315.32
  676. GB fn, tp: 11.72, 86.68
  677. GB f1 score: 0.353
  678. GB cohens kappa score: 0.351
  679. minimum:
  680. GB tn, fp: 56422, 175
  681. GB fn, tp: 7, 80
  682. GB f1 score: 0.282
  683. GB cohens kappa score: 0.280
  684. -----[ KNN ]-----
  685. maximum:
  686. KNN tn, fp: 56687, 576
  687. KNN fn, tp: 81, 35
  688. KNN f1 score: 0.151
  689. KNN cohens kappa score: 0.148
  690. average:
  691. KNN tn, fp: 56545.04, 317.96
  692. KNN fn, tp: 74.32, 24.08
  693. KNN f1 score: 0.112
  694. KNN cohens kappa score: 0.110
  695. minimum:
  696. KNN tn, fp: 56287, 176
  697. KNN fn, tp: 64, 18
  698. KNN f1 score: 0.066
  699. KNN cohens kappa score: 0.063
  700. -----[ GAN ]-----
  701. maximum:
  702. GAN tn, fp: 56756, 54063
  703. GAN fn, tp: 54, 99
  704. GAN f1 score: 0.458
  705. GAN cohens kappa score: 0.457
  706. average:
  707. GAN tn, fp: 43045.2, 13817.8
  708. GAN fn, tp: 20.84, 77.56
  709. GAN f1 score: 0.214
  710. GAN cohens kappa score: 0.212
  711. minimum:
  712. GAN tn, fp: 2800, 107
  713. GAN fn, tp: 0, 45
  714. GAN f1 score: 0.004
  715. GAN cohens kappa score: 0.000