kaggle_creditcard.log 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. ///////////////////////////////////////////
  2. // Running Repeater 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: 53336, 3527
  17. LR fn, tp: 16, 83
  18. LR f1 score: 0.045
  19. LR cohens kappa score: 0.042
  20. LR average precision score: 0.562
  21. -> test with 'GB'
  22. GB tn, fp: 56582, 281
  23. GB fn, tp: 19, 80
  24. GB f1 score: 0.348
  25. GB cohens kappa score: 0.346
  26. -> test with 'KNN'
  27. KNN tn, fp: 56663, 200
  28. KNN fn, tp: 79, 20
  29. KNN f1 score: 0.125
  30. KNN cohens kappa score: 0.123
  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: 54088, 2775
  37. LR fn, tp: 6, 93
  38. LR f1 score: 0.063
  39. LR cohens kappa score: 0.060
  40. LR average precision score: 0.738
  41. -> test with 'GB'
  42. GB tn, fp: 56485, 378
  43. GB fn, tp: 8, 91
  44. GB f1 score: 0.320
  45. GB cohens kappa score: 0.318
  46. -> test with 'KNN'
  47. KNN tn, fp: 56680, 183
  48. KNN fn, tp: 81, 18
  49. KNN f1 score: 0.120
  50. KNN cohens kappa score: 0.118
  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: 54602, 2261
  57. LR fn, tp: 8, 91
  58. LR f1 score: 0.074
  59. LR cohens kappa score: 0.071
  60. LR average precision score: 0.685
  61. -> test with 'GB'
  62. GB tn, fp: 56497, 366
  63. GB fn, tp: 11, 88
  64. GB f1 score: 0.318
  65. GB cohens kappa score: 0.316
  66. -> test with 'KNN'
  67. KNN tn, fp: 56697, 166
  68. KNN fn, tp: 78, 21
  69. KNN f1 score: 0.147
  70. KNN cohens kappa score: 0.145
  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: 54722, 2141
  77. LR fn, tp: 6, 93
  78. LR f1 score: 0.080
  79. LR cohens kappa score: 0.077
  80. LR average precision score: 0.754
  81. -> test with 'GB'
  82. GB tn, fp: 56421, 442
  83. GB fn, tp: 6, 93
  84. GB f1 score: 0.293
  85. GB cohens kappa score: 0.291
  86. -> test with 'KNN'
  87. KNN tn, fp: 56708, 155
  88. KNN fn, tp: 73, 26
  89. KNN f1 score: 0.186
  90. KNN cohens kappa score: 0.184
  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: 54488, 2375
  97. LR fn, tp: 9, 87
  98. LR f1 score: 0.068
  99. LR cohens kappa score: 0.065
  100. LR average precision score: 0.794
  101. -> test with 'GB'
  102. GB tn, fp: 56372, 491
  103. GB fn, tp: 9, 87
  104. GB f1 score: 0.258
  105. GB cohens kappa score: 0.256
  106. -> test with 'KNN'
  107. KNN tn, fp: 56693, 170
  108. KNN fn, tp: 73, 23
  109. KNN f1 score: 0.159
  110. KNN cohens kappa score: 0.157
  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: 53491, 3372
  120. LR fn, tp: 6, 93
  121. LR f1 score: 0.052
  122. LR cohens kappa score: 0.049
  123. LR average precision score: 0.737
  124. -> test with 'GB'
  125. GB tn, fp: 56455, 408
  126. GB fn, tp: 10, 89
  127. GB f1 score: 0.299
  128. GB cohens kappa score: 0.297
  129. -> test with 'KNN'
  130. KNN tn, fp: 56652, 211
  131. KNN fn, tp: 78, 21
  132. KNN f1 score: 0.127
  133. KNN cohens kappa score: 0.125
  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: 53916, 2947
  140. LR fn, tp: 9, 90
  141. LR f1 score: 0.057
  142. LR cohens kappa score: 0.054
  143. LR average precision score: 0.642
  144. -> test with 'GB'
  145. GB tn, fp: 56360, 503
  146. GB fn, tp: 9, 90
  147. GB f1 score: 0.260
  148. GB cohens kappa score: 0.258
  149. -> test with 'KNN'
  150. KNN tn, fp: 56682, 181
  151. KNN fn, tp: 74, 25
  152. KNN f1 score: 0.164
  153. KNN cohens kappa score: 0.162
  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: 54424, 2439
  160. LR fn, tp: 9, 90
  161. LR f1 score: 0.068
  162. LR cohens kappa score: 0.065
  163. LR average precision score: 0.717
  164. -> test with 'GB'
  165. GB tn, fp: 56506, 357
  166. GB fn, tp: 11, 88
  167. GB f1 score: 0.324
  168. GB cohens kappa score: 0.322
  169. -> test with 'KNN'
  170. KNN tn, fp: 56698, 165
  171. KNN fn, tp: 69, 30
  172. KNN f1 score: 0.204
  173. KNN cohens kappa score: 0.202
  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: 54803, 2060
  180. LR fn, tp: 8, 91
  181. LR f1 score: 0.081
  182. LR cohens kappa score: 0.078
  183. LR average precision score: 0.735
  184. -> test with 'GB'
  185. GB tn, fp: 56506, 357
  186. GB fn, tp: 11, 88
  187. GB f1 score: 0.324
  188. GB cohens kappa score: 0.322
  189. -> test with 'KNN'
  190. KNN tn, fp: 56681, 182
  191. KNN fn, tp: 78, 21
  192. KNN f1 score: 0.139
  193. KNN cohens kappa score: 0.137
  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: 54675, 2188
  200. LR fn, tp: 9, 87
  201. LR f1 score: 0.073
  202. LR cohens kappa score: 0.070
  203. LR average precision score: 0.744
  204. -> test with 'GB'
  205. GB tn, fp: 56426, 437
  206. GB fn, tp: 15, 81
  207. GB f1 score: 0.264
  208. GB cohens kappa score: 0.262
  209. -> test with 'KNN'
  210. KNN tn, fp: 56696, 167
  211. KNN fn, tp: 76, 20
  212. KNN f1 score: 0.141
  213. KNN cohens kappa score: 0.139
  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: 53273, 3590
  223. LR fn, tp: 8, 91
  224. LR f1 score: 0.048
  225. LR cohens kappa score: 0.045
  226. LR average precision score: 0.673
  227. -> test with 'GB'
  228. GB tn, fp: 56427, 436
  229. GB fn, tp: 12, 87
  230. GB f1 score: 0.280
  231. GB cohens kappa score: 0.278
  232. -> test with 'KNN'
  233. KNN tn, fp: 56662, 201
  234. KNN fn, tp: 77, 22
  235. KNN f1 score: 0.137
  236. KNN cohens kappa score: 0.135
  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: 54063, 2800
  243. LR fn, tp: 7, 92
  244. LR f1 score: 0.062
  245. LR cohens kappa score: 0.058
  246. LR average precision score: 0.644
  247. -> test with 'GB'
  248. GB tn, fp: 56441, 422
  249. GB fn, tp: 11, 88
  250. GB f1 score: 0.289
  251. GB cohens kappa score: 0.287
  252. -> test with 'KNN'
  253. KNN tn, fp: 56691, 172
  254. KNN fn, tp: 78, 21
  255. KNN f1 score: 0.144
  256. KNN cohens kappa score: 0.142
  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: 54655, 2208
  263. LR fn, tp: 10, 89
  264. LR f1 score: 0.074
  265. LR cohens kappa score: 0.071
  266. LR average precision score: 0.709
  267. -> test with 'GB'
  268. GB tn, fp: 56473, 390
  269. GB fn, tp: 13, 86
  270. GB f1 score: 0.299
  271. GB cohens kappa score: 0.297
  272. -> test with 'KNN'
  273. KNN tn, fp: 56727, 136
  274. KNN fn, tp: 80, 19
  275. KNN f1 score: 0.150
  276. KNN cohens kappa score: 0.148
  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: 54008, 2855
  283. LR fn, tp: 8, 91
  284. LR f1 score: 0.060
  285. LR cohens kappa score: 0.057
  286. LR average precision score: 0.745
  287. -> test with 'GB'
  288. GB tn, fp: 56442, 421
  289. GB fn, tp: 8, 91
  290. GB f1 score: 0.298
  291. GB cohens kappa score: 0.296
  292. -> test with 'KNN'
  293. KNN tn, fp: 56682, 181
  294. KNN fn, tp: 79, 20
  295. KNN f1 score: 0.133
  296. KNN cohens kappa score: 0.131
  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: 54921, 1942
  303. LR fn, tp: 7, 89
  304. LR f1 score: 0.084
  305. LR cohens kappa score: 0.081
  306. LR average precision score: 0.750
  307. -> test with 'GB'
  308. GB tn, fp: 56501, 362
  309. GB fn, tp: 12, 84
  310. GB f1 score: 0.310
  311. GB cohens kappa score: 0.308
  312. -> test with 'KNN'
  313. KNN tn, fp: 56701, 162
  314. KNN fn, tp: 70, 26
  315. KNN f1 score: 0.183
  316. KNN cohens kappa score: 0.181
  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: 53074, 3789
  326. LR fn, tp: 5, 94
  327. LR f1 score: 0.047
  328. LR cohens kappa score: 0.044
  329. LR average precision score: 0.672
  330. -> test with 'GB'
  331. GB tn, fp: 56468, 395
  332. GB fn, tp: 7, 92
  333. GB f1 score: 0.314
  334. GB cohens kappa score: 0.312
  335. -> test with 'KNN'
  336. KNN tn, fp: 56696, 167
  337. KNN fn, tp: 81, 18
  338. KNN f1 score: 0.127
  339. KNN cohens kappa score: 0.125
  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: 54055, 2808
  346. LR fn, tp: 11, 88
  347. LR f1 score: 0.059
  348. LR cohens kappa score: 0.056
  349. LR average precision score: 0.647
  350. -> test with 'GB'
  351. GB tn, fp: 56513, 350
  352. GB fn, tp: 13, 86
  353. GB f1 score: 0.321
  354. GB cohens kappa score: 0.320
  355. -> test with 'KNN'
  356. KNN tn, fp: 56692, 171
  357. KNN fn, tp: 84, 15
  358. KNN f1 score: 0.105
  359. KNN cohens kappa score: 0.103
  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: 54609, 2254
  366. LR fn, tp: 10, 89
  367. LR f1 score: 0.073
  368. LR cohens kappa score: 0.070
  369. LR average precision score: 0.720
  370. -> test with 'GB'
  371. GB tn, fp: 56525, 338
  372. GB fn, tp: 12, 87
  373. GB f1 score: 0.332
  374. GB cohens kappa score: 0.330
  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: 54164, 2699
  386. LR fn, tp: 9, 90
  387. LR f1 score: 0.062
  388. LR cohens kappa score: 0.059
  389. LR average precision score: 0.758
  390. -> test with 'GB'
  391. GB tn, fp: 56367, 496
  392. GB fn, tp: 11, 88
  393. GB f1 score: 0.258
  394. GB cohens kappa score: 0.255
  395. -> test with 'KNN'
  396. KNN tn, fp: 56690, 173
  397. KNN fn, tp: 67, 32
  398. KNN f1 score: 0.211
  399. KNN cohens kappa score: 0.209
  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: 54833, 2030
  406. LR fn, tp: 8, 88
  407. LR f1 score: 0.079
  408. LR cohens kappa score: 0.077
  409. LR average precision score: 0.692
  410. -> test with 'GB'
  411. GB tn, fp: 56490, 373
  412. GB fn, tp: 15, 81
  413. GB f1 score: 0.295
  414. GB cohens kappa score: 0.293
  415. -> test with 'KNN'
  416. KNN tn, fp: 56695, 168
  417. KNN fn, tp: 74, 22
  418. KNN f1 score: 0.154
  419. KNN cohens kappa score: 0.152
  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: 54233, 2630
  429. LR fn, tp: 10, 89
  430. LR f1 score: 0.063
  431. LR cohens kappa score: 0.060
  432. LR average precision score: 0.630
  433. -> test with 'GB'
  434. GB tn, fp: 56542, 321
  435. GB fn, tp: 17, 82
  436. GB f1 score: 0.327
  437. GB cohens kappa score: 0.325
  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: 54380, 2483
  449. LR fn, tp: 4, 95
  450. LR f1 score: 0.071
  451. LR cohens kappa score: 0.068
  452. LR average precision score: 0.767
  453. -> test with 'GB'
  454. GB tn, fp: 56450, 413
  455. GB fn, tp: 7, 92
  456. GB f1 score: 0.305
  457. GB cohens kappa score: 0.303
  458. -> test with 'KNN'
  459. KNN tn, fp: 56690, 173
  460. KNN fn, tp: 75, 24
  461. KNN f1 score: 0.162
  462. KNN cohens kappa score: 0.160
  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: 54385, 2478
  469. LR fn, tp: 11, 88
  470. LR f1 score: 0.066
  471. LR cohens kappa score: 0.063
  472. LR average precision score: 0.673
  473. -> test with 'GB'
  474. GB tn, fp: 56462, 401
  475. GB fn, tp: 12, 87
  476. GB f1 score: 0.296
  477. GB cohens kappa score: 0.294
  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: 54436, 2427
  489. LR fn, tp: 6, 93
  490. LR f1 score: 0.071
  491. LR cohens kappa score: 0.068
  492. LR average precision score: 0.751
  493. -> test with 'GB'
  494. GB tn, fp: 56433, 430
  495. GB fn, tp: 10, 89
  496. GB f1 score: 0.288
  497. GB cohens kappa score: 0.286
  498. -> test with 'KNN'
  499. KNN tn, fp: 56676, 187
  500. KNN fn, tp: 78, 21
  501. KNN f1 score: 0.137
  502. KNN cohens kappa score: 0.135
  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: 54576, 2287
  509. LR fn, tp: 5, 91
  510. LR f1 score: 0.074
  511. LR cohens kappa score: 0.071
  512. LR average precision score: 0.650
  513. -> test with 'GB'
  514. GB tn, fp: 56468, 395
  515. GB fn, tp: 9, 87
  516. GB f1 score: 0.301
  517. GB cohens kappa score: 0.299
  518. -> test with 'KNN'
  519. KNN tn, fp: 56695, 168
  520. KNN fn, tp: 73, 23
  521. KNN f1 score: 0.160
  522. KNN cohens kappa score: 0.158
  523. ### Exercise is done.
  524. -----[ LR ]-----
  525. maximum:
  526. LR tn, fp: 54921, 3789
  527. LR fn, tp: 16, 95
  528. LR f1 score: 0.084
  529. LR cohens kappa score: 0.081
  530. LR average precision score: 0.794
  531. average:
  532. LR tn, fp: 54248.4, 2614.6
  533. LR fn, tp: 8.2, 90.2
  534. LR f1 score: 0.066
  535. LR cohens kappa score: 0.063
  536. LR average precision score: 0.704
  537. minimum:
  538. LR tn, fp: 53074, 1942
  539. LR fn, tp: 4, 83
  540. LR f1 score: 0.045
  541. LR cohens kappa score: 0.042
  542. LR average precision score: 0.562
  543. -----[ GB ]-----
  544. maximum:
  545. GB tn, fp: 56582, 503
  546. GB fn, tp: 19, 93
  547. GB f1 score: 0.348
  548. GB cohens kappa score: 0.346
  549. average:
  550. GB tn, fp: 56464.48, 398.52
  551. GB fn, tp: 11.12, 87.28
  552. GB f1 score: 0.301
  553. GB cohens kappa score: 0.299
  554. minimum:
  555. GB tn, fp: 56360, 281
  556. GB fn, tp: 6, 80
  557. GB f1 score: 0.258
  558. GB cohens kappa score: 0.255
  559. -----[ KNN ]-----
  560. maximum:
  561. KNN tn, fp: 56727, 211
  562. KNN fn, tp: 84, 32
  563. KNN f1 score: 0.211
  564. KNN cohens kappa score: 0.209
  565. average:
  566. KNN tn, fp: 56690.6, 172.4
  567. KNN fn, tp: 76.2, 22.2
  568. KNN f1 score: 0.152
  569. KNN cohens kappa score: 0.150
  570. minimum:
  571. KNN tn, fp: 56652, 136
  572. KNN fn, tp: 67, 15
  573. KNN f1 score: 0.105
  574. KNN cohens kappa score: 0.103