folding_hypothyroid.log 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. ///////////////////////////////////////////
  2. // Running convGAN-proximary-5 on folding_hypothyroid
  3. ///////////////////////////////////////////
  4. Load 'data_input/folding_hypothyroid'
  5. from pickle file
  6. non empty cut in data_input/folding_hypothyroid! (1 points)
  7. Data loaded.
  8. -> Shuffling data
  9. ### Start exercise for synthetic point generator
  10. ====== Step 1/5 =======
  11. -> Shuffling data
  12. -> Spliting data to slices
  13. ------ Step 1/5: Slice 1/5 -------
  14. -> Reset the GAN
  15. -> Train generator for synthetic samples
  16. -> create 2289 synthetic samples
  17. -> test with GAN.predict
  18. GAN tn, fp: 499, 104
  19. GAN fn, tp: 6, 25
  20. GAN f1 score: 0.312
  21. GAN cohens kappa score: 0.254
  22. -> test with 'LR'
  23. LR tn, fp: 523, 80
  24. LR fn, tp: 5, 26
  25. LR f1 score: 0.380
  26. LR cohens kappa score: 0.329
  27. LR average precision score: 0.477
  28. -> test with 'GB'
  29. GB tn, fp: 593, 10
  30. GB fn, tp: 4, 27
  31. GB f1 score: 0.794
  32. GB cohens kappa score: 0.783
  33. -> test with 'KNN'
  34. KNN tn, fp: 576, 27
  35. KNN fn, tp: 3, 28
  36. KNN f1 score: 0.651
  37. KNN cohens kappa score: 0.628
  38. ------ Step 1/5: Slice 2/5 -------
  39. -> Reset the GAN
  40. -> Train generator for synthetic samples
  41. -> create 2289 synthetic samples
  42. -> test with GAN.predict
  43. GAN tn, fp: 474, 129
  44. GAN fn, tp: 8, 23
  45. GAN f1 score: 0.251
  46. GAN cohens kappa score: 0.185
  47. -> test with 'LR'
  48. LR tn, fp: 519, 84
  49. LR fn, tp: 3, 28
  50. LR f1 score: 0.392
  51. LR cohens kappa score: 0.341
  52. LR average precision score: 0.473
  53. -> test with 'GB'
  54. GB tn, fp: 592, 11
  55. GB fn, tp: 3, 28
  56. GB f1 score: 0.800
  57. GB cohens kappa score: 0.788
  58. -> test with 'KNN'
  59. KNN tn, fp: 569, 34
  60. KNN fn, tp: 4, 27
  61. KNN f1 score: 0.587
  62. KNN cohens kappa score: 0.558
  63. ------ Step 1/5: Slice 3/5 -------
  64. -> Reset the GAN
  65. -> Train generator for synthetic samples
  66. -> create 2289 synthetic samples
  67. -> test with GAN.predict
  68. GAN tn, fp: 520, 83
  69. GAN fn, tp: 11, 20
  70. GAN f1 score: 0.299
  71. GAN cohens kappa score: 0.241
  72. -> test with 'LR'
  73. LR tn, fp: 506, 97
  74. LR fn, tp: 6, 25
  75. LR f1 score: 0.327
  76. LR cohens kappa score: 0.270
  77. LR average precision score: 0.327
  78. -> test with 'GB'
  79. GB tn, fp: 589, 14
  80. GB fn, tp: 2, 29
  81. GB f1 score: 0.784
  82. GB cohens kappa score: 0.771
  83. -> test with 'KNN'
  84. KNN tn, fp: 575, 28
  85. KNN fn, tp: 7, 24
  86. KNN f1 score: 0.578
  87. KNN cohens kappa score: 0.551
  88. ------ Step 1/5: Slice 4/5 -------
  89. -> Reset the GAN
  90. -> Train generator for synthetic samples
  91. -> create 2289 synthetic samples
  92. -> test with GAN.predict
  93. GAN tn, fp: 579, 24
  94. GAN fn, tp: 12, 19
  95. GAN f1 score: 0.514
  96. GAN cohens kappa score: 0.484
  97. -> test with 'LR'
  98. LR tn, fp: 501, 102
  99. LR fn, tp: 3, 28
  100. LR f1 score: 0.348
  101. LR cohens kappa score: 0.292
  102. LR average precision score: 0.429
  103. -> test with 'GB'
  104. GB tn, fp: 596, 7
  105. GB fn, tp: 5, 26
  106. GB f1 score: 0.812
  107. GB cohens kappa score: 0.803
  108. -> test with 'KNN'
  109. KNN tn, fp: 573, 30
  110. KNN fn, tp: 11, 20
  111. KNN f1 score: 0.494
  112. KNN cohens kappa score: 0.461
  113. ------ Step 1/5: Slice 5/5 -------
  114. -> Reset the GAN
  115. -> Train generator for synthetic samples
  116. -> create 2288 synthetic samples
  117. -> test with GAN.predict
  118. GAN tn, fp: 585, 15
  119. GAN fn, tp: 11, 16
  120. GAN f1 score: 0.552
  121. GAN cohens kappa score: 0.530
  122. -> test with 'LR'
  123. LR tn, fp: 525, 75
  124. LR fn, tp: 2, 25
  125. LR f1 score: 0.394
  126. LR cohens kappa score: 0.350
  127. LR average precision score: 0.560
  128. -> test with 'GB'
  129. GB tn, fp: 591, 9
  130. GB fn, tp: 2, 25
  131. GB f1 score: 0.820
  132. GB cohens kappa score: 0.811
  133. -> test with 'KNN'
  134. KNN tn, fp: 569, 31
  135. KNN fn, tp: 2, 25
  136. KNN f1 score: 0.602
  137. KNN cohens kappa score: 0.578
  138. ====== Step 2/5 =======
  139. -> Shuffling data
  140. -> Spliting data to slices
  141. ------ Step 2/5: Slice 1/5 -------
  142. -> Reset the GAN
  143. -> Train generator for synthetic samples
  144. -> create 2289 synthetic samples
  145. -> test with GAN.predict
  146. GAN tn, fp: 524, 79
  147. GAN fn, tp: 8, 23
  148. GAN f1 score: 0.346
  149. GAN cohens kappa score: 0.293
  150. -> test with 'LR'
  151. LR tn, fp: 524, 79
  152. LR fn, tp: 4, 27
  153. LR f1 score: 0.394
  154. LR cohens kappa score: 0.345
  155. LR average precision score: 0.482
  156. -> test with 'GB'
  157. GB tn, fp: 588, 15
  158. GB fn, tp: 3, 28
  159. GB f1 score: 0.757
  160. GB cohens kappa score: 0.742
  161. -> test with 'KNN'
  162. KNN tn, fp: 581, 22
  163. KNN fn, tp: 6, 25
  164. KNN f1 score: 0.641
  165. KNN cohens kappa score: 0.619
  166. ------ Step 2/5: Slice 2/5 -------
  167. -> Reset the GAN
  168. -> Train generator for synthetic samples
  169. -> create 2289 synthetic samples
  170. -> test with GAN.predict
  171. GAN tn, fp: 454, 149
  172. GAN fn, tp: 8, 23
  173. GAN f1 score: 0.227
  174. GAN cohens kappa score: 0.157
  175. -> test with 'LR'
  176. LR tn, fp: 536, 67
  177. LR fn, tp: 6, 25
  178. LR f1 score: 0.407
  179. LR cohens kappa score: 0.360
  180. LR average precision score: 0.414
  181. -> test with 'GB'
  182. GB tn, fp: 596, 7
  183. GB fn, tp: 4, 27
  184. GB f1 score: 0.831
  185. GB cohens kappa score: 0.822
  186. -> test with 'KNN'
  187. KNN tn, fp: 579, 24
  188. KNN fn, tp: 6, 25
  189. KNN f1 score: 0.625
  190. KNN cohens kappa score: 0.601
  191. ------ Step 2/5: Slice 3/5 -------
  192. -> Reset the GAN
  193. -> Train generator for synthetic samples
  194. -> create 2289 synthetic samples
  195. -> test with GAN.predict
  196. GAN tn, fp: 569, 34
  197. GAN fn, tp: 10, 21
  198. GAN f1 score: 0.488
  199. GAN cohens kappa score: 0.454
  200. -> test with 'LR'
  201. LR tn, fp: 507, 96
  202. LR fn, tp: 4, 27
  203. LR f1 score: 0.351
  204. LR cohens kappa score: 0.296
  205. LR average precision score: 0.582
  206. -> test with 'GB'
  207. GB tn, fp: 596, 7
  208. GB fn, tp: 6, 25
  209. GB f1 score: 0.794
  210. GB cohens kappa score: 0.783
  211. -> test with 'KNN'
  212. KNN tn, fp: 575, 28
  213. KNN fn, tp: 8, 23
  214. KNN f1 score: 0.561
  215. KNN cohens kappa score: 0.533
  216. ------ Step 2/5: Slice 4/5 -------
  217. -> Reset the GAN
  218. -> Train generator for synthetic samples
  219. -> create 2289 synthetic samples
  220. -> test with GAN.predict
  221. GAN tn, fp: 511, 92
  222. GAN fn, tp: 6, 25
  223. GAN f1 score: 0.338
  224. GAN cohens kappa score: 0.282
  225. -> test with 'LR'
  226. LR tn, fp: 509, 94
  227. LR fn, tp: 6, 25
  228. LR f1 score: 0.333
  229. LR cohens kappa score: 0.277
  230. LR average precision score: 0.277
  231. -> test with 'GB'
  232. GB tn, fp: 591, 12
  233. GB fn, tp: 4, 27
  234. GB f1 score: 0.771
  235. GB cohens kappa score: 0.758
  236. -> test with 'KNN'
  237. KNN tn, fp: 574, 29
  238. KNN fn, tp: 7, 24
  239. KNN f1 score: 0.571
  240. KNN cohens kappa score: 0.543
  241. ------ Step 2/5: Slice 5/5 -------
  242. -> Reset the GAN
  243. -> Train generator for synthetic samples
  244. -> create 2288 synthetic samples
  245. -> test with GAN.predict
  246. GAN tn, fp: 582, 18
  247. GAN fn, tp: 8, 19
  248. GAN f1 score: 0.594
  249. GAN cohens kappa score: 0.572
  250. -> test with 'LR'
  251. LR tn, fp: 500, 100
  252. LR fn, tp: 1, 26
  253. LR f1 score: 0.340
  254. LR cohens kappa score: 0.289
  255. LR average precision score: 0.507
  256. -> test with 'GB'
  257. GB tn, fp: 589, 11
  258. GB fn, tp: 1, 26
  259. GB f1 score: 0.812
  260. GB cohens kappa score: 0.803
  261. -> test with 'KNN'
  262. KNN tn, fp: 575, 25
  263. KNN fn, tp: 4, 23
  264. KNN f1 score: 0.613
  265. KNN cohens kappa score: 0.591
  266. ====== Step 3/5 =======
  267. -> Shuffling data
  268. -> Spliting data to slices
  269. ------ Step 3/5: Slice 1/5 -------
  270. -> Reset the GAN
  271. -> Train generator for synthetic samples
  272. -> create 2289 synthetic samples
  273. -> test with GAN.predict
  274. GAN tn, fp: 564, 39
  275. GAN fn, tp: 13, 18
  276. GAN f1 score: 0.409
  277. GAN cohens kappa score: 0.369
  278. -> test with 'LR'
  279. LR tn, fp: 501, 102
  280. LR fn, tp: 5, 26
  281. LR f1 score: 0.327
  282. LR cohens kappa score: 0.270
  283. LR average precision score: 0.474
  284. -> test with 'GB'
  285. GB tn, fp: 599, 4
  286. GB fn, tp: 6, 25
  287. GB f1 score: 0.833
  288. GB cohens kappa score: 0.825
  289. -> test with 'KNN'
  290. KNN tn, fp: 577, 26
  291. KNN fn, tp: 10, 21
  292. KNN f1 score: 0.538
  293. KNN cohens kappa score: 0.510
  294. ------ Step 3/5: Slice 2/5 -------
  295. -> Reset the GAN
  296. -> Train generator for synthetic samples
  297. -> create 2289 synthetic samples
  298. -> test with GAN.predict
  299. GAN tn, fp: 558, 45
  300. GAN fn, tp: 10, 21
  301. GAN f1 score: 0.433
  302. GAN cohens kappa score: 0.393
  303. -> test with 'LR'
  304. LR tn, fp: 527, 76
  305. LR fn, tp: 10, 21
  306. LR f1 score: 0.328
  307. LR cohens kappa score: 0.274
  308. LR average precision score: 0.288
  309. -> test with 'GB'
  310. GB tn, fp: 587, 16
  311. GB fn, tp: 3, 28
  312. GB f1 score: 0.747
  313. GB cohens kappa score: 0.731
  314. -> test with 'KNN'
  315. KNN tn, fp: 572, 31
  316. KNN fn, tp: 6, 25
  317. KNN f1 score: 0.575
  318. KNN cohens kappa score: 0.546
  319. ------ Step 3/5: Slice 3/5 -------
  320. -> Reset the GAN
  321. -> Train generator for synthetic samples
  322. -> create 2289 synthetic samples
  323. -> test with GAN.predict
  324. GAN tn, fp: 586, 17
  325. GAN fn, tp: 7, 24
  326. GAN f1 score: 0.667
  327. GAN cohens kappa score: 0.647
  328. -> test with 'LR'
  329. LR tn, fp: 512, 91
  330. LR fn, tp: 1, 30
  331. LR f1 score: 0.395
  332. LR cohens kappa score: 0.344
  333. LR average precision score: 0.515
  334. -> test with 'GB'
  335. GB tn, fp: 589, 14
  336. GB fn, tp: 3, 28
  337. GB f1 score: 0.767
  338. GB cohens kappa score: 0.753
  339. -> test with 'KNN'
  340. KNN tn, fp: 566, 37
  341. KNN fn, tp: 7, 24
  342. KNN f1 score: 0.522
  343. KNN cohens kappa score: 0.489
  344. ------ Step 3/5: Slice 4/5 -------
  345. -> Reset the GAN
  346. -> Train generator for synthetic samples
  347. -> create 2289 synthetic samples
  348. -> test with GAN.predict
  349. GAN tn, fp: 552, 51
  350. GAN fn, tp: 8, 23
  351. GAN f1 score: 0.438
  352. GAN cohens kappa score: 0.397
  353. -> test with 'LR'
  354. LR tn, fp: 514, 89
  355. LR fn, tp: 2, 29
  356. LR f1 score: 0.389
  357. LR cohens kappa score: 0.338
  358. LR average precision score: 0.487
  359. -> test with 'GB'
  360. GB tn, fp: 586, 17
  361. GB fn, tp: 5, 26
  362. GB f1 score: 0.703
  363. GB cohens kappa score: 0.685
  364. -> test with 'KNN'
  365. KNN tn, fp: 569, 34
  366. KNN fn, tp: 7, 24
  367. KNN f1 score: 0.539
  368. KNN cohens kappa score: 0.508
  369. ------ Step 3/5: Slice 5/5 -------
  370. -> Reset the GAN
  371. -> Train generator for synthetic samples
  372. -> create 2288 synthetic samples
  373. -> test with GAN.predict
  374. GAN tn, fp: 516, 84
  375. GAN fn, tp: 7, 20
  376. GAN f1 score: 0.305
  377. GAN cohens kappa score: 0.254
  378. -> test with 'LR'
  379. LR tn, fp: 508, 92
  380. LR fn, tp: 4, 23
  381. LR f1 score: 0.324
  382. LR cohens kappa score: 0.273
  383. LR average precision score: 0.301
  384. -> test with 'GB'
  385. GB tn, fp: 591, 9
  386. GB fn, tp: 1, 26
  387. GB f1 score: 0.839
  388. GB cohens kappa score: 0.830
  389. -> test with 'KNN'
  390. KNN tn, fp: 575, 25
  391. KNN fn, tp: 2, 25
  392. KNN f1 score: 0.649
  393. KNN cohens kappa score: 0.629
  394. ====== Step 4/5 =======
  395. -> Shuffling data
  396. -> Spliting data to slices
  397. ------ Step 4/5: Slice 1/5 -------
  398. -> Reset the GAN
  399. -> Train generator for synthetic samples
  400. -> create 2289 synthetic samples
  401. -> test with GAN.predict
  402. GAN tn, fp: 503, 100
  403. GAN fn, tp: 5, 26
  404. GAN f1 score: 0.331
  405. GAN cohens kappa score: 0.274
  406. -> test with 'LR'
  407. LR tn, fp: 527, 76
  408. LR fn, tp: 5, 26
  409. LR f1 score: 0.391
  410. LR cohens kappa score: 0.342
  411. LR average precision score: 0.397
  412. -> test with 'GB'
  413. GB tn, fp: 590, 13
  414. GB fn, tp: 3, 28
  415. GB f1 score: 0.778
  416. GB cohens kappa score: 0.765
  417. -> test with 'KNN'
  418. KNN tn, fp: 572, 31
  419. KNN fn, tp: 7, 24
  420. KNN f1 score: 0.558
  421. KNN cohens kappa score: 0.529
  422. ------ Step 4/5: Slice 2/5 -------
  423. -> Reset the GAN
  424. -> Train generator for synthetic samples
  425. -> create 2289 synthetic samples
  426. -> test with GAN.predict
  427. GAN tn, fp: 472, 131
  428. GAN fn, tp: 9, 22
  429. GAN f1 score: 0.239
  430. GAN cohens kappa score: 0.172
  431. -> test with 'LR'
  432. LR tn, fp: 524, 79
  433. LR fn, tp: 5, 26
  434. LR f1 score: 0.382
  435. LR cohens kappa score: 0.332
  436. LR average precision score: 0.429
  437. -> test with 'GB'
  438. GB tn, fp: 595, 8
  439. GB fn, tp: 4, 27
  440. GB f1 score: 0.818
  441. GB cohens kappa score: 0.808
  442. -> test with 'KNN'
  443. KNN tn, fp: 572, 31
  444. KNN fn, tp: 4, 27
  445. KNN f1 score: 0.607
  446. KNN cohens kappa score: 0.580
  447. ------ Step 4/5: Slice 3/5 -------
  448. -> Reset the GAN
  449. -> Train generator for synthetic samples
  450. -> create 2289 synthetic samples
  451. -> test with GAN.predict
  452. GAN tn, fp: 570, 33
  453. GAN fn, tp: 13, 18
  454. GAN f1 score: 0.439
  455. GAN cohens kappa score: 0.403
  456. -> test with 'LR'
  457. LR tn, fp: 507, 96
  458. LR fn, tp: 2, 29
  459. LR f1 score: 0.372
  460. LR cohens kappa score: 0.318
  461. LR average precision score: 0.585
  462. -> test with 'GB'
  463. GB tn, fp: 597, 6
  464. GB fn, tp: 5, 26
  465. GB f1 score: 0.825
  466. GB cohens kappa score: 0.816
  467. -> test with 'KNN'
  468. KNN tn, fp: 576, 27
  469. KNN fn, tp: 4, 27
  470. KNN f1 score: 0.635
  471. KNN cohens kappa score: 0.611
  472. ------ Step 4/5: Slice 4/5 -------
  473. -> Reset the GAN
  474. -> Train generator for synthetic samples
  475. -> create 2289 synthetic samples
  476. -> test with GAN.predict
  477. GAN tn, fp: 483, 120
  478. GAN fn, tp: 8, 23
  479. GAN f1 score: 0.264
  480. GAN cohens kappa score: 0.200
  481. -> test with 'LR'
  482. LR tn, fp: 500, 103
  483. LR fn, tp: 3, 28
  484. LR f1 score: 0.346
  485. LR cohens kappa score: 0.289
  486. LR average precision score: 0.428
  487. -> test with 'GB'
  488. GB tn, fp: 590, 13
  489. GB fn, tp: 0, 31
  490. GB f1 score: 0.827
  491. GB cohens kappa score: 0.816
  492. -> test with 'KNN'
  493. KNN tn, fp: 576, 27
  494. KNN fn, tp: 7, 24
  495. KNN f1 score: 0.585
  496. KNN cohens kappa score: 0.559
  497. ------ Step 4/5: Slice 5/5 -------
  498. -> Reset the GAN
  499. -> Train generator for synthetic samples
  500. -> create 2288 synthetic samples
  501. -> test with GAN.predict
  502. GAN tn, fp: 514, 86
  503. GAN fn, tp: 7, 20
  504. GAN f1 score: 0.301
  505. GAN cohens kappa score: 0.249
  506. -> test with 'LR'
  507. LR tn, fp: 510, 90
  508. LR fn, tp: 6, 21
  509. LR f1 score: 0.304
  510. LR cohens kappa score: 0.253
  511. LR average precision score: 0.415
  512. -> test with 'GB'
  513. GB tn, fp: 590, 10
  514. GB fn, tp: 5, 22
  515. GB f1 score: 0.746
  516. GB cohens kappa score: 0.733
  517. -> test with 'KNN'
  518. KNN tn, fp: 564, 36
  519. KNN fn, tp: 6, 21
  520. KNN f1 score: 0.500
  521. KNN cohens kappa score: 0.469
  522. ====== Step 5/5 =======
  523. -> Shuffling data
  524. -> Spliting data to slices
  525. ------ Step 5/5: Slice 1/5 -------
  526. -> Reset the GAN
  527. -> Train generator for synthetic samples
  528. -> create 2289 synthetic samples
  529. -> test with GAN.predict
  530. GAN tn, fp: 524, 79
  531. GAN fn, tp: 8, 23
  532. GAN f1 score: 0.346
  533. GAN cohens kappa score: 0.293
  534. -> test with 'LR'
  535. LR tn, fp: 523, 80
  536. LR fn, tp: 5, 26
  537. LR f1 score: 0.380
  538. LR cohens kappa score: 0.329
  539. LR average precision score: 0.408
  540. -> test with 'GB'
  541. GB tn, fp: 591, 12
  542. GB fn, tp: 3, 28
  543. GB f1 score: 0.789
  544. GB cohens kappa score: 0.776
  545. -> test with 'KNN'
  546. KNN tn, fp: 581, 22
  547. KNN fn, tp: 7, 24
  548. KNN f1 score: 0.623
  549. KNN cohens kappa score: 0.600
  550. ------ Step 5/5: Slice 2/5 -------
  551. -> Reset the GAN
  552. -> Train generator for synthetic samples
  553. -> create 2289 synthetic samples
  554. -> test with GAN.predict
  555. GAN tn, fp: 415, 188
  556. GAN fn, tp: 14, 17
  557. GAN f1 score: 0.144
  558. GAN cohens kappa score: 0.065
  559. -> test with 'LR'
  560. LR tn, fp: 529, 74
  561. LR fn, tp: 6, 25
  562. LR f1 score: 0.385
  563. LR cohens kappa score: 0.335
  564. LR average precision score: 0.501
  565. -> test with 'GB'
  566. GB tn, fp: 593, 10
  567. GB fn, tp: 3, 28
  568. GB f1 score: 0.812
  569. GB cohens kappa score: 0.801
  570. -> test with 'KNN'
  571. KNN tn, fp: 575, 28
  572. KNN fn, tp: 7, 24
  573. KNN f1 score: 0.578
  574. KNN cohens kappa score: 0.551
  575. ------ Step 5/5: Slice 3/5 -------
  576. -> Reset the GAN
  577. -> Train generator for synthetic samples
  578. -> create 2289 synthetic samples
  579. -> test with GAN.predict
  580. GAN tn, fp: 564, 39
  581. GAN fn, tp: 9, 22
  582. GAN f1 score: 0.478
  583. GAN cohens kappa score: 0.442
  584. -> test with 'LR'
  585. LR tn, fp: 502, 101
  586. LR fn, tp: 2, 29
  587. LR f1 score: 0.360
  588. LR cohens kappa score: 0.305
  589. LR average precision score: 0.502
  590. -> test with 'GB'
  591. GB tn, fp: 593, 10
  592. GB fn, tp: 8, 23
  593. GB f1 score: 0.719
  594. GB cohens kappa score: 0.704
  595. -> test with 'KNN'
  596. KNN tn, fp: 572, 31
  597. KNN fn, tp: 8, 23
  598. KNN f1 score: 0.541
  599. KNN cohens kappa score: 0.511
  600. ------ Step 5/5: Slice 4/5 -------
  601. -> Reset the GAN
  602. -> Train generator for synthetic samples
  603. -> create 2289 synthetic samples
  604. -> test with GAN.predict
  605. GAN tn, fp: 509, 94
  606. GAN fn, tp: 4, 27
  607. GAN f1 score: 0.355
  608. GAN cohens kappa score: 0.301
  609. -> test with 'LR'
  610. LR tn, fp: 509, 94
  611. LR fn, tp: 3, 28
  612. LR f1 score: 0.366
  613. LR cohens kappa score: 0.312
  614. LR average precision score: 0.501
  615. -> test with 'GB'
  616. GB tn, fp: 595, 8
  617. GB fn, tp: 1, 30
  618. GB f1 score: 0.870
  619. GB cohens kappa score: 0.862
  620. -> test with 'KNN'
  621. KNN tn, fp: 573, 30
  622. KNN fn, tp: 6, 25
  623. KNN f1 score: 0.581
  624. KNN cohens kappa score: 0.553
  625. ------ Step 5/5: Slice 5/5 -------
  626. -> Reset the GAN
  627. -> Train generator for synthetic samples
  628. -> create 2288 synthetic samples
  629. -> test with GAN.predict
  630. GAN tn, fp: 553, 47
  631. GAN fn, tp: 6, 21
  632. GAN f1 score: 0.442
  633. GAN cohens kappa score: 0.405
  634. -> test with 'LR'
  635. LR tn, fp: 520, 80
  636. LR fn, tp: 3, 24
  637. LR f1 score: 0.366
  638. LR cohens kappa score: 0.320
  639. LR average precision score: 0.301
  640. -> test with 'GB'
  641. GB tn, fp: 590, 10
  642. GB fn, tp: 4, 23
  643. GB f1 score: 0.767
  644. GB cohens kappa score: 0.755
  645. -> test with 'KNN'
  646. KNN tn, fp: 572, 28
  647. KNN fn, tp: 4, 23
  648. KNN f1 score: 0.590
  649. KNN cohens kappa score: 0.565
  650. ### Exercise is done.
  651. -----[ LR ]-----
  652. maximum:
  653. LR tn, fp: 536, 103
  654. LR fn, tp: 10, 30
  655. LR f1 score: 0.407
  656. LR cohens kappa score: 0.360
  657. LR average precision score: 0.585
  658. average:
  659. LR tn, fp: 514.52, 87.88
  660. LR fn, tp: 4.08, 26.12
  661. LR f1 score: 0.363
  662. LR cohens kappa score: 0.311
  663. LR average precision score: 0.442
  664. minimum:
  665. LR tn, fp: 500, 67
  666. LR fn, tp: 1, 21
  667. LR f1 score: 0.304
  668. LR cohens kappa score: 0.253
  669. LR average precision score: 0.277
  670. -----[ GB ]-----
  671. maximum:
  672. GB tn, fp: 599, 17
  673. GB fn, tp: 8, 31
  674. GB f1 score: 0.870
  675. GB cohens kappa score: 0.862
  676. average:
  677. GB tn, fp: 591.88, 10.52
  678. GB fn, tp: 3.52, 26.68
  679. GB f1 score: 0.793
  680. GB cohens kappa score: 0.781
  681. minimum:
  682. GB tn, fp: 586, 4
  683. GB fn, tp: 0, 22
  684. GB f1 score: 0.703
  685. GB cohens kappa score: 0.685
  686. -----[ KNN ]-----
  687. maximum:
  688. KNN tn, fp: 581, 37
  689. KNN fn, tp: 11, 28
  690. KNN f1 score: 0.651
  691. KNN cohens kappa score: 0.629
  692. average:
  693. KNN tn, fp: 573.52, 28.88
  694. KNN fn, tp: 6.0, 24.2
  695. KNN f1 score: 0.582
  696. KNN cohens kappa score: 0.555
  697. minimum:
  698. KNN tn, fp: 564, 22
  699. KNN fn, tp: 2, 20
  700. KNN f1 score: 0.494
  701. KNN cohens kappa score: 0.461
  702. -----[ GAN ]-----
  703. maximum:
  704. GAN tn, fp: 586, 188
  705. GAN fn, tp: 14, 27
  706. GAN f1 score: 0.667
  707. GAN cohens kappa score: 0.647
  708. average:
  709. GAN tn, fp: 527.2, 75.2
  710. GAN fn, tp: 8.64, 21.56
  711. GAN f1 score: 0.380
  712. GAN cohens kappa score: 0.333
  713. minimum:
  714. GAN tn, fp: 415, 15
  715. GAN fn, tp: 4, 16
  716. GAN f1 score: 0.144
  717. GAN cohens kappa score: 0.065