| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777 |
- ///////////////////////////////////////////
- // Running SimpleGAN on folding_hypothyroid
- ///////////////////////////////////////////
- Load 'data_input/folding_hypothyroid'
- from pickle file
- non empty cut in data_input/folding_hypothyroid! (1 points)
- Data loaded.
- -> Shuffling data
- ### Start exercise for synthetic point generator
- ====== Step 1/5 =======
- -> Shuffling data
- -> Spliting data to slices
- ------ Step 1/5: Slice 1/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 595, 8
- LR fn, tp: 20, 11
- LR f1 score: 0.440
- LR cohens kappa score: 0.418
- LR average precision score: 0.440
- -> test with 'GB'
- GB tn, fp: 601, 2
- GB fn, tp: 8, 23
- GB f1 score: 0.821
- GB cohens kappa score: 0.813
- -> test with 'KNN'
- KNN tn, fp: 600, 3
- KNN fn, tp: 15, 16
- KNN f1 score: 0.640
- KNN cohens kappa score: 0.626
- ------ Step 1/5: Slice 2/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 592, 11
- LR fn, tp: 19, 12
- LR f1 score: 0.444
- LR cohens kappa score: 0.420
- LR average precision score: 0.501
- -> test with 'GB'
- GB tn, fp: 595, 8
- GB fn, tp: 9, 22
- GB f1 score: 0.721
- GB cohens kappa score: 0.707
- -> test with 'KNN'
- KNN tn, fp: 596, 7
- KNN fn, tp: 15, 16
- KNN f1 score: 0.593
- KNN cohens kappa score: 0.575
- ------ Step 1/5: Slice 3/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 594, 9
- LR fn, tp: 24, 7
- LR f1 score: 0.298
- LR cohens kappa score: 0.274
- LR average precision score: 0.402
- -> test with 'GB'
- GB tn, fp: 597, 6
- GB fn, tp: 6, 25
- GB f1 score: 0.806
- GB cohens kappa score: 0.797
- -> test with 'KNN'
- KNN tn, fp: 599, 4
- KNN fn, tp: 16, 15
- KNN f1 score: 0.600
- KNN cohens kappa score: 0.585
- ------ Step 1/5: Slice 4/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 594, 9
- LR fn, tp: 21, 10
- LR f1 score: 0.400
- LR cohens kappa score: 0.377
- LR average precision score: 0.436
- -> test with 'GB'
- GB tn, fp: 600, 3
- GB fn, tp: 10, 21
- GB f1 score: 0.764
- GB cohens kappa score: 0.753
- -> test with 'KNN'
- KNN tn, fp: 601, 2
- KNN fn, tp: 16, 15
- KNN f1 score: 0.625
- KNN cohens kappa score: 0.612
- ------ Step 1/5: Slice 5/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2288 synthetic samples
- -> test with 'LR'
- LR tn, fp: 595, 5
- LR fn, tp: 17, 10
- LR f1 score: 0.476
- LR cohens kappa score: 0.460
- LR average precision score: 0.578
- -> test with 'GB'
- GB tn, fp: 596, 4
- GB fn, tp: 5, 22
- GB f1 score: 0.830
- GB cohens kappa score: 0.823
- -> test with 'KNN'
- KNN tn, fp: 597, 3
- KNN fn, tp: 16, 11
- KNN f1 score: 0.537
- KNN cohens kappa score: 0.523
- ====== Step 2/5 =======
- -> Shuffling data
- -> Spliting data to slices
- ------ Step 2/5: Slice 1/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 596, 7
- LR fn, tp: 20, 11
- LR f1 score: 0.449
- LR cohens kappa score: 0.428
- LR average precision score: 0.521
- -> test with 'GB'
- GB tn, fp: 596, 7
- GB fn, tp: 12, 19
- GB f1 score: 0.667
- GB cohens kappa score: 0.651
- -> test with 'KNN'
- KNN tn, fp: 598, 5
- KNN fn, tp: 22, 9
- KNN f1 score: 0.400
- KNN cohens kappa score: 0.381
- ------ Step 2/5: Slice 2/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 595, 8
- LR fn, tp: 23, 8
- LR f1 score: 0.340
- LR cohens kappa score: 0.318
- LR average precision score: 0.507
- -> test with 'GB'
- GB tn, fp: 597, 6
- GB fn, tp: 8, 23
- GB f1 score: 0.767
- GB cohens kappa score: 0.755
- -> test with 'KNN'
- KNN tn, fp: 600, 3
- KNN fn, tp: 15, 16
- KNN f1 score: 0.640
- KNN cohens kappa score: 0.626
- ------ Step 2/5: Slice 3/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 596, 7
- LR fn, tp: 17, 14
- LR f1 score: 0.538
- LR cohens kappa score: 0.519
- LR average precision score: 0.495
- -> test with 'GB'
- GB tn, fp: 601, 2
- GB fn, tp: 11, 20
- GB f1 score: 0.755
- GB cohens kappa score: 0.744
- -> test with 'KNN'
- KNN tn, fp: 601, 2
- KNN fn, tp: 16, 15
- KNN f1 score: 0.625
- KNN cohens kappa score: 0.612
- ------ Step 2/5: Slice 4/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 595, 8
- LR fn, tp: 26, 5
- LR f1 score: 0.227
- LR cohens kappa score: 0.204
- LR average precision score: 0.369
- -> test with 'GB'
- GB tn, fp: 600, 3
- GB fn, tp: 5, 26
- GB f1 score: 0.867
- GB cohens kappa score: 0.860
- -> test with 'KNN'
- KNN tn, fp: 596, 7
- KNN fn, tp: 16, 15
- KNN f1 score: 0.566
- KNN cohens kappa score: 0.548
- ------ Step 2/5: Slice 5/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2288 synthetic samples
- -> test with 'LR'
- LR tn, fp: 592, 8
- LR fn, tp: 17, 10
- LR f1 score: 0.444
- LR cohens kappa score: 0.425
- LR average precision score: 0.563
- -> test with 'GB'
- GB tn, fp: 597, 3
- GB fn, tp: 5, 22
- GB f1 score: 0.846
- GB cohens kappa score: 0.840
- -> test with 'KNN'
- KNN tn, fp: 595, 5
- KNN fn, tp: 12, 15
- KNN f1 score: 0.638
- KNN cohens kappa score: 0.625
- ====== Step 3/5 =======
- -> Shuffling data
- -> Spliting data to slices
- ------ Step 3/5: Slice 1/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 598, 5
- LR fn, tp: 22, 9
- LR f1 score: 0.400
- LR cohens kappa score: 0.381
- LR average precision score: 0.533
- -> test with 'GB'
- GB tn, fp: 603, 0
- GB fn, tp: 12, 19
- GB f1 score: 0.760
- GB cohens kappa score: 0.751
- -> test with 'KNN'
- KNN tn, fp: 602, 1
- KNN fn, tp: 19, 12
- KNN f1 score: 0.545
- KNN cohens kappa score: 0.532
- ------ Step 3/5: Slice 2/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 594, 9
- LR fn, tp: 23, 8
- LR f1 score: 0.333
- LR cohens kappa score: 0.309
- LR average precision score: 0.351
- -> test with 'GB'
- GB tn, fp: 594, 9
- GB fn, tp: 5, 26
- GB f1 score: 0.788
- GB cohens kappa score: 0.776
- -> test with 'KNN'
- KNN tn, fp: 598, 5
- KNN fn, tp: 16, 15
- KNN f1 score: 0.588
- KNN cohens kappa score: 0.572
- ------ Step 3/5: Slice 3/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 595, 8
- LR fn, tp: 16, 15
- LR f1 score: 0.556
- LR cohens kappa score: 0.536
- LR average precision score: 0.659
- -> test with 'GB'
- GB tn, fp: 598, 5
- GB fn, tp: 6, 25
- GB f1 score: 0.820
- GB cohens kappa score: 0.811
- -> test with 'KNN'
- KNN tn, fp: 596, 7
- KNN fn, tp: 15, 16
- KNN f1 score: 0.593
- KNN cohens kappa score: 0.575
- ------ Step 3/5: Slice 4/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 596, 7
- LR fn, tp: 20, 11
- LR f1 score: 0.449
- LR cohens kappa score: 0.428
- LR average precision score: 0.511
- -> test with 'GB'
- GB tn, fp: 596, 7
- GB fn, tp: 7, 24
- GB f1 score: 0.774
- GB cohens kappa score: 0.763
- -> test with 'KNN'
- KNN tn, fp: 599, 4
- KNN fn, tp: 17, 14
- KNN f1 score: 0.571
- KNN cohens kappa score: 0.555
- ------ Step 3/5: Slice 5/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2288 synthetic samples
- -> test with 'LR'
- LR tn, fp: 595, 5
- LR fn, tp: 21, 6
- LR f1 score: 0.316
- LR cohens kappa score: 0.298
- LR average precision score: 0.394
- -> test with 'GB'
- GB tn, fp: 597, 3
- GB fn, tp: 8, 19
- GB f1 score: 0.776
- GB cohens kappa score: 0.766
- -> test with 'KNN'
- KNN tn, fp: 599, 1
- KNN fn, tp: 14, 13
- KNN f1 score: 0.634
- KNN cohens kappa score: 0.623
- ====== Step 4/5 =======
- -> Shuffling data
- -> Spliting data to slices
- ------ Step 4/5: Slice 1/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 592, 11
- LR fn, tp: 22, 9
- LR f1 score: 0.353
- LR cohens kappa score: 0.327
- LR average precision score: 0.382
- -> test with 'GB'
- GB tn, fp: 598, 5
- GB fn, tp: 6, 25
- GB f1 score: 0.820
- GB cohens kappa score: 0.811
- -> test with 'KNN'
- KNN tn, fp: 600, 3
- KNN fn, tp: 21, 10
- KNN f1 score: 0.455
- KNN cohens kappa score: 0.438
- ------ Step 4/5: Slice 2/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 593, 10
- LR fn, tp: 21, 10
- LR f1 score: 0.392
- LR cohens kappa score: 0.368
- LR average precision score: 0.494
- -> test with 'GB'
- GB tn, fp: 600, 3
- GB fn, tp: 9, 22
- GB f1 score: 0.786
- GB cohens kappa score: 0.776
- -> test with 'KNN'
- KNN tn, fp: 599, 4
- KNN fn, tp: 18, 13
- KNN f1 score: 0.542
- KNN cohens kappa score: 0.525
- ------ Step 4/5: Slice 3/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 600, 3
- LR fn, tp: 21, 10
- LR f1 score: 0.455
- LR cohens kappa score: 0.438
- LR average precision score: 0.611
- -> test with 'GB'
- GB tn, fp: 601, 2
- GB fn, tp: 7, 24
- GB f1 score: 0.842
- GB cohens kappa score: 0.835
- -> test with 'KNN'
- KNN tn, fp: 600, 3
- KNN fn, tp: 17, 14
- KNN f1 score: 0.583
- KNN cohens kappa score: 0.568
- ------ Step 4/5: Slice 4/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 594, 9
- LR fn, tp: 18, 13
- LR f1 score: 0.491
- LR cohens kappa score: 0.469
- LR average precision score: 0.520
- -> test with 'GB'
- GB tn, fp: 600, 3
- GB fn, tp: 7, 24
- GB f1 score: 0.828
- GB cohens kappa score: 0.819
- -> test with 'KNN'
- KNN tn, fp: 597, 6
- KNN fn, tp: 17, 14
- KNN f1 score: 0.549
- KNN cohens kappa score: 0.531
- ------ Step 4/5: Slice 5/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2288 synthetic samples
- -> test with 'LR'
- LR tn, fp: 592, 8
- LR fn, tp: 19, 8
- LR f1 score: 0.372
- LR cohens kappa score: 0.351
- LR average precision score: 0.442
- -> test with 'GB'
- GB tn, fp: 597, 3
- GB fn, tp: 10, 17
- GB f1 score: 0.723
- GB cohens kappa score: 0.713
- -> test with 'KNN'
- KNN tn, fp: 593, 7
- KNN fn, tp: 12, 15
- KNN f1 score: 0.612
- KNN cohens kappa score: 0.597
- ====== Step 5/5 =======
- -> Shuffling data
- -> Spliting data to slices
- ------ Step 5/5: Slice 1/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 588, 15
- LR fn, tp: 19, 12
- LR f1 score: 0.414
- LR cohens kappa score: 0.386
- LR average precision score: 0.484
- -> test with 'GB'
- GB tn, fp: 599, 4
- GB fn, tp: 8, 23
- GB f1 score: 0.793
- GB cohens kappa score: 0.783
- -> test with 'KNN'
- KNN tn, fp: 599, 4
- KNN fn, tp: 17, 14
- KNN f1 score: 0.571
- KNN cohens kappa score: 0.555
- ------ Step 5/5: Slice 2/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 600, 3
- LR fn, tp: 20, 11
- LR f1 score: 0.489
- LR cohens kappa score: 0.473
- LR average precision score: 0.543
- -> test with 'GB'
- GB tn, fp: 602, 1
- GB fn, tp: 8, 23
- GB f1 score: 0.836
- GB cohens kappa score: 0.829
- -> test with 'KNN'
- KNN tn, fp: 599, 4
- KNN fn, tp: 18, 13
- KNN f1 score: 0.542
- KNN cohens kappa score: 0.525
- ------ Step 5/5: Slice 3/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 594, 9
- LR fn, tp: 18, 13
- LR f1 score: 0.491
- LR cohens kappa score: 0.469
- LR average precision score: 0.546
- -> test with 'GB'
- GB tn, fp: 598, 5
- GB fn, tp: 14, 17
- GB f1 score: 0.642
- GB cohens kappa score: 0.626
- -> test with 'KNN'
- KNN tn, fp: 598, 5
- KNN fn, tp: 18, 13
- KNN f1 score: 0.531
- KNN cohens kappa score: 0.513
- ------ Step 5/5: Slice 4/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2289 synthetic samples
- -> test with 'LR'
- LR tn, fp: 600, 3
- LR fn, tp: 22, 9
- LR f1 score: 0.419
- LR cohens kappa score: 0.402
- LR average precision score: 0.497
- -> test with 'GB'
- GB tn, fp: 599, 4
- GB fn, tp: 5, 26
- GB f1 score: 0.852
- GB cohens kappa score: 0.845
- -> test with 'KNN'
- KNN tn, fp: 601, 2
- KNN fn, tp: 14, 17
- KNN f1 score: 0.680
- KNN cohens kappa score: 0.668
- ------ Step 5/5: Slice 5/5 -------
- -> Reset the GAN
- -> Train generator for synthetic samples
- Epoch 1/3
- Epoch 2/3
- Epoch 3/3
- -> create 2288 synthetic samples
- -> test with 'LR'
- LR tn, fp: 592, 8
- LR fn, tp: 19, 8
- LR f1 score: 0.372
- LR cohens kappa score: 0.351
- LR average precision score: 0.382
- -> test with 'GB'
- GB tn, fp: 594, 6
- GB fn, tp: 10, 17
- GB f1 score: 0.680
- GB cohens kappa score: 0.667
- -> test with 'KNN'
- KNN tn, fp: 597, 3
- KNN fn, tp: 17, 10
- KNN f1 score: 0.500
- KNN cohens kappa score: 0.486
- ### Exercise is done.
- -----[ LR ]-----
- maximum:
- LR tn, fp: 600, 15
- LR fn, tp: 26, 15
- LR f1 score: 0.556
- LR cohens kappa score: 0.536
- LR average precision score: 0.659
- average:
- LR tn, fp: 594.68, 7.72
- LR fn, tp: 20.2, 10.0
- LR f1 score: 0.414
- LR cohens kappa score: 0.393
- LR average precision score: 0.486
- minimum:
- LR tn, fp: 588, 3
- LR fn, tp: 16, 5
- LR f1 score: 0.227
- LR cohens kappa score: 0.204
- LR average precision score: 0.351
- -----[ GB ]-----
- maximum:
- GB tn, fp: 603, 9
- GB fn, tp: 14, 26
- GB f1 score: 0.867
- GB cohens kappa score: 0.860
- average:
- GB tn, fp: 598.24, 4.16
- GB fn, tp: 8.04, 22.16
- GB f1 score: 0.783
- GB cohens kappa score: 0.773
- minimum:
- GB tn, fp: 594, 0
- GB fn, tp: 5, 17
- GB f1 score: 0.642
- GB cohens kappa score: 0.626
- -----[ KNN ]-----
- maximum:
- KNN tn, fp: 602, 7
- KNN fn, tp: 22, 17
- KNN f1 score: 0.680
- KNN cohens kappa score: 0.668
- average:
- KNN tn, fp: 598.4, 4.0
- KNN fn, tp: 16.36, 13.84
- KNN f1 score: 0.574
- KNN cohens kappa score: 0.559
- minimum:
- KNN tn, fp: 593, 1
- KNN fn, tp: 12, 9
- KNN f1 score: 0.400
- KNN cohens kappa score: 0.381
|