kaggle_creditcard.log 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. ///////////////////////////////////////////
  2. // Running convGAN 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: 54819, 2044
  17. LR fn, tp: 16, 83
  18. LR f1 score: 0.075
  19. LR cohens kappa score: 0.071
  20. LR average precision score: 0.579
  21. -> test with 'GB'
  22. GB tn, fp: 56577, 286
  23. GB fn, tp: 20, 79
  24. GB f1 score: 0.341
  25. GB cohens kappa score: 0.339
  26. -> test with 'KNN'
  27. KNN tn, fp: 56521, 342
  28. KNN fn, tp: 76, 23
  29. KNN f1 score: 0.099
  30. KNN cohens kappa score: 0.097
  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: 54137, 2726
  37. LR fn, tp: 10, 89
  38. LR f1 score: 0.061
  39. LR cohens kappa score: 0.058
  40. LR average precision score: 0.703
  41. -> test with 'GB'
  42. GB tn, fp: 56550, 313
  43. GB fn, tp: 10, 89
  44. GB f1 score: 0.355
  45. GB cohens kappa score: 0.353
  46. -> test with 'KNN'
  47. KNN tn, fp: 56389, 474
  48. KNN fn, tp: 76, 23
  49. KNN f1 score: 0.077
  50. KNN cohens kappa score: 0.074
  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: 55190, 1673
  57. LR fn, tp: 10, 89
  58. LR f1 score: 0.096
  59. LR cohens kappa score: 0.093
  60. LR average precision score: 0.682
  61. -> test with 'GB'
  62. GB tn, fp: 56545, 318
  63. GB fn, tp: 13, 86
  64. GB f1 score: 0.342
  65. GB cohens kappa score: 0.340
  66. -> test with 'KNN'
  67. KNN tn, fp: 56445, 418
  68. KNN fn, tp: 77, 22
  69. KNN f1 score: 0.082
  70. KNN cohens kappa score: 0.079
  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: 55233, 1630
  77. LR fn, tp: 7, 92
  78. LR f1 score: 0.101
  79. LR cohens kappa score: 0.098
  80. LR average precision score: 0.758
  81. -> test with 'GB'
  82. GB tn, fp: 56495, 368
  83. GB fn, tp: 8, 91
  84. GB f1 score: 0.326
  85. GB cohens kappa score: 0.324
  86. -> test with 'KNN'
  87. KNN tn, fp: 56516, 347
  88. KNN fn, tp: 67, 32
  89. KNN f1 score: 0.134
  90. KNN cohens kappa score: 0.131
  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: 54918, 1945
  97. LR fn, tp: 9, 87
  98. LR f1 score: 0.082
  99. LR cohens kappa score: 0.079
  100. LR average precision score: 0.801
  101. -> test with 'GB'
  102. GB tn, fp: 56450, 413
  103. GB fn, tp: 9, 87
  104. GB f1 score: 0.292
  105. GB cohens kappa score: 0.290
  106. -> test with 'KNN'
  107. KNN tn, fp: 56499, 364
  108. KNN fn, tp: 70, 26
  109. KNN f1 score: 0.107
  110. KNN cohens kappa score: 0.105
  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: 53350, 3513
  120. LR fn, tp: 12, 87
  121. LR f1 score: 0.047
  122. LR cohens kappa score: 0.044
  123. LR average precision score: 0.699
  124. -> test with 'GB'
  125. GB tn, fp: 56557, 306
  126. GB fn, tp: 10, 89
  127. GB f1 score: 0.360
  128. GB cohens kappa score: 0.359
  129. -> test with 'KNN'
  130. KNN tn, fp: 56382, 481
  131. KNN fn, tp: 73, 26
  132. KNN f1 score: 0.086
  133. KNN cohens kappa score: 0.083
  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: 54196, 2667
  140. LR fn, tp: 10, 89
  141. LR f1 score: 0.062
  142. LR cohens kappa score: 0.059
  143. LR average precision score: 0.652
  144. -> test with 'GB'
  145. GB tn, fp: 56434, 429
  146. GB fn, tp: 10, 89
  147. GB f1 score: 0.288
  148. GB cohens kappa score: 0.286
  149. -> test with 'KNN'
  150. KNN tn, fp: 56532, 331
  151. KNN fn, tp: 72, 27
  152. KNN f1 score: 0.118
  153. KNN cohens kappa score: 0.116
  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: 54521, 2342
  160. LR fn, tp: 9, 90
  161. LR f1 score: 0.071
  162. LR cohens kappa score: 0.068
  163. LR average precision score: 0.714
  164. -> test with 'GB'
  165. GB tn, fp: 56529, 334
  166. GB fn, tp: 11, 88
  167. GB f1 score: 0.338
  168. GB cohens kappa score: 0.336
  169. -> test with 'KNN'
  170. KNN tn, fp: 56627, 236
  171. KNN fn, tp: 69, 30
  172. KNN f1 score: 0.164
  173. KNN cohens kappa score: 0.162
  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: 54666, 2197
  180. LR fn, tp: 10, 89
  181. LR f1 score: 0.075
  182. LR cohens kappa score: 0.072
  183. LR average precision score: 0.716
  184. -> test with 'GB'
  185. GB tn, fp: 56528, 335
  186. GB fn, tp: 12, 87
  187. GB f1 score: 0.334
  188. GB cohens kappa score: 0.332
  189. -> test with 'KNN'
  190. KNN tn, fp: 56610, 253
  191. KNN fn, tp: 77, 22
  192. KNN f1 score: 0.118
  193. KNN cohens kappa score: 0.115
  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: 54988, 1875
  200. LR fn, tp: 10, 86
  201. LR f1 score: 0.084
  202. LR cohens kappa score: 0.081
  203. LR average precision score: 0.749
  204. -> test with 'GB'
  205. GB tn, fp: 56518, 345
  206. GB fn, tp: 15, 81
  207. GB f1 score: 0.310
  208. GB cohens kappa score: 0.308
  209. -> test with 'KNN'
  210. KNN tn, fp: 56611, 252
  211. KNN fn, tp: 74, 22
  212. KNN f1 score: 0.119
  213. KNN cohens kappa score: 0.117
  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: 54577, 2286
  223. LR fn, tp: 10, 89
  224. LR f1 score: 0.072
  225. LR cohens kappa score: 0.069
  226. LR average precision score: 0.672
  227. -> test with 'GB'
  228. GB tn, fp: 56596, 267
  229. GB fn, tp: 14, 85
  230. GB f1 score: 0.377
  231. GB cohens kappa score: 0.375
  232. -> test with 'KNN'
  233. KNN tn, fp: 56344, 519
  234. KNN fn, tp: 75, 24
  235. KNN f1 score: 0.075
  236. KNN cohens kappa score: 0.072
  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: 55026, 1837
  243. LR fn, tp: 9, 90
  244. LR f1 score: 0.089
  245. LR cohens kappa score: 0.086
  246. LR average precision score: 0.642
  247. -> test with 'GB'
  248. GB tn, fp: 56583, 280
  249. GB fn, tp: 11, 88
  250. GB f1 score: 0.377
  251. GB cohens kappa score: 0.375
  252. -> test with 'KNN'
  253. KNN tn, fp: 56348, 515
  254. KNN fn, tp: 73, 26
  255. KNN f1 score: 0.081
  256. KNN cohens kappa score: 0.079
  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: 54796, 2067
  263. LR fn, tp: 10, 89
  264. LR f1 score: 0.079
  265. LR cohens kappa score: 0.076
  266. LR average precision score: 0.703
  267. -> test with 'GB'
  268. GB tn, fp: 56500, 363
  269. GB fn, tp: 13, 86
  270. GB f1 score: 0.314
  271. GB cohens kappa score: 0.312
  272. -> test with 'KNN'
  273. KNN tn, fp: 56714, 149
  274. KNN fn, tp: 79, 20
  275. KNN f1 score: 0.149
  276. KNN cohens kappa score: 0.147
  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: 55442, 1421
  283. LR fn, tp: 9, 90
  284. LR f1 score: 0.112
  285. LR cohens kappa score: 0.109
  286. LR average precision score: 0.780
  287. -> test with 'GB'
  288. GB tn, fp: 56547, 316
  289. GB fn, tp: 11, 88
  290. GB f1 score: 0.350
  291. GB cohens kappa score: 0.348
  292. -> test with 'KNN'
  293. KNN tn, fp: 56278, 585
  294. KNN fn, tp: 70, 29
  295. KNN f1 score: 0.081
  296. KNN cohens kappa score: 0.079
  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: 55364, 1499
  303. LR fn, tp: 11, 85
  304. LR f1 score: 0.101
  305. LR cohens kappa score: 0.098
  306. LR average precision score: 0.770
  307. -> test with 'GB'
  308. GB tn, fp: 56585, 278
  309. GB fn, tp: 13, 83
  310. GB f1 score: 0.363
  311. GB cohens kappa score: 0.362
  312. -> test with 'KNN'
  313. KNN tn, fp: 56435, 428
  314. KNN fn, tp: 69, 27
  315. KNN f1 score: 0.098
  316. KNN cohens kappa score: 0.095
  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: 54526, 2337
  326. LR fn, tp: 6, 93
  327. LR f1 score: 0.074
  328. LR cohens kappa score: 0.070
  329. LR average precision score: 0.693
  330. -> test with 'GB'
  331. GB tn, fp: 56538, 325
  332. GB fn, tp: 8, 91
  333. GB f1 score: 0.353
  334. GB cohens kappa score: 0.352
  335. -> test with 'KNN'
  336. KNN tn, fp: 56573, 290
  337. KNN fn, tp: 80, 19
  338. KNN f1 score: 0.093
  339. KNN cohens kappa score: 0.091
  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: 54747, 2116
  346. LR fn, tp: 12, 87
  347. LR f1 score: 0.076
  348. LR cohens kappa score: 0.073
  349. LR average precision score: 0.650
  350. -> test with 'GB'
  351. GB tn, fp: 56562, 301
  352. GB fn, tp: 13, 86
  353. GB f1 score: 0.354
  354. GB cohens kappa score: 0.352
  355. -> test with 'KNN'
  356. KNN tn, fp: 56524, 339
  357. KNN fn, tp: 79, 20
  358. KNN f1 score: 0.087
  359. KNN cohens kappa score: 0.085
  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: 55021, 1842
  366. LR fn, tp: 10, 89
  367. LR f1 score: 0.088
  368. LR cohens kappa score: 0.085
  369. LR average precision score: 0.733
  370. -> test with 'GB'
  371. GB tn, fp: 56539, 324
  372. GB fn, tp: 13, 86
  373. GB f1 score: 0.338
  374. GB cohens kappa score: 0.336
  375. -> test with 'KNN'
  376. KNN tn, fp: 56689, 174
  377. KNN fn, tp: 77, 22
  378. KNN f1 score: 0.149
  379. KNN cohens kappa score: 0.147
  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: 55209, 1654
  386. LR fn, tp: 7, 92
  387. LR f1 score: 0.100
  388. LR cohens kappa score: 0.097
  389. LR average precision score: 0.777
  390. -> test with 'GB'
  391. GB tn, fp: 56435, 428
  392. GB fn, tp: 10, 89
  393. GB f1 score: 0.289
  394. GB cohens kappa score: 0.287
  395. -> test with 'KNN'
  396. KNN tn, fp: 56295, 568
  397. KNN fn, tp: 62, 37
  398. KNN f1 score: 0.105
  399. KNN cohens kappa score: 0.102
  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: 55824, 1039
  406. LR fn, tp: 12, 84
  407. LR f1 score: 0.138
  408. LR cohens kappa score: 0.135
  409. LR average precision score: 0.729
  410. -> test with 'GB'
  411. GB tn, fp: 56665, 198
  412. GB fn, tp: 16, 80
  413. GB f1 score: 0.428
  414. GB cohens kappa score: 0.426
  415. -> test with 'KNN'
  416. KNN tn, fp: 56285, 578
  417. KNN fn, tp: 69, 27
  418. KNN f1 score: 0.077
  419. KNN cohens kappa score: 0.074
  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: 54476, 2387
  429. LR fn, tp: 14, 85
  430. LR f1 score: 0.066
  431. LR cohens kappa score: 0.063
  432. LR average precision score: 0.664
  433. -> test with 'GB'
  434. GB tn, fp: 56599, 264
  435. GB fn, tp: 18, 81
  436. GB f1 score: 0.365
  437. GB cohens kappa score: 0.363
  438. -> test with 'KNN'
  439. KNN tn, fp: 56702, 161
  440. KNN fn, tp: 77, 22
  441. KNN f1 score: 0.156
  442. KNN cohens kappa score: 0.154
  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: 54533, 2330
  449. LR fn, tp: 7, 92
  450. LR f1 score: 0.073
  451. LR cohens kappa score: 0.070
  452. LR average precision score: 0.764
  453. -> test with 'GB'
  454. GB tn, fp: 56521, 342
  455. GB fn, tp: 8, 91
  456. GB f1 score: 0.342
  457. GB cohens kappa score: 0.340
  458. -> test with 'KNN'
  459. KNN tn, fp: 56554, 309
  460. KNN fn, tp: 74, 25
  461. KNN f1 score: 0.115
  462. KNN cohens kappa score: 0.113
  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: 54993, 1870
  469. LR fn, tp: 11, 88
  470. LR f1 score: 0.086
  471. LR cohens kappa score: 0.083
  472. LR average precision score: 0.687
  473. -> test with 'GB'
  474. GB tn, fp: 56481, 382
  475. GB fn, tp: 13, 86
  476. GB f1 score: 0.303
  477. GB cohens kappa score: 0.301
  478. -> test with 'KNN'
  479. KNN tn, fp: 56727, 136
  480. KNN fn, tp: 76, 23
  481. KNN f1 score: 0.178
  482. KNN cohens kappa score: 0.177
  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: 54666, 2197
  489. LR fn, tp: 8, 91
  490. LR f1 score: 0.076
  491. LR cohens kappa score: 0.073
  492. LR average precision score: 0.775
  493. -> test with 'GB'
  494. GB tn, fp: 56535, 328
  495. GB fn, tp: 10, 89
  496. GB f1 score: 0.345
  497. GB cohens kappa score: 0.343
  498. -> test with 'KNN'
  499. KNN tn, fp: 56518, 345
  500. KNN fn, tp: 76, 23
  501. KNN f1 score: 0.099
  502. KNN cohens kappa score: 0.096
  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: 55361, 1502
  509. LR fn, tp: 8, 88
  510. LR f1 score: 0.104
  511. LR cohens kappa score: 0.102
  512. LR average precision score: 0.688
  513. -> test with 'GB'
  514. GB tn, fp: 56557, 306
  515. GB fn, tp: 10, 86
  516. GB f1 score: 0.352
  517. GB cohens kappa score: 0.351
  518. -> test with 'KNN'
  519. KNN tn, fp: 56283, 580
  520. KNN fn, tp: 67, 29
  521. KNN f1 score: 0.082
  522. KNN cohens kappa score: 0.080
  523. ### Exercise is done.
  524. -----[ LR ]-----
  525. maximum:
  526. LR tn, fp: 55824, 3513
  527. LR fn, tp: 16, 93
  528. LR f1 score: 0.138
  529. LR cohens kappa score: 0.135
  530. LR average precision score: 0.801
  531. average:
  532. LR tn, fp: 54823.16, 2039.84
  533. LR fn, tp: 9.88, 88.52
  534. LR f1 score: 0.083
  535. LR cohens kappa score: 0.080
  536. LR average precision score: 0.711
  537. minimum:
  538. LR tn, fp: 53350, 1039
  539. LR fn, tp: 6, 83
  540. LR f1 score: 0.047
  541. LR cohens kappa score: 0.044
  542. LR average precision score: 0.579
  543. -----[ GB ]-----
  544. maximum:
  545. GB tn, fp: 56665, 429
  546. GB fn, tp: 20, 91
  547. GB f1 score: 0.428
  548. GB cohens kappa score: 0.426
  549. average:
  550. GB tn, fp: 56537.04, 325.96
  551. GB fn, tp: 11.96, 86.44
  552. GB f1 score: 0.341
  553. GB cohens kappa score: 0.340
  554. minimum:
  555. GB tn, fp: 56434, 198
  556. GB fn, tp: 8, 79
  557. GB f1 score: 0.288
  558. GB cohens kappa score: 0.286
  559. -----[ KNN ]-----
  560. maximum:
  561. KNN tn, fp: 56727, 585
  562. KNN fn, tp: 80, 37
  563. KNN f1 score: 0.178
  564. KNN cohens kappa score: 0.177
  565. average:
  566. KNN tn, fp: 56496.04, 366.96
  567. KNN fn, tp: 73.36, 25.04
  568. KNN f1 score: 0.109
  569. KNN cohens kappa score: 0.107
  570. minimum:
  571. KNN tn, fp: 56278, 136
  572. KNN fn, tp: 62, 19
  573. KNN f1 score: 0.075
  574. KNN cohens kappa score: 0.072