imblearn_protein_homo.log 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. ///////////////////////////////////////////
  2. // Running ProWRAS on imblearn_protein_homo
  3. ///////////////////////////////////////////
  4. Load 'data_input/imblearn_protein_homo'
  5. from imblearn
  6. Data loaded.
  7. -> Shuffling data
  8. ### Start exercise for synthetic point generator
  9. ====== Step 1/5 =======
  10. -> Shuffling data
  11. -> Spliting data to slices
  12. ------ Step 1/5: Slice 1/5 -------
  13. -> Reset the GAN
  14. -> Train generator for synthetic samples
  15. -> create 114528 synthetic samples
  16. -> test with 'LR'
  17. LR tn, fp: 28420, 471
  18. LR fn, tp: 23, 237
  19. LR f1 score: 0.490
  20. LR cohens kappa score: 0.483
  21. LR average precision score: 0.865
  22. -> test with 'GB'
  23. GB tn, fp: 28766, 125
  24. GB fn, tp: 46, 214
  25. GB f1 score: 0.715
  26. GB cohens kappa score: 0.712
  27. -> test with 'KNN'
  28. KNN tn, fp: 28330, 561
  29. KNN fn, tp: 94, 166
  30. KNN f1 score: 0.336
  31. KNN cohens kappa score: 0.328
  32. ------ Step 1/5: Slice 2/5 -------
  33. -> Reset the GAN
  34. -> Train generator for synthetic samples
  35. -> create 114528 synthetic samples
  36. -> test with 'LR'
  37. LR tn, fp: 28467, 424
  38. LR fn, tp: 25, 235
  39. LR f1 score: 0.511
  40. LR cohens kappa score: 0.505
  41. LR average precision score: 0.889
  42. -> test with 'GB'
  43. GB tn, fp: 28808, 83
  44. GB fn, tp: 41, 219
  45. GB f1 score: 0.779
  46. GB cohens kappa score: 0.777
  47. -> test with 'KNN'
  48. KNN tn, fp: 28260, 631
  49. KNN fn, tp: 75, 185
  50. KNN f1 score: 0.344
  51. KNN cohens kappa score: 0.335
  52. ------ Step 1/5: Slice 3/5 -------
  53. -> Reset the GAN
  54. -> Train generator for synthetic samples
  55. -> create 114528 synthetic samples
  56. -> test with 'LR'
  57. LR tn, fp: 28373, 518
  58. LR fn, tp: 9, 251
  59. LR f1 score: 0.488
  60. LR cohens kappa score: 0.481
  61. LR average precision score: 0.891
  62. -> test with 'GB'
  63. GB tn, fp: 28787, 104
  64. GB fn, tp: 51, 209
  65. GB f1 score: 0.729
  66. GB cohens kappa score: 0.727
  67. -> test with 'KNN'
  68. KNN tn, fp: 28282, 609
  69. KNN fn, tp: 98, 162
  70. KNN f1 score: 0.314
  71. KNN cohens kappa score: 0.305
  72. ------ Step 1/5: Slice 4/5 -------
  73. -> Reset the GAN
  74. -> Train generator for synthetic samples
  75. -> create 114528 synthetic samples
  76. -> test with 'LR'
  77. LR tn, fp: 28474, 417
  78. LR fn, tp: 26, 234
  79. LR f1 score: 0.514
  80. LR cohens kappa score: 0.507
  81. LR average precision score: 0.858
  82. -> test with 'GB'
  83. GB tn, fp: 28774, 117
  84. GB fn, tp: 51, 209
  85. GB f1 score: 0.713
  86. GB cohens kappa score: 0.710
  87. -> test with 'KNN'
  88. KNN tn, fp: 28299, 592
  89. KNN fn, tp: 96, 164
  90. KNN f1 score: 0.323
  91. KNN cohens kappa score: 0.314
  92. ------ Step 1/5: Slice 5/5 -------
  93. -> Reset the GAN
  94. -> Train generator for synthetic samples
  95. -> create 114524 synthetic samples
  96. -> test with 'LR'
  97. LR tn, fp: 28479, 412
  98. LR fn, tp: 35, 221
  99. LR f1 score: 0.497
  100. LR cohens kappa score: 0.491
  101. LR average precision score: 0.815
  102. -> test with 'GB'
  103. GB tn, fp: 28793, 98
  104. GB fn, tp: 63, 193
  105. GB f1 score: 0.706
  106. GB cohens kappa score: 0.703
  107. -> test with 'KNN'
  108. KNN tn, fp: 28361, 530
  109. KNN fn, tp: 105, 151
  110. KNN f1 score: 0.322
  111. KNN cohens kappa score: 0.314
  112. ====== Step 2/5 =======
  113. -> Shuffling data
  114. -> Spliting data to slices
  115. ------ Step 2/5: Slice 1/5 -------
  116. -> Reset the GAN
  117. -> Train generator for synthetic samples
  118. -> create 114528 synthetic samples
  119. -> test with 'LR'
  120. LR tn, fp: 28460, 431
  121. LR fn, tp: 25, 235
  122. LR f1 score: 0.508
  123. LR cohens kappa score: 0.501
  124. LR average precision score: 0.864
  125. -> test with 'GB'
  126. GB tn, fp: 28793, 98
  127. GB fn, tp: 53, 207
  128. GB f1 score: 0.733
  129. GB cohens kappa score: 0.730
  130. -> test with 'KNN'
  131. KNN tn, fp: 28272, 619
  132. KNN fn, tp: 99, 161
  133. KNN f1 score: 0.310
  134. KNN cohens kappa score: 0.300
  135. ------ Step 2/5: Slice 2/5 -------
  136. -> Reset the GAN
  137. -> Train generator for synthetic samples
  138. -> create 114528 synthetic samples
  139. -> test with 'LR'
  140. LR tn, fp: 28432, 459
  141. LR fn, tp: 18, 242
  142. LR f1 score: 0.504
  143. LR cohens kappa score: 0.497
  144. LR average precision score: 0.896
  145. -> test with 'GB'
  146. GB tn, fp: 28753, 138
  147. GB fn, tp: 43, 217
  148. GB f1 score: 0.706
  149. GB cohens kappa score: 0.703
  150. -> test with 'KNN'
  151. KNN tn, fp: 28275, 616
  152. KNN fn, tp: 85, 175
  153. KNN f1 score: 0.333
  154. KNN cohens kappa score: 0.324
  155. ------ Step 2/5: Slice 3/5 -------
  156. -> Reset the GAN
  157. -> Train generator for synthetic samples
  158. -> create 114528 synthetic samples
  159. -> test with 'LR'
  160. LR tn, fp: 28481, 410
  161. LR fn, tp: 28, 232
  162. LR f1 score: 0.514
  163. LR cohens kappa score: 0.508
  164. LR average precision score: 0.846
  165. -> test with 'GB'
  166. GB tn, fp: 28801, 90
  167. GB fn, tp: 50, 210
  168. GB f1 score: 0.750
  169. GB cohens kappa score: 0.748
  170. -> test with 'KNN'
  171. KNN tn, fp: 28338, 553
  172. KNN fn, tp: 92, 168
  173. KNN f1 score: 0.343
  174. KNN cohens kappa score: 0.334
  175. ------ Step 2/5: Slice 4/5 -------
  176. -> Reset the GAN
  177. -> Train generator for synthetic samples
  178. -> create 114528 synthetic samples
  179. -> test with 'LR'
  180. LR tn, fp: 28435, 456
  181. LR fn, tp: 23, 237
  182. LR f1 score: 0.497
  183. LR cohens kappa score: 0.491
  184. LR average precision score: 0.867
  185. -> test with 'GB'
  186. GB tn, fp: 28787, 104
  187. GB fn, tp: 51, 209
  188. GB f1 score: 0.729
  189. GB cohens kappa score: 0.727
  190. -> test with 'KNN'
  191. KNN tn, fp: 28321, 570
  192. KNN fn, tp: 88, 172
  193. KNN f1 score: 0.343
  194. KNN cohens kappa score: 0.335
  195. ------ Step 2/5: Slice 5/5 -------
  196. -> Reset the GAN
  197. -> Train generator for synthetic samples
  198. -> create 114524 synthetic samples
  199. -> test with 'LR'
  200. LR tn, fp: 28425, 466
  201. LR fn, tp: 23, 233
  202. LR f1 score: 0.488
  203. LR cohens kappa score: 0.481
  204. LR average precision score: 0.850
  205. -> test with 'GB'
  206. GB tn, fp: 28796, 95
  207. GB fn, tp: 57, 199
  208. GB f1 score: 0.724
  209. GB cohens kappa score: 0.721
  210. -> test with 'KNN'
  211. KNN tn, fp: 28293, 598
  212. KNN fn, tp: 97, 159
  213. KNN f1 score: 0.314
  214. KNN cohens kappa score: 0.305
  215. ====== Step 3/5 =======
  216. -> Shuffling data
  217. -> Spliting data to slices
  218. ------ Step 3/5: Slice 1/5 -------
  219. -> Reset the GAN
  220. -> Train generator for synthetic samples
  221. -> create 114528 synthetic samples
  222. -> test with 'LR'
  223. LR tn, fp: 28429, 462
  224. LR fn, tp: 23, 237
  225. LR f1 score: 0.494
  226. LR cohens kappa score: 0.488
  227. LR average precision score: 0.872
  228. -> test with 'GB'
  229. GB tn, fp: 28791, 100
  230. GB fn, tp: 48, 212
  231. GB f1 score: 0.741
  232. GB cohens kappa score: 0.739
  233. -> test with 'KNN'
  234. KNN tn, fp: 28282, 609
  235. KNN fn, tp: 89, 171
  236. KNN f1 score: 0.329
  237. KNN cohens kappa score: 0.320
  238. ------ Step 3/5: Slice 2/5 -------
  239. -> Reset the GAN
  240. -> Train generator for synthetic samples
  241. -> create 114528 synthetic samples
  242. -> test with 'LR'
  243. LR tn, fp: 28432, 459
  244. LR fn, tp: 23, 237
  245. LR f1 score: 0.496
  246. LR cohens kappa score: 0.489
  247. LR average precision score: 0.868
  248. -> test with 'GB'
  249. GB tn, fp: 28795, 96
  250. GB fn, tp: 53, 207
  251. GB f1 score: 0.735
  252. GB cohens kappa score: 0.733
  253. -> test with 'KNN'
  254. KNN tn, fp: 28331, 560
  255. KNN fn, tp: 103, 157
  256. KNN f1 score: 0.321
  257. KNN cohens kappa score: 0.312
  258. ------ Step 3/5: Slice 3/5 -------
  259. -> Reset the GAN
  260. -> Train generator for synthetic samples
  261. -> create 114528 synthetic samples
  262. -> test with 'LR'
  263. LR tn, fp: 28440, 451
  264. LR fn, tp: 33, 227
  265. LR f1 score: 0.484
  266. LR cohens kappa score: 0.477
  267. LR average precision score: 0.836
  268. -> test with 'GB'
  269. GB tn, fp: 28778, 113
  270. GB fn, tp: 50, 210
  271. GB f1 score: 0.720
  272. GB cohens kappa score: 0.718
  273. -> test with 'KNN'
  274. KNN tn, fp: 28298, 593
  275. KNN fn, tp: 103, 157
  276. KNN f1 score: 0.311
  277. KNN cohens kappa score: 0.302
  278. ------ Step 3/5: Slice 4/5 -------
  279. -> Reset the GAN
  280. -> Train generator for synthetic samples
  281. -> create 114528 synthetic samples
  282. -> test with 'LR'
  283. LR tn, fp: 28434, 457
  284. LR fn, tp: 25, 235
  285. LR f1 score: 0.494
  286. LR cohens kappa score: 0.487
  287. LR average precision score: 0.868
  288. -> test with 'GB'
  289. GB tn, fp: 28783, 108
  290. GB fn, tp: 53, 207
  291. GB f1 score: 0.720
  292. GB cohens kappa score: 0.717
  293. -> test with 'KNN'
  294. KNN tn, fp: 28322, 569
  295. KNN fn, tp: 95, 165
  296. KNN f1 score: 0.332
  297. KNN cohens kappa score: 0.323
  298. ------ Step 3/5: Slice 5/5 -------
  299. -> Reset the GAN
  300. -> Train generator for synthetic samples
  301. -> create 114524 synthetic samples
  302. -> test with 'LR'
  303. LR tn, fp: 28416, 475
  304. LR fn, tp: 19, 237
  305. LR f1 score: 0.490
  306. LR cohens kappa score: 0.483
  307. LR average precision score: 0.887
  308. -> test with 'GB'
  309. GB tn, fp: 28780, 111
  310. GB fn, tp: 47, 209
  311. GB f1 score: 0.726
  312. GB cohens kappa score: 0.723
  313. -> test with 'KNN'
  314. KNN tn, fp: 28299, 592
  315. KNN fn, tp: 84, 172
  316. KNN f1 score: 0.337
  317. KNN cohens kappa score: 0.328
  318. ====== Step 4/5 =======
  319. -> Shuffling data
  320. -> Spliting data to slices
  321. ------ Step 4/5: Slice 1/5 -------
  322. -> Reset the GAN
  323. -> Train generator for synthetic samples
  324. -> create 114528 synthetic samples
  325. -> test with 'LR'
  326. LR tn, fp: 28437, 454
  327. LR fn, tp: 20, 240
  328. LR f1 score: 0.503
  329. LR cohens kappa score: 0.497
  330. LR average precision score: 0.880
  331. -> test with 'GB'
  332. GB tn, fp: 28787, 104
  333. GB fn, tp: 47, 213
  334. GB f1 score: 0.738
  335. GB cohens kappa score: 0.736
  336. -> test with 'KNN'
  337. KNN tn, fp: 28301, 590
  338. KNN fn, tp: 86, 174
  339. KNN f1 score: 0.340
  340. KNN cohens kappa score: 0.331
  341. ------ Step 4/5: Slice 2/5 -------
  342. -> Reset the GAN
  343. -> Train generator for synthetic samples
  344. -> create 114528 synthetic samples
  345. -> test with 'LR'
  346. LR tn, fp: 28450, 441
  347. LR fn, tp: 22, 238
  348. LR f1 score: 0.507
  349. LR cohens kappa score: 0.500
  350. LR average precision score: 0.846
  351. -> test with 'GB'
  352. GB tn, fp: 28802, 89
  353. GB fn, tp: 63, 197
  354. GB f1 score: 0.722
  355. GB cohens kappa score: 0.719
  356. -> test with 'KNN'
  357. KNN tn, fp: 28323, 568
  358. KNN fn, tp: 104, 156
  359. KNN f1 score: 0.317
  360. KNN cohens kappa score: 0.308
  361. ------ Step 4/5: Slice 3/5 -------
  362. -> Reset the GAN
  363. -> Train generator for synthetic samples
  364. -> create 114528 synthetic samples
  365. -> test with 'LR'
  366. LR tn, fp: 28493, 398
  367. LR fn, tp: 27, 233
  368. LR f1 score: 0.523
  369. LR cohens kappa score: 0.517
  370. LR average precision score: 0.859
  371. -> test with 'GB'
  372. GB tn, fp: 28803, 88
  373. GB fn, tp: 48, 212
  374. GB f1 score: 0.757
  375. GB cohens kappa score: 0.755
  376. -> test with 'KNN'
  377. KNN tn, fp: 28281, 610
  378. KNN fn, tp: 87, 173
  379. KNN f1 score: 0.332
  380. KNN cohens kappa score: 0.323
  381. ------ Step 4/5: Slice 4/5 -------
  382. -> Reset the GAN
  383. -> Train generator for synthetic samples
  384. -> create 114528 synthetic samples
  385. -> test with 'LR'
  386. LR tn, fp: 28423, 468
  387. LR fn, tp: 24, 236
  388. LR f1 score: 0.490
  389. LR cohens kappa score: 0.483
  390. LR average precision score: 0.877
  391. -> test with 'GB'
  392. GB tn, fp: 28799, 92
  393. GB fn, tp: 51, 209
  394. GB f1 score: 0.745
  395. GB cohens kappa score: 0.743
  396. -> test with 'KNN'
  397. KNN tn, fp: 28327, 564
  398. KNN fn, tp: 95, 165
  399. KNN f1 score: 0.334
  400. KNN cohens kappa score: 0.325
  401. ------ Step 4/5: Slice 5/5 -------
  402. -> Reset the GAN
  403. -> Train generator for synthetic samples
  404. -> create 114524 synthetic samples
  405. -> test with 'LR'
  406. LR tn, fp: 28487, 404
  407. LR fn, tp: 27, 229
  408. LR f1 score: 0.515
  409. LR cohens kappa score: 0.509
  410. LR average precision score: 0.860
  411. -> test with 'GB'
  412. GB tn, fp: 28781, 110
  413. GB fn, tp: 53, 203
  414. GB f1 score: 0.714
  415. GB cohens kappa score: 0.711
  416. -> test with 'KNN'
  417. KNN tn, fp: 28280, 611
  418. KNN fn, tp: 83, 173
  419. KNN f1 score: 0.333
  420. KNN cohens kappa score: 0.324
  421. ====== Step 5/5 =======
  422. -> Shuffling data
  423. -> Spliting data to slices
  424. ------ Step 5/5: Slice 1/5 -------
  425. -> Reset the GAN
  426. -> Train generator for synthetic samples
  427. -> create 114528 synthetic samples
  428. -> test with 'LR'
  429. LR tn, fp: 28406, 485
  430. LR fn, tp: 22, 238
  431. LR f1 score: 0.484
  432. LR cohens kappa score: 0.477
  433. LR average precision score: 0.871
  434. -> test with 'GB'
  435. GB tn, fp: 28770, 121
  436. GB fn, tp: 47, 213
  437. GB f1 score: 0.717
  438. GB cohens kappa score: 0.714
  439. -> test with 'KNN'
  440. KNN tn, fp: 28323, 568
  441. KNN fn, tp: 102, 158
  442. KNN f1 score: 0.320
  443. KNN cohens kappa score: 0.311
  444. ------ Step 5/5: Slice 2/5 -------
  445. -> Reset the GAN
  446. -> Train generator for synthetic samples
  447. -> create 114528 synthetic samples
  448. -> test with 'LR'
  449. LR tn, fp: 28486, 405
  450. LR fn, tp: 28, 232
  451. LR f1 score: 0.517
  452. LR cohens kappa score: 0.511
  453. LR average precision score: 0.866
  454. -> test with 'GB'
  455. GB tn, fp: 28804, 87
  456. GB fn, tp: 53, 207
  457. GB f1 score: 0.747
  458. GB cohens kappa score: 0.745
  459. -> test with 'KNN'
  460. KNN tn, fp: 28316, 575
  461. KNN fn, tp: 98, 162
  462. KNN f1 score: 0.325
  463. KNN cohens kappa score: 0.316
  464. ------ Step 5/5: Slice 3/5 -------
  465. -> Reset the GAN
  466. -> Train generator for synthetic samples
  467. -> create 114528 synthetic samples
  468. -> test with 'LR'
  469. LR tn, fp: 28438, 453
  470. LR fn, tp: 24, 236
  471. LR f1 score: 0.497
  472. LR cohens kappa score: 0.491
  473. LR average precision score: 0.854
  474. -> test with 'GB'
  475. GB tn, fp: 28813, 78
  476. GB fn, tp: 59, 201
  477. GB f1 score: 0.746
  478. GB cohens kappa score: 0.743
  479. -> test with 'KNN'
  480. KNN tn, fp: 28348, 543
  481. KNN fn, tp: 102, 158
  482. KNN f1 score: 0.329
  483. KNN cohens kappa score: 0.320
  484. ------ Step 5/5: Slice 4/5 -------
  485. -> Reset the GAN
  486. -> Train generator for synthetic samples
  487. -> create 114528 synthetic samples
  488. -> test with 'LR'
  489. LR tn, fp: 28453, 438
  490. LR fn, tp: 20, 240
  491. LR f1 score: 0.512
  492. LR cohens kappa score: 0.505
  493. LR average precision score: 0.872
  494. -> test with 'GB'
  495. GB tn, fp: 28778, 113
  496. GB fn, tp: 54, 206
  497. GB f1 score: 0.712
  498. GB cohens kappa score: 0.709
  499. -> test with 'KNN'
  500. KNN tn, fp: 28282, 609
  501. KNN fn, tp: 91, 169
  502. KNN f1 score: 0.326
  503. KNN cohens kappa score: 0.316
  504. ------ Step 5/5: Slice 5/5 -------
  505. -> Reset the GAN
  506. -> Train generator for synthetic samples
  507. -> create 114524 synthetic samples
  508. -> test with 'LR'
  509. LR tn, fp: 28436, 455
  510. LR fn, tp: 28, 228
  511. LR f1 score: 0.486
  512. LR cohens kappa score: 0.479
  513. LR average precision score: 0.855
  514. -> test with 'GB'
  515. GB tn, fp: 28776, 115
  516. GB fn, tp: 49, 207
  517. GB f1 score: 0.716
  518. GB cohens kappa score: 0.713
  519. -> test with 'KNN'
  520. KNN tn, fp: 28316, 575
  521. KNN fn, tp: 89, 167
  522. KNN f1 score: 0.335
  523. KNN cohens kappa score: 0.326
  524. ### Exercise is done.
  525. -----[ LR ]-----
  526. maximum:
  527. LR tn, fp: 28493, 518
  528. LR fn, tp: 35, 251
  529. LR f1 score: 0.523
  530. LR cohens kappa score: 0.517
  531. LR average precision score: 0.896
  532. average:
  533. LR tn, fp: 28444.24, 446.76
  534. LR fn, tp: 24.0, 235.2
  535. LR f1 score: 0.500
  536. LR cohens kappa score: 0.494
  537. LR average precision score: 0.865
  538. minimum:
  539. LR tn, fp: 28373, 398
  540. LR fn, tp: 9, 221
  541. LR f1 score: 0.484
  542. LR cohens kappa score: 0.477
  543. LR average precision score: 0.815
  544. -----[ GB ]-----
  545. maximum:
  546. GB tn, fp: 28813, 138
  547. GB fn, tp: 63, 219
  548. GB f1 score: 0.779
  549. GB cohens kappa score: 0.777
  550. average:
  551. GB tn, fp: 28787.92, 103.08
  552. GB fn, tp: 51.24, 207.96
  553. GB f1 score: 0.730
  554. GB cohens kappa score: 0.727
  555. minimum:
  556. GB tn, fp: 28753, 78
  557. GB fn, tp: 41, 193
  558. GB f1 score: 0.706
  559. GB cohens kappa score: 0.703
  560. -----[ KNN ]-----
  561. maximum:
  562. KNN tn, fp: 28361, 631
  563. KNN fn, tp: 105, 185
  564. KNN f1 score: 0.344
  565. KNN cohens kappa score: 0.335
  566. average:
  567. KNN tn, fp: 28306.4, 584.6
  568. KNN fn, tp: 93.6, 165.6
  569. KNN f1 score: 0.328
  570. KNN cohens kappa score: 0.319
  571. minimum:
  572. KNN tn, fp: 28260, 530
  573. KNN fn, tp: 75, 151
  574. KNN f1 score: 0.310
  575. KNN cohens kappa score: 0.300