kaggle_creditcard.log 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. ///////////////////////////////////////////
  2. // Running ProWRAS 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 'LR'
  16. LR tn, fp: 56773, 90
  17. LR fn, tp: 25, 74
  18. LR f1 score: 0.563
  19. LR cohens kappa score: 0.562
  20. LR average precision score: 0.550
  21. -> test with 'GB'
  22. GB tn, fp: 56841, 22
  23. GB fn, tp: 27, 72
  24. GB f1 score: 0.746
  25. GB cohens kappa score: 0.746
  26. -> test with 'KNN'
  27. KNN tn, fp: 56730, 133
  28. KNN fn, tp: 84, 15
  29. KNN f1 score: 0.121
  30. KNN cohens kappa score: 0.120
  31. ------ Step 1/5: Slice 2/5 -------
  32. -> Reset the GAN
  33. -> Train generator for synthetic samples
  34. -> create 227059 synthetic samples
  35. -> test with 'LR'
  36. LR tn, fp: 56357, 506
  37. LR fn, tp: 13, 86
  38. LR f1 score: 0.249
  39. LR cohens kappa score: 0.247
  40. LR average precision score: 0.713
  41. -> test with 'GB'
  42. GB tn, fp: 56852, 11
  43. GB fn, tp: 19, 80
  44. GB f1 score: 0.842
  45. GB cohens kappa score: 0.842
  46. -> test with 'KNN'
  47. KNN tn, fp: 56696, 167
  48. KNN fn, tp: 88, 11
  49. KNN f1 score: 0.079
  50. KNN cohens kappa score: 0.077
  51. ------ Step 1/5: Slice 3/5 -------
  52. -> Reset the GAN
  53. -> Train generator for synthetic samples
  54. -> create 227059 synthetic samples
  55. -> test with 'LR'
  56. LR tn, fp: 56625, 238
  57. LR fn, tp: 14, 85
  58. LR f1 score: 0.403
  59. LR cohens kappa score: 0.401
  60. LR average precision score: 0.721
  61. -> test with 'GB'
  62. GB tn, fp: 56847, 16
  63. GB fn, tp: 16, 83
  64. GB f1 score: 0.838
  65. GB cohens kappa score: 0.838
  66. -> test with 'KNN'
  67. KNN tn, fp: 56725, 138
  68. KNN fn, tp: 91, 8
  69. KNN f1 score: 0.065
  70. KNN cohens kappa score: 0.063
  71. ------ Step 1/5: Slice 4/5 -------
  72. -> Reset the GAN
  73. -> Train generator for synthetic samples
  74. -> create 227059 synthetic samples
  75. -> test with 'LR'
  76. LR tn, fp: 56688, 175
  77. LR fn, tp: 12, 87
  78. LR f1 score: 0.482
  79. LR cohens kappa score: 0.481
  80. LR average precision score: 0.776
  81. -> test with 'GB'
  82. GB tn, fp: 56848, 15
  83. GB fn, tp: 17, 82
  84. GB f1 score: 0.837
  85. GB cohens kappa score: 0.836
  86. -> test with 'KNN'
  87. KNN tn, fp: 56744, 119
  88. KNN fn, tp: 85, 14
  89. KNN f1 score: 0.121
  90. KNN cohens kappa score: 0.119
  91. ------ Step 1/5: Slice 5/5 -------
  92. -> Reset the GAN
  93. -> Train generator for synthetic samples
  94. -> create 227056 synthetic samples
  95. -> test with 'LR'
  96. LR tn, fp: 56571, 292
  97. LR fn, tp: 11, 85
  98. LR f1 score: 0.359
  99. LR cohens kappa score: 0.358
  100. LR average precision score: 0.845
  101. -> test with 'GB'
  102. GB tn, fp: 56854, 9
  103. GB fn, tp: 16, 80
  104. GB f1 score: 0.865
  105. GB cohens kappa score: 0.865
  106. -> test with 'KNN'
  107. KNN tn, fp: 56730, 133
  108. KNN fn, tp: 86, 10
  109. KNN f1 score: 0.084
  110. KNN cohens kappa score: 0.082
  111. ====== Step 2/5 =======
  112. -> Shuffling data
  113. -> Spliting data to slices
  114. ------ Step 2/5: Slice 1/5 -------
  115. -> Reset the GAN
  116. -> Train generator for synthetic samples
  117. -> create 227059 synthetic samples
  118. -> test with 'LR'
  119. LR tn, fp: 56593, 270
  120. LR fn, tp: 13, 86
  121. LR f1 score: 0.378
  122. LR cohens kappa score: 0.376
  123. LR average precision score: 0.746
  124. -> test with 'GB'
  125. GB tn, fp: 56843, 20
  126. GB fn, tp: 14, 85
  127. GB f1 score: 0.833
  128. GB cohens kappa score: 0.833
  129. -> test with 'KNN'
  130. KNN tn, fp: 56675, 188
  131. KNN fn, tp: 85, 14
  132. KNN f1 score: 0.093
  133. KNN cohens kappa score: 0.091
  134. ------ Step 2/5: Slice 2/5 -------
  135. -> Reset the GAN
  136. -> Train generator for synthetic samples
  137. -> create 227059 synthetic samples
  138. -> test with 'LR'
  139. LR tn, fp: 56531, 332
  140. LR fn, tp: 13, 86
  141. LR f1 score: 0.333
  142. LR cohens kappa score: 0.331
  143. LR average precision score: 0.666
  144. -> test with 'GB'
  145. GB tn, fp: 56840, 23
  146. GB fn, tp: 17, 82
  147. GB f1 score: 0.804
  148. GB cohens kappa score: 0.804
  149. -> test with 'KNN'
  150. KNN tn, fp: 56724, 139
  151. KNN fn, tp: 89, 10
  152. KNN f1 score: 0.081
  153. KNN cohens kappa score: 0.079
  154. ------ Step 2/5: Slice 3/5 -------
  155. -> Reset the GAN
  156. -> Train generator for synthetic samples
  157. -> create 227059 synthetic samples
  158. -> test with 'LR'
  159. LR tn, fp: 56701, 162
  160. LR fn, tp: 16, 83
  161. LR f1 score: 0.483
  162. LR cohens kappa score: 0.481
  163. LR average precision score: 0.728
  164. -> test with 'GB'
  165. GB tn, fp: 56851, 12
  166. GB fn, tp: 21, 78
  167. GB f1 score: 0.825
  168. GB cohens kappa score: 0.825
  169. -> test with 'KNN'
  170. KNN tn, fp: 56709, 154
  171. KNN fn, tp: 86, 13
  172. KNN f1 score: 0.098
  173. KNN cohens kappa score: 0.096
  174. ------ Step 2/5: Slice 4/5 -------
  175. -> Reset the GAN
  176. -> Train generator for synthetic samples
  177. -> create 227059 synthetic samples
  178. -> test with 'LR'
  179. LR tn, fp: 56521, 342
  180. LR fn, tp: 18, 81
  181. LR f1 score: 0.310
  182. LR cohens kappa score: 0.308
  183. LR average precision score: 0.702
  184. -> test with 'GB'
  185. GB tn, fp: 56853, 10
  186. GB fn, tp: 25, 74
  187. GB f1 score: 0.809
  188. GB cohens kappa score: 0.808
  189. -> test with 'KNN'
  190. KNN tn, fp: 56742, 121
  191. KNN fn, tp: 86, 13
  192. KNN f1 score: 0.112
  193. KNN cohens kappa score: 0.110
  194. ------ Step 2/5: Slice 5/5 -------
  195. -> Reset the GAN
  196. -> Train generator for synthetic samples
  197. -> create 227056 synthetic samples
  198. -> test with 'LR'
  199. LR tn, fp: 56663, 200
  200. LR fn, tp: 19, 77
  201. LR f1 score: 0.413
  202. LR cohens kappa score: 0.411
  203. LR average precision score: 0.751
  204. -> test with 'GB'
  205. GB tn, fp: 56848, 15
  206. GB fn, tp: 21, 75
  207. GB f1 score: 0.806
  208. GB cohens kappa score: 0.806
  209. -> test with 'KNN'
  210. KNN tn, fp: 56742, 121
  211. KNN fn, tp: 83, 13
  212. KNN f1 score: 0.113
  213. KNN cohens kappa score: 0.111
  214. ====== Step 3/5 =======
  215. -> Shuffling data
  216. -> Spliting data to slices
  217. ------ Step 3/5: Slice 1/5 -------
  218. -> Reset the GAN
  219. -> Train generator for synthetic samples
  220. -> create 227059 synthetic samples
  221. -> test with 'LR'
  222. LR tn, fp: 56781, 82
  223. LR fn, tp: 21, 78
  224. LR f1 score: 0.602
  225. LR cohens kappa score: 0.601
  226. LR average precision score: 0.657
  227. -> test with 'GB'
  228. GB tn, fp: 56835, 28
  229. GB fn, tp: 24, 75
  230. GB f1 score: 0.743
  231. GB cohens kappa score: 0.742
  232. -> test with 'KNN'
  233. KNN tn, fp: 56708, 155
  234. KNN fn, tp: 88, 11
  235. KNN f1 score: 0.083
  236. KNN cohens kappa score: 0.081
  237. ------ Step 3/5: Slice 2/5 -------
  238. -> Reset the GAN
  239. -> Train generator for synthetic samples
  240. -> create 227059 synthetic samples
  241. -> test with 'LR'
  242. LR tn, fp: 56753, 110
  243. LR fn, tp: 17, 82
  244. LR f1 score: 0.564
  245. LR cohens kappa score: 0.563
  246. LR average precision score: 0.660
  247. -> test with 'GB'
  248. GB tn, fp: 56844, 19
  249. GB fn, tp: 17, 82
  250. GB f1 score: 0.820
  251. GB cohens kappa score: 0.820
  252. -> test with 'KNN'
  253. KNN tn, fp: 56710, 153
  254. KNN fn, tp: 88, 11
  255. KNN f1 score: 0.084
  256. KNN cohens kappa score: 0.082
  257. ------ Step 3/5: Slice 3/5 -------
  258. -> Reset the GAN
  259. -> Train generator for synthetic samples
  260. -> create 227059 synthetic samples
  261. -> test with 'LR'
  262. LR tn, fp: 55881, 982
  263. LR fn, tp: 15, 84
  264. LR f1 score: 0.144
  265. LR cohens kappa score: 0.141
  266. LR average precision score: 0.702
  267. -> test with 'GB'
  268. GB tn, fp: 56853, 10
  269. GB fn, tp: 18, 81
  270. GB f1 score: 0.853
  271. GB cohens kappa score: 0.852
  272. -> test with 'KNN'
  273. KNN tn, fp: 56714, 149
  274. KNN fn, tp: 85, 14
  275. KNN f1 score: 0.107
  276. KNN cohens kappa score: 0.105
  277. ------ Step 3/5: Slice 4/5 -------
  278. -> Reset the GAN
  279. -> Train generator for synthetic samples
  280. -> create 227059 synthetic samples
  281. -> test with 'LR'
  282. LR tn, fp: 56492, 371
  283. LR fn, tp: 11, 88
  284. LR f1 score: 0.315
  285. LR cohens kappa score: 0.313
  286. LR average precision score: 0.796
  287. -> test with 'GB'
  288. GB tn, fp: 56850, 13
  289. GB fn, tp: 17, 82
  290. GB f1 score: 0.845
  291. GB cohens kappa score: 0.845
  292. -> test with 'KNN'
  293. KNN tn, fp: 56709, 154
  294. KNN fn, tp: 87, 12
  295. KNN f1 score: 0.091
  296. KNN cohens kappa score: 0.089
  297. ------ Step 3/5: Slice 5/5 -------
  298. -> Reset the GAN
  299. -> Train generator for synthetic samples
  300. -> create 227056 synthetic samples
  301. -> test with 'LR'
  302. LR tn, fp: 56660, 203
  303. LR fn, tp: 17, 79
  304. LR f1 score: 0.418
  305. LR cohens kappa score: 0.417
  306. LR average precision score: 0.761
  307. -> test with 'GB'
  308. GB tn, fp: 56851, 12
  309. GB fn, tp: 21, 75
  310. GB f1 score: 0.820
  311. GB cohens kappa score: 0.819
  312. -> test with 'KNN'
  313. KNN tn, fp: 56747, 116
  314. KNN fn, tp: 85, 11
  315. KNN f1 score: 0.099
  316. KNN cohens kappa score: 0.097
  317. ====== Step 4/5 =======
  318. -> Shuffling data
  319. -> Spliting data to slices
  320. ------ Step 4/5: Slice 1/5 -------
  321. -> Reset the GAN
  322. -> Train generator for synthetic samples
  323. -> create 227059 synthetic samples
  324. -> test with 'LR'
  325. LR tn, fp: 56418, 445
  326. LR fn, tp: 11, 88
  327. LR f1 score: 0.278
  328. LR cohens kappa score: 0.276
  329. LR average precision score: 0.717
  330. -> test with 'GB'
  331. GB tn, fp: 56849, 14
  332. GB fn, tp: 16, 83
  333. GB f1 score: 0.847
  334. GB cohens kappa score: 0.847
  335. -> test with 'KNN'
  336. KNN tn, fp: 56722, 141
  337. KNN fn, tp: 89, 10
  338. KNN f1 score: 0.080
  339. KNN cohens kappa score: 0.078
  340. ------ Step 4/5: Slice 2/5 -------
  341. -> Reset the GAN
  342. -> Train generator for synthetic samples
  343. -> create 227059 synthetic samples
  344. -> test with 'LR'
  345. LR tn, fp: 55857, 1006
  346. LR fn, tp: 16, 83
  347. LR f1 score: 0.140
  348. LR cohens kappa score: 0.137
  349. LR average precision score: 0.593
  350. -> test with 'GB'
  351. GB tn, fp: 56845, 18
  352. GB fn, tp: 18, 81
  353. GB f1 score: 0.818
  354. GB cohens kappa score: 0.818
  355. -> test with 'KNN'
  356. KNN tn, fp: 56726, 137
  357. KNN fn, tp: 91, 8
  358. KNN f1 score: 0.066
  359. KNN cohens kappa score: 0.064
  360. ------ Step 4/5: Slice 3/5 -------
  361. -> Reset the GAN
  362. -> Train generator for synthetic samples
  363. -> create 227059 synthetic samples
  364. -> test with 'LR'
  365. LR tn, fp: 55612, 1251
  366. LR fn, tp: 17, 82
  367. LR f1 score: 0.115
  368. LR cohens kappa score: 0.112
  369. LR average precision score: 0.675
  370. -> test with 'GB'
  371. GB tn, fp: 56853, 10
  372. GB fn, tp: 26, 73
  373. GB f1 score: 0.802
  374. GB cohens kappa score: 0.802
  375. -> test with 'KNN'
  376. KNN tn, fp: 56710, 153
  377. KNN fn, tp: 84, 15
  378. KNN f1 score: 0.112
  379. KNN cohens kappa score: 0.110
  380. ------ Step 4/5: Slice 4/5 -------
  381. -> Reset the GAN
  382. -> Train generator for synthetic samples
  383. -> create 227059 synthetic samples
  384. -> test with 'LR'
  385. LR tn, fp: 56830, 33
  386. LR fn, tp: 17, 82
  387. LR f1 score: 0.766
  388. LR cohens kappa score: 0.766
  389. LR average precision score: 0.763
  390. -> test with 'GB'
  391. GB tn, fp: 56855, 8
  392. GB fn, tp: 21, 78
  393. GB f1 score: 0.843
  394. GB cohens kappa score: 0.843
  395. -> test with 'KNN'
  396. KNN tn, fp: 56729, 134
  397. KNN fn, tp: 80, 19
  398. KNN f1 score: 0.151
  399. KNN cohens kappa score: 0.149
  400. ------ Step 4/5: Slice 5/5 -------
  401. -> Reset the GAN
  402. -> Train generator for synthetic samples
  403. -> create 227056 synthetic samples
  404. -> test with 'LR'
  405. LR tn, fp: 56653, 210
  406. LR fn, tp: 21, 75
  407. LR f1 score: 0.394
  408. LR cohens kappa score: 0.392
  409. LR average precision score: 0.710
  410. -> test with 'GB'
  411. GB tn, fp: 56850, 13
  412. GB fn, tp: 23, 73
  413. GB f1 score: 0.802
  414. GB cohens kappa score: 0.802
  415. -> test with 'KNN'
  416. KNN tn, fp: 56733, 130
  417. KNN fn, tp: 85, 11
  418. KNN f1 score: 0.093
  419. KNN cohens kappa score: 0.091
  420. ====== Step 5/5 =======
  421. -> Shuffling data
  422. -> Spliting data to slices
  423. ------ Step 5/5: Slice 1/5 -------
  424. -> Reset the GAN
  425. -> Train generator for synthetic samples
  426. -> create 227059 synthetic samples
  427. -> test with 'LR'
  428. LR tn, fp: 56750, 113
  429. LR fn, tp: 24, 75
  430. LR f1 score: 0.523
  431. LR cohens kappa score: 0.522
  432. LR average precision score: 0.644
  433. -> test with 'GB'
  434. GB tn, fp: 56848, 15
  435. GB fn, tp: 26, 73
  436. GB f1 score: 0.781
  437. GB cohens kappa score: 0.780
  438. -> test with 'KNN'
  439. KNN tn, fp: 56731, 132
  440. KNN fn, tp: 90, 9
  441. KNN f1 score: 0.075
  442. KNN cohens kappa score: 0.073
  443. ------ Step 5/5: Slice 2/5 -------
  444. -> Reset the GAN
  445. -> Train generator for synthetic samples
  446. -> create 227059 synthetic samples
  447. -> test with 'LR'
  448. LR tn, fp: 56593, 270
  449. LR fn, tp: 12, 87
  450. LR f1 score: 0.382
  451. LR cohens kappa score: 0.380
  452. LR average precision score: 0.759
  453. -> test with 'GB'
  454. GB tn, fp: 56845, 18
  455. GB fn, tp: 17, 82
  456. GB f1 score: 0.824
  457. GB cohens kappa score: 0.824
  458. -> test with 'KNN'
  459. KNN tn, fp: 56716, 147
  460. KNN fn, tp: 83, 16
  461. KNN f1 score: 0.122
  462. KNN cohens kappa score: 0.120
  463. ------ Step 5/5: Slice 3/5 -------
  464. -> Reset the GAN
  465. -> Train generator for synthetic samples
  466. -> create 227059 synthetic samples
  467. -> test with 'LR'
  468. LR tn, fp: 56695, 168
  469. LR fn, tp: 20, 79
  470. LR f1 score: 0.457
  471. LR cohens kappa score: 0.455
  472. LR average precision score: 0.689
  473. -> test with 'GB'
  474. GB tn, fp: 56845, 18
  475. GB fn, tp: 21, 78
  476. GB f1 score: 0.800
  477. GB cohens kappa score: 0.800
  478. -> test with 'KNN'
  479. KNN tn, fp: 56735, 128
  480. KNN fn, tp: 90, 9
  481. KNN f1 score: 0.076
  482. KNN cohens kappa score: 0.074
  483. ------ Step 5/5: Slice 4/5 -------
  484. -> Reset the GAN
  485. -> Train generator for synthetic samples
  486. -> create 227059 synthetic samples
  487. -> test with 'LR'
  488. LR tn, fp: 56407, 456
  489. LR fn, tp: 13, 86
  490. LR f1 score: 0.268
  491. LR cohens kappa score: 0.266
  492. LR average precision score: 0.764
  493. -> test with 'GB'
  494. GB tn, fp: 56856, 7
  495. GB fn, tp: 19, 80
  496. GB f1 score: 0.860
  497. GB cohens kappa score: 0.860
  498. -> test with 'KNN'
  499. KNN tn, fp: 56736, 127
  500. KNN fn, tp: 83, 16
  501. KNN f1 score: 0.132
  502. KNN cohens kappa score: 0.130
  503. ------ Step 5/5: Slice 5/5 -------
  504. -> Reset the GAN
  505. -> Train generator for synthetic samples
  506. -> create 227056 synthetic samples
  507. -> test with 'LR'
  508. LR tn, fp: 56670, 193
  509. LR fn, tp: 15, 81
  510. LR f1 score: 0.438
  511. LR cohens kappa score: 0.436
  512. LR average precision score: 0.712
  513. -> test with 'GB'
  514. GB tn, fp: 56847, 16
  515. GB fn, tp: 21, 75
  516. GB f1 score: 0.802
  517. GB cohens kappa score: 0.802
  518. -> test with 'KNN'
  519. KNN tn, fp: 56730, 133
  520. KNN fn, tp: 84, 12
  521. KNN f1 score: 0.100
  522. KNN cohens kappa score: 0.098
  523. ### Exercise is done.
  524. -----[ LR ]-----
  525. maximum:
  526. LR tn, fp: 56830, 1251
  527. LR fn, tp: 25, 88
  528. LR f1 score: 0.766
  529. LR cohens kappa score: 0.766
  530. LR average precision score: 0.845
  531. average:
  532. LR tn, fp: 56523.0, 340.0
  533. LR fn, tp: 16.04, 82.36
  534. LR f1 score: 0.391
  535. LR cohens kappa score: 0.389
  536. LR average precision score: 0.712
  537. minimum:
  538. LR tn, fp: 55612, 33
  539. LR fn, tp: 11, 74
  540. LR f1 score: 0.115
  541. LR cohens kappa score: 0.112
  542. LR average precision score: 0.550
  543. -----[ GB ]-----
  544. maximum:
  545. GB tn, fp: 56856, 28
  546. GB fn, tp: 27, 85
  547. GB f1 score: 0.865
  548. GB cohens kappa score: 0.865
  549. average:
  550. GB tn, fp: 56848.12, 14.88
  551. GB fn, tp: 19.92, 78.48
  552. GB f1 score: 0.819
  553. GB cohens kappa score: 0.818
  554. minimum:
  555. GB tn, fp: 56835, 7
  556. GB fn, tp: 14, 72
  557. GB f1 score: 0.743
  558. GB cohens kappa score: 0.742
  559. -----[ KNN ]-----
  560. maximum:
  561. KNN tn, fp: 56747, 188
  562. KNN fn, tp: 91, 19
  563. KNN f1 score: 0.151
  564. KNN cohens kappa score: 0.149
  565. average:
  566. KNN tn, fp: 56722.92, 140.08
  567. KNN fn, tp: 86.2, 12.2
  568. KNN f1 score: 0.097
  569. KNN cohens kappa score: 0.096
  570. minimum:
  571. KNN tn, fp: 56675, 116
  572. KNN fn, tp: 80, 8
  573. KNN f1 score: 0.065
  574. KNN cohens kappa score: 0.063