-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBaseline_SVM_v3.py
More file actions
1038 lines (756 loc) · 396 KB
/
Baseline_SVM_v3.py
File metadata and controls
1038 lines (756 loc) · 396 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import sys
sys.path.append('../Utils/')
import random
import time
import pickle
import numpy as np
import pandas as pd
from sklearn import *
from sklearn.svm import *
from sklearn.model_selection import *
from sklearn.metrics import *
#from keras.utils import np_utils
#import seaborn as sns
from statistics import mean
import concurrent.futures
from sklearn.model_selection import cross_val_score
from concurrent.futures import ProcessPoolExecutor, as_completed
import datetime
from functools import partial
import argparse
from concurrent.futures import ThreadPoolExecutor
from multiprocessing import Process, Queue
import os
# manually tune svm model hyperparameters using skopt on the ionosphere dataset
from pathlib import Path
from skopt.space import Integer
from skopt.space import Real
from skopt.space import Categorical
from skopt.utils import use_named_args
from skopt import gp_minimize
from joblib import Parallel, delayed
import matplotlib.pyplot as plt
from skopt import BayesSearchCV
# import required module
from tqdm import tqdm
OPTIMIZED_RESULTS_FOLDER = "optimized_results"
# nohup python3 Baseline_SVM_v3.py --dataset_name taffc_final_base > nohup_output_taffc_final_base.out
# python3 -m demucs --two-stems=drums /home/shared/merge/datasets/audio/final_audio/Q1/MT0036368550.mp3 -d cuda -o /home/shared/merge/datasets/audio/final_audio/demucs/Q1
curr_path = Path('.').absolute().parent.__str__()
# Path to the directory with all necessary data
ptd = 'New_MERGE_Complete_Data/'
# Location of the .wav files converted from .mp3 as the intermediate step to generate Mel-spectrograms
#location = r'C:\Users\Red\Desktop\hugo'
# Name of the file with the song ids and respective quadrants
#csv_name = r'merged_squared_balanced_audio_not_sorted_annotations.csv'
#csv_name = r"panda_dataset_taffc_annotations.csv"
# Name of the file containing all samples. The program expects a pickle file
# with the structure: (num_samples, (song_id, waveform, target))
#samples_file = r'all_features.csv'
#samples_file = r"merged_squared_full_bimodal_not_sorted.csv"
###############
## Utils ######
###############
def print_with_time(message, flush = False):
current_time = datetime.datetime.now().strftime("%H:%M:%S")
print(f"[{current_time}] {message}", flush = flush)
def write_to_file_with_time(message, file):
current_time = datetime.datetime.now().strftime("%H:%M:%S")
file.write(f"[{current_time}] {message}")
def get_information(dataset_name):
##########################
## Baseline ##
##########################
if dataset_name == "bimodal_full_baseline":
csv_normal = "merged_squared_full_bimodal_not_sorted.csv"
csv_annots = "merged_squared_full_bimodal_not_sorted_annotations.csv"
top_features = [1152,1755,1747,525,1151,1166,1750,945,1089,927,1077,507,2091,2092,2105,1441,2106,1475,2055,1497,909,1071,10,133,1059,1065,946,361,923,1090,529,1765,1455,13,917,1603,1489,772,407,1053,1753,1768,1537,136,929,246,911,21,1574,526,2075,2085,1481,1748,1550,2068,1604,1154,2086,958,1952,2061,406,1096,1078,2069,1772,1940,109,252,2597,2074,1539,905,1101,2087,1757,1760,404,1594,1652,2056,1761,778,776,1084,1102,1764,247,770,1839,899,357,1726,2066,497,1194,1469,1792,2090,935,2598,1609,2083,891,235,1982,2089,503,1072,2081,431,9,2299,315,121,1350,1637,2289,1047,2073,236,1649,1863,1472,2302,897,784,115,1909,879,1108,2405,438,146,2072,1650,1791,893,753,2277,251,764,1798,1485,8,2107,1874,2603,2057,469,84,2084,1643,885,2599,1607,669,2076,2136,1035,2297,509,2142,2064,2298,1447,521,1419,1590,1153,782,1406,1928,1800,1845,1506,1581,1407,1483,1806,681,2071,1756,277,1448,1460,1107,513,2082,2268,1155,1644,881,1802,11,66,1066,1568,1055,1988,71,1790,468,1378,790,2065,941,1149,964,1842,928,887,2094,152,466,1638,1857,448,2631,362,2404,1189,465,2067,131,1353,1427,1161,766,1640,2070,1023,281,2077,960,2627,1897,2625,1582,1041,2334,1461,1965,358,1516,1635,363,1862,1787,1474,1364,1984,963,1775,1552,3,1767,1518,1634,767,1393,80,1639,2088,1150,447,1470,2274,1647,1887,1231,2010,1433,1641,464,1821,1955,956,692,321,2028,1234,1953,873,1487,413,950,1596,2364,1653,922,1789,1900,1451,2600,1777,1486,916,1060,86,1114,2303,166,975,1468,437,434,1029,1538,1605,2445,1349,954,1770,1080,1859,1507,1912,1915,1428,418,1865,2058,2399,1422,2079,64,1444,1195,2628,90,2672,417,1646,2194,2009,2335,1377,794,79,2292,1803,2109,1754,1971,1941,527,435,1805,1435,2108,137,788,562,2051,1502,796,2319,240,2317,2188,1168,1878,1025,1345,2271,2306,58,1729,1633,1774,445,2311,101,1412,1264,415,2078,520,2452,2683,763,1334,1885,2626,2363,1735,1356,1898,910,2451,757,1371,2670,2269,2411,556,1645,1876,1903,2677,446,1210,1017,1357,2049,1125,976,1508,1981,1434,2310,1530,1834,1651,1980,2307,1943,2099,1733,1476,1420,1967,1906,1449,685,2507,2632,1664,414,1079,532,1542,416,1113,1973,2337,1216,130,2172,688,793,1529,754,981,2634,443,408,1739,1569,1352,2648,1910,1543,1822,2454,2633,2647,1778,1068,1727,1869,85,1904,1549,1440,1482,1801,1191,1970,892,2166,775,2513,1479,2407,409,1126,1933,761,2483,1793,1532,1595,2145,1807,962,1985,2620,1804,977,1119,70,2348,1690,410,2027,480,2678,412,1824,944,2406,1098,538,2551,2329,2376,1929,697,474,2606,522,223,1092,1120,1864,1825,875,938,1056,1833,2524,140,1061,2278,1931,904,1648,2063,7,1073,1416,2313,2130,439,2512,1546,1667,1587,2684,2442,2617,2275,285,2629,2624,440,2316,1049,1630,254,308,2050,476,2132,2615,1467,479,352,2401,1795,1235,505,59,1986,1836,241,34,1211,2623,1763,444,2137,1037,2295,524,2111,898,1868,894,477,411,94,314,1624,2610,1170,1964,493,918,2485,874,2080,869,280,2146,1026,2580,1974,1786,1514,867,1217,1372,2552,516,442,802,1642,755,1054,53,1031,2570,2192,1987,968,1327,161,1019,2614,855,1544,1730,2176,1629,1373,1776,2102,2294,2021,1358,2331,673,920,2037,2616,333,817,2618,682,2579,969,2286,2143,2179,2611,812,1856,1322,1085,882,1734,2473,1105,1086,1048,1991,2006,244,1454,1111,1886,671,2515,209,25,2475,91,806,2440,2506,932,2320,2457,2381,327,104,162,2296,1178,2015,2185,475,229,1365,1465,1989,2366,547,1074,29,760,1769,1011,1632,2127,851,1024,769,1075,953,1608,2630,2375,2410,253,818,773,340,35,2193,959,2550,1968,506,2612,217,2622,1099,779,2643,1619,1621,335,970,2189,478,829,1457,811,1036,2161,168,2644,1104,1832,683,2427,174,211,309,287,2038,2619,1888,256,1490,27,832,1205,1545,1329,530,471,1879,2448,2430,1013,880,39,2428,2003,16,2641,1997,2175,1175,758,900,329,1588,800,850,1014,780,1872,470,2098,199,689,243,1654,1671,948,1920,2676,2367,405,886,2608,1589,2043,2177,1043,876,2384,40,1553,1093,838,2378,1843,2594,2416,605,2096,2008,1771,2566,26,550,303,856,204,808,544,173,1192,304,906,1442,24,1109,814,845,364,980,2592,2149,888,1873,1922,1762,2093,2682,2591,242,2144,870,1548,2613,1784,1736,1837,2429,2502,2395,2342,2191,2180,840,2104,1218,860,647,2674,2110,2344,134,1018,2196,2147,854,2446,328,914,2655,288,63,1742,317,641,659,2195,820,2662,2533,2548,2663,826,2340,1012,472,2593,2232,853,785,868,1732,1700,844,112,2022,983,1511,686,1998,1826,2004,2572,294,1881,839,2138,2530,2153,221,433,2343,155,1741,1087,2569,226,2333,2120,18,2052,2121,1779,982,2518,1877,310,2640,2187,1956,833,2345,250,2183,2171,205,2113,2414,2163,1976,345,912,1042,1611,2129,274,2413,342,1882,441,896,2681,1177,665,861,1020,1005,95,2387,1979,28,2276,147,2607,2290,1846,599,541,341,1045,295,2300,128,1960,821,2519,1303,2332,2272,2115,2649,1977,2568,566,1227,302,202,297,347,1027,2539,301,272,2471,1421,2186,1062,2639,653,1880,884,1030,1752,1117,2347,611,1050,926,2522,1618,902,2328,2346,380,1081,286,1744,1841,1975,924,2128,2141,2100,695,842,307,151,2097,2675,289,2415,216,623,836,82,2283,263,1317,2190,1531,635,2664,1963,848,300,2305,1318,339,617,596,2370,1844,2312,517,797,2135,1463,2398,2523,57,2412,1894,324,2685,791,2284,847,1785,1129,473,1555,2531,1559,2318,311,827,2509,1883,23,2495,1946,1032,719,1930,518,351,971,320,2397,2016,1069,862,536,1321,292,864,1992,2000,1203,629,355,1456,2101,1731,1934,1273,374,185,1969,1884,595,1039,2351,1917,1996,2526,704,701,2532,2536,553,2642,2182,2173,2420,2160,2281,1870,1745,846,1737,306,2528,2527,2124,859,385,1942,296,1038,1838,1828,305,1853,2563,228,908,974,1855,593,2181,890,4,1296,2557,1890,1860,2669,76,1617,232,2279,1990,1994,319,2666,2679,572,1871,2309,2358,2665,2046,1517,2505,337,2280,834,2585,2321,2030,334,2538,2119,74,1196,2379,2390,2668,2322,141,878,1583,2425,1616,2426,841,1274,290,1033,2546,2439,2462,2002,2287,293,1781,1057,1796,1954,1379,54,336,1226,22,299,1926,1923,1260,1628,278,271,1063,258,1123,259,1809,1115,1458,2545,2650,2604,828,2486,1554,2361,2469,312,857,17,2421,2474,1816,2667,809,2432,2169,1957,1535,164,1939,2438,2349,2424,2529,1044,1232,275,1224,2273,2125,1443,2024,803,1462,67,214,2609,198,291,1221,815,2494,323,1051,284,2459,2031,60,2158,2389,2516,1015,2385,2464,2394,1847,2510,2042,672,1797,2369,2621,2423,1938,587,1891,1627,1021,1818,2368,1623,2418,2184,1631,2408,1831,559,2170,2154,1499,298,2661,1464,2386,467,2637,1259,2501,208,2525,1612,88,1783,1819,261,2391,678,1799,2517,2206,348,2103,359,349,330,1740,381,2383,1927,72,2372,225,189,331,2565,265,1246,2497,666,2155,1622,343,1937,1866,2646,1162,583,206,269,2359,2117,2455,1198,2118,1849,1212,1006,2660,1895,576,1949,1861,2651,1780,2054,2460,2449,338,1944,2053,584,2151,2419,1615,1932,594,1746,539,2282,2461,2270,1896,2588,1848,1919,2500,930,2547,111,1498,2487,2036,2352,191,2044,1814,15,1867,2400,2466,2039,2041,2468,2377,2123,360,2584,73,2059,264,2060,267,2564,1916,273,2045,1902,1935,2314,2026,325,2122,382,2521,2114,1914,558,1889,2540,171,2558,2534,2542,1620,266,2388,1901,2431,1854,1682,2636,1908,1830,222,1907,188,2673,1127,986,2032,1758,569,2458,972,270,1613,2304,548,2470,2511,1945,2341,2450,684,2576,354,2605,2338,2126,2537,318,2671,432,2602,154,268,2167,1686,1921,2140,2503,2047,2062,2396,2472,2402,1812,1220,2535,1685,512,2336,316,1681,135,2589,2134,545,2436,2164,2380,618,1561,792,1436,589,1687,2586,1817,119,2456,1297,346,2288,2393,2327,563,1851,2437,2653,2159,1827,279,110,552,350,2463,2433,2544,1892,1918,2575,588,2365,2482,1190,2339,2447,2573,61,2040,2293,2139,2360,1688,6,2353,1999,1913,2150,159,1680,822,2465,1625,1983,2435,551,1911,872,326,1738,75,2581,19,2508,1788,1331,1541,2324,2326,2116,612,1343,2645,2434,165,2409,2514,1684,564,1893,207,2556,2657,2574,716,2422,2374,624,1689,260,2162,220,965,2493,2350,2555,565,2178,1679,2168,2492,2578,2453,195,2488,56,810,2498,149,2583,332,2481,68,1121,2157,2541,1560,581,219,2131,36,2554,105,1924,2582,2403,1504,2152,1852,2156,2018,1008,852,786,2520,2308,2242,322,83,2680,1751,93,728,2362,1811,1993,1614,1199,143,2315,2656,1813,1678,2444,113,679,2165,129,2499,1340,858,2325,2174,2686,2023,2357,1850,2590,984,365,1683,1808,233,2371,1728,201,690,798,2443,1951,1875,1858,1676,2577,2596,2480,2323,1660,2048,2567,2561,123,1950,2356,1533,1661,2553,2601,2005,2213,2212,2571,2211,2204,2203,2210,2496,2224,2202,2231,2201,2223,2200,2467,2218,2230,2222,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,768,2207,966,816,2261,2262,2263,2264,2265,2266,2267,117,2209,2208,196,1659,1708,1713,55,1961,77,89,92,116,122,230,231,248,276,282,356,1773,2392,249,1691,1606,2239,2240,2595,1709,1710,1714,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1722,1723,1724,1725,2249,1721,1820,2133,2246,2248,2490,1247,2238,2247,1662,1677,2254,1128,2233,2205,255,2237,2234,2236,2235,2253,69,49,1701,2484,2543,2252,804,2478,2251,1835,2250,1519,2255,2256,2257,2258,2259,2260,2491,774,1223,1719,2504,1658,1947,1704,2244,2245,2635,2654,2549,1720,528,2559,2638,2243,1276,570,1702,1703,2241,762,1699,37,1610,1766,2587,1336,2095,2373,2441,1665,740,2035,2659,756,1925,1122,344,1666,582,2658,1225,1705,213,1657,1636,20,1707,367,866,1491,1197,2489,1959,1958,2355,1905,1706,1656,2354,2034,2285,2560,2382,752,153,1663,1670,2013,1655,2033,2330,2476,546,1840,1669,257,1668,2014,62,1823,1995,44,47,2479,1899,1972,1675,2652,2019,2011,48,38,2001,2025,1009,2012,2417,2562,50,30,31,1962,2477,1794,1815,2007,1626,41,1782,43,1978,2020,32,2017,1674,1810,46,1743,1672,1673,52,1829,45,1966]
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_baseline":
csv_normal = "merged_squared_balanced_bimodal_not_sorted.csv"
csv_annots = "merged_squared_balanced_bimodal_not_sorted_annotations.csv"
top_features = [1152,1755,1747,525,1166,1151,1750,507,2091,2105,2092,2106,361,927,945,1089,1077,133,2055,1441,10,21,1475,1497,1071,1603,246,909,1481,923,529,1537,13,1753,407,929,1455,772,1065,946,136,252,526,1489,1574,1765,1154,1761,1726,1059,1604,1550,1952,1764,917,1053,1090,404,1748,1792,2061,2597,1768,247,2085,1757,109,1760,911,1539,1940,2086,406,2299,497,2056,1863,1772,1350,1101,1609,778,2289,9,770,1194,2068,958,2302,2075,2405,2598,905,2069,1096,935,2087,121,235,1078,84,1594,1652,2298,753,503,2074,357,438,1469,2603,115,2090,1472,2404,776,431,1102,1839,146,2089,899,251,1909,1084,2268,2083,891,879,469,2599,2277,1447,1637,1607,1460,1419,2066,315,1153,1448,2297,468,509,66,764,236,1483,2136,1506,897,1581,2081,1862,513,1155,1485,71,1407,2107,784,1072,1857,669,1108,8,1982,1897,2057,1047,363,1821,2627,2073,1161,448,782,1568,2142,1378,521,941,893,1756,681,1189,80,2334,1406,885,2303,2064,1035,1590,2072,881,152,1791,1806,2625,466,131,1874,2084,277,1107,465,1915,1474,11,86,1965,790,2076,1650,1798,1364,254,1023,1845,447,2094,1461,2672,766,2631,1787,1643,281,1649,2311,58,2082,1775,1777,2364,1582,964,362,1507,1865,2306,1971,1442,887,1859,960,1900,767,1800,1790,1596,358,1393,2317,321,464,2071,2445,527,1955,1802,79,1729,64,1055,1195,1928,1231,963,2399,1770,928,2271,2070,2600,1470,692,1334,2065,2108,1953,1041,1149,1516,1634,413,1433,434,1789,1349,1868,2406,1605,950,2363,975,2319,3,2335,1168,794,1353,1639,1444,2483,2077,1635,1468,1988,1114,1427,437,1449,2109,1502,1864,1066,2307,240,873,1150,1638,1487,2310,1234,2678,796,1970,1552,2194,1518,1644,2188,1887,435,2628,1842,445,2269,2411,101,1377,2274,1774,757,137,415,1967,2451,2010,1898,417,2099,1803,1624,2145,1754,2088,1941,938,2166,956,954,1805,2292,1903,2051,446,418,2684,1912,1357,2067,1435,2275,2683,1595,1371,2028,2670,1486,1933,90,1422,2407,2172,1727,1869,1822,976,2146,2130,1428,1356,1646,166,2677,2337,1906,1080,1793,2442,439,2452,352,520,1973,788,2634,130,2078,2632,1420,1029,2132,2648,2485,1451,1508,977,443,2633,1416,1542,2647,1833,1824,1984,1476,2313,688,414,1543,409,1098,562,2626,922,1538,1482,70,1113,916,1640,2111,2513,1931,1943,2009,1125,1735,1216,685,1834,1904,1964,2316,2620,1025,1210,416,1546,1795,1767,981,1530,1479,697,754,410,34,1126,1119,1647,2473,2507,2375,1630,1191,412,532,1651,440,516,2058,1092,763,1068,2329,85,1060,968,2401,1358,408,2457,1352,1372,2512,1490,1778,2295,1653,556,2454,1885,1345,1434,1878,2348,2079,285,2278,761,1856,1322,1412,1049,894,1645,522,1264,1633,241,1549,1910,2376,962,793,2440,2049,59,2615,1061,18,1664,1120,505,444,1017,1641,855,2606,1733,2524,1073,2617,442,140,244,1981,892,2475,538,480,944,898,775,411,1836,1929,2127,2149,802,812,1544,2580,2320,1739,2080,875,1327,1211,7,223,1667,2579,932,806,2294,910,1079,1876,162,1235,1529,1440,477,479,1980,2176,1569,758,1026,2629,920,29,476,2410,755,869,474,1085,506,1690,1056,1786,2366,1807,2619,2644,2515,1178,1086,1024,882,53,209,314,35,1801,524,1804,2610,280,1532,689,1825,161,1373,1365,817,1217,1514,39,1763,851,91,829,253,1170,867,2037,1329,104,333,308,874,2551,243,811,671,2622,2098,1074,760,2027,16,969,1175,1629,1922,2147,673,1465,2381,2137,2572,970,2623,1104,682,229,2296,2614,530,327,1985,780,2050,1548,1587,2179,1467,880,1920,918,818,211,2506,1608,2331,1619,405,217,1611,1011,1762,2552,2641,904,287,1037,2286,1019,1776,1014,1205,1545,2608,2143,2624,953,2102,1031,2429,1648,1991,2006,40,1621,2395,256,845,683,94,2611,1588,2618,2448,493,773,1454,2616,27,173,1642,25,2161,948,1730,2518,2378,1192,2471,959,2674,199,2120,856,1553,2121,2063,1589,1105,2113,1741,1986,364,2038,2427,1013,1036,686,2613,779,2171,471,2655,914,1886,2570,2662,1888,475,2663,2096,2175,1075,1771,168,800,547,769,983,309,441,832,263,1048,1870,340,304,2384,2185,472,1987,965,1832,1054,853,870,2192,478,1511,544,850,134,174,24,1457,2305,1769,838,2193,2367,860,2097,550,1177,868,2093,900,2639,896,695,2177,2676,2343,2416,1974,1736,2232,808,2428,605,1779,1671,854,335,63,1109,641,112,1099,1956,2430,2550,2153,242,1734,2283,1043,844,2643,2342,2290,876,2612,2594,1879,1218,2593,840,204,95,2607,1111,2128,2043,647,2015,1018,2345,2502,1012,2630,2110,1654,147,2129,155,2642,2189,2163,2685,814,329,1062,2591,2640,205,1559,2300,2312,2021,2008,1976,2333,1045,470,902,345,2446,884,982,2272,826,2003,2566,2519,839,2669,822,888,1872,886,328,1700,785,1744,1318,2413,303,861,1989,317,82,820,1960,2332,2397,599,1732,2533,2548,2530,342,1618,23,1227,1005,347,2115,1555,2141,1456,1421,1742,848,1853,2414,2495,2052,274,1992,2000,536,1042,250,351,1917,28,380,2412,2592,665,2104,836,2679,221,659,286,151,1968,2340,324,1997,2369,2276,2144,355,2682,2135,2344,864,297,2328,833,1752,518,272,1321,2486,2664,433,1632,74,185,704,1894,339,1087,128,2351,1843,2180,1039,2398,288,906,980,1093,2569,202,2196,828,635,924,842,1303,2004,1027,17,1317,1784,1129,1979,2358,1050,2361,2462,294,846,701,719,2124,2183,2195,2101,1963,1877,1117,310,307,834,1081,374,541,841,1260,2346,2138,611,1203,26,284,1826,912,2370,216,1855,302,2568,1977,1196,653,1837,1020,1871,2347,1882,1881,22,226,2387,623,1946,2390,289,1273,926,2539,259,2187,908,971,517,1930,1033,1818,2100,301,553,2439,847,2532,2536,2522,1274,295,1942,862,198,1880,292,2318,1463,341,2649,2666,2173,271,2002,1517,2420,473,2415,2030,1226,2190,311,2424,2022,2509,2321,629,275,2604,2526,1057,2464,337,2284,1957,1923,1030,890,2160,1379,2322,1816,2527,859,320,1998,2459,1583,2425,258,228,1873,791,300,1731,2525,1531,312,1841,1015,2505,305,2546,2528,827,1737,2538,2119,1631,278,1990,1994,974,2516,617,76,2650,2432,2349,2383,1021,2469,1612,1996,1939,857,1954,1535,1938,2379,4,2031,1246,1884,1809,2273,821,2646,2667,1934,57,1846,2041,2309,1051,1828,296,595,1554,1975,1799,1069,261,1038,2386,878,2125,1296,2191,2675,1919,2494,336,2154,596,164,2182,593,1259,1232,797,360,572,566,354,2474,1224,2158,1123,2279,1617,2421,2681,2668,1458,306,1819,1032,2281,2042,467,1860,1927,290,2545,2661,2660,2181,293,1890,359,2563,2388,2523,385,232,1063,792,2169,334,1221,189,803,319,2461,2394,2385,1797,1616,559,2460,2426,2665,1443,299,1796,2531,1115,2046,1627,348,2016,1999,2497,2368,2621,666,1926,1969,2557,2423,2636,2487,1848,2510,1935,2585,2438,2186,72,2517,1944,1883,1464,1781,2151,2651,2359,1615,1901,1462,1212,265,381,2501,1844,1162,15,269,2352,2436,2609,1044,208,141,1613,2470,2280,2036,1937,331,1561,1785,1902,2206,2521,2419,214,330,60,2287,191,1838,225,264,809,1620,2155,576,1628,2117,1745,2126,349,75,1891,1623,1916,206,298,1861,1847,2408,54,222,2039,111,2372,2673,2511,2270,1949,2167,2637,323,1127,2282,2170,266,558,930,267,67,1740,2534,2542,291,2508,584,325,1498,2338,343,1908,1780,2103,2047,2024,2118,1945,2449,2184,2400,2653,594,2054,2402,2040,2500,551,2140,2537,815,2122,73,2391,2565,88,1895,338,2564,1983,2498,2159,2389,270,2114,1854,1006,2547,2418,19,1220,2341,2431,2558,2060,2589,1817,2556,2535,2602,2374,2360,2377,432,2123,972,1914,2605,1907,2339,1622,2059,2541,2584,548,2314,2396,583,2380,2134,2164,154,2544,2327,171,539,2455,2304,2657,2540,273,684,2466,316,672,2671,2150,2472,119,569,1198,1896,2529,1831,2463,1297,587,1625,2468,1827,2458,588,2018,589,690,1190,2482,2481,810,2053,382,1889,1913,1758,2450,350,268,1830,2645,2044,1921,2336,565,1993,545,110,618,2433,346,2465,61,1911,2350,1746,2393,1331,563,2139,2503,1849,1851,1867,2045,1783,2353,1961,188,716,2365,1866,1814,2032,2324,512,2453,1436,2168,1343,872,2480,2553,2555,2026,2409,318,2371,2293,2288,1560,1932,2499,1121,1788,552,624,2116,135,260,2356,1504,612,2444,2308,2062,220,2488,2447,2456,2514,1751,1950,2165,2595,2554,367,1852,728,2588,2437,279,195,6,1541,2373,2178,2325,207,2156,1682,2574,1918,1892,2131,564,986,1499,2601,966,2362,852,2403,1959,1008,2315,2578,2443,2680,2581,1893,1850,1680,1681,2590,2573,56,2492,1951,1340,219,1614,678,159,1820,1199,2422,149,1958,2242,679,165,2520,2174,1679,2323,816,2493,93,143,326,36,113,2023,1678,1661,201,1685,365,2559,2392,1875,2576,1738,233,858,984,2549,322,2162,1660,2157,1686,2582,2567,123,344,1662,2152,2583,2357,105,2496,2213,2212,2211,2204,2203,2210,2224,2202,2231,2201,2223,2200,2218,1924,2230,2222,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,2561,1684,2207,1689,2250,2251,2252,2253,2254,2247,2248,2249,2246,2209,2208,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,117,249,2244,1708,1713,1719,2245,55,77,89,92,116,122,230,231,248,276,282,356,1773,1691,1709,1710,1714,740,2239,2240,1721,1610,2205,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1720,1722,1723,1724,1725,1128,2571,1704,2577,2575,2326,1659,2238,2241,332,2243,1701,1677,1702,2233,2586,2237,2234,2236,2235,2467,1703,49,2543,2656,1122,2490,1699,2484,2654,1223,1519,83,2478,2596,37,1811,196,2434,1687,1688,786,768,1925,2441,2355,2504,1276,1683,2095,2686,1533,1707,774,2435,129,798,1705,1766,1706,2133,2491,1808,2635,2658,581,1658,20,1947,1336,1812,2638,756,1225,2013,1491,1197,752,2005,2019,1665,1247,1668,2354,1823,1666,255,804,68,2285,1995,1669,570,2035,2560,2001,2048,2476,1657,1663,1676,2489,528,2330,1905,1670,762,2587,1813,2011,62,44,546,1656,153,2479,257,2017,2034,866,582,2382,1636,2659,1899,69,1858,1655,1728,2033,2652,38,1840,47,1835,2417,213,2020,48,2562,1743,1815,1962,1810,31,1675,2014,30,2012,41,1782,2025,1978,1626,2007,1009,43,2477,1972,50,1672,1674,1794,32,1673,1829,52,46,1966,45]
bad_iteration_list = []
elif dataset_name == "audio_full_baseline":
csv_normal = "merged_squared_final_not_sorted.csv"
csv_annots = "merged_squared_final_not_sorted_annotations.csv"
top_features = [1747,1152,1755,525,2055,1151,1166,507,1750,2091,2092,2105,2106,945,927,361,10,2056,1441,1497,529,1089,13,21,1765,909,1768,1071,1475,1077,407,1550,1065,133,404,772,1537,1489,2085,946,1757,2057,1760,1753,406,526,1059,2068,2061,1053,1154,136,109,1455,2086,1574,121,1090,917,753,923,2066,246,776,2074,1761,911,2083,770,2075,1748,1839,1764,357,778,1194,252,2069,9,891,1603,497,2087,958,2597,2107,1469,1539,1594,2090,1078,2299,1485,897,1982,784,1652,469,1604,1096,1419,1427,1047,2073,466,893,2277,438,247,2302,1447,465,1649,1609,1084,468,1406,1874,2599,236,1101,1155,2289,1102,2084,2072,2136,1637,1350,2142,2089,2081,1153,235,2603,11,905,8,1798,2071,521,115,1842,2598,764,1845,1481,1483,879,1590,1650,431,464,2298,1472,1407,899,1607,434,1643,1644,513,782,885,1353,362,3,1581,2064,1772,2065,1887,84,1735,1234,315,146,766,1364,66,681,1072,790,887,2067,928,358,1928,1035,1791,1149,1756,935,251,1486,503,2109,1775,1638,1800,1433,1582,2297,1435,1640,1434,1460,1487,2094,1552,1952,2076,1150,1474,881,2627,277,1568,1634,1444,1161,1635,1802,1988,435,1108,1733,152,1378,692,1806,1451,1506,2077,1516,1334,2082,166,1448,2625,131,1470,2070,2274,1984,1647,2631,1595,1231,754,1066,437,1596,1023,1653,1412,1770,1264,1641,2028,2405,281,767,2058,1915,71,1461,1041,2051,922,64,1777,1981,1468,2303,1980,1055,79,408,788,1885,90,58,1605,1878,2049,1941,2404,321,1754,1440,2010,975,80,86,1538,1803,130,669,413,2632,873,757,1801,1170,916,793,2268,1518,409,2683,796,964,527,685,1420,1542,2306,137,1357,1371,240,1778,2130,1940,1210,418,1790,2677,794,2009,2600,1476,446,1569,697,415,1428,1774,1767,763,1953,2310,981,1125,2399,1349,1356,910,2088,1865,1126,1530,1929,941,1416,524,1029,1345,1107,417,2292,363,1639,2079,976,1529,532,1025,2307,2317,1805,775,2678,1060,855,2319,2194,414,2626,2275,1189,538,516,1909,562,520,956,2335,1482,950,1646,1955,2684,7,904,509,892,416,867,1664,1645,2137,1532,1327,1054,1931,1393,1454,1080,1017,101,2132,1587,1377,1690,1235,2628,963,443,2145,869,505,2475,1804,977,2037,1787,2364,2473,688,1648,433,85,1876,94,59,1933,2311,2363,1739,1079,898,411,1422,556,412,1329,2111,671,440,241,530,944,1912,1358,1863,2634,2606,1322,1216,70,1549,2188,2269,2411,1352,2648,2647,1467,2633,2063,1786,161,1365,2579,447,1985,2427,2295,1217,1763,352,2428,761,829,1056,140,2027,2278,1211,410,2021,1825,2483,1514,2050,2457,2337,162,2108,2551,1479,2078,875,2127,2143,1372,1553,1178,856,2672,2524,802,1092,1667,1965,817,439,2038,2348,444,53,1205,769,1734,2175,1168,2623,1886,1762,1807,1727,1869,250,1026,1822,1903,2552,1114,874,760,2098,1792,1191,682,445,1011,91,1619,2172,1651,2430,2271,2591,168,242,35,493,2381,2445,2015,1897,2629,1085,2670,480,1872,243,1989,2166,2624,2146,448,2320,800,920,2592,2294,1630,1987,953,811,880,1049,1986,522,1642,1789,870,851,2334,104,442,1068,1910,1545,2296,1061,1105,938,474,2179,689,1589,285,1073,479,1588,263,1546,2286,683,1784,477,779,2416,2580,547,1014,1633,818,471,959,1793,405,1373,850,2196,174,2610,280,2316,2313,2620,1732,1904,962,550,755,2485,868,1769,2614,2192,1621,773,886,1465,1726,2329,308,2676,860,39,1048,40,1834,209,1043,1013,1457,340,2120,2121,2113,1075,2594,1632,2195,223,932,1037,1880,506,2003,1086,806,812,1974,1195,2161,1098,1111,1736,1019,605,1873,1104,173,253,470,1654,2375,2570,2185,1888,2096,1624,1119,351,327,2608,1868,2410,2442,1543,673,1730,244,2507,1490,27,544,1968,2611,876,832,1449,1671,1967,329,333,1943,2513,2452,541,1120,2630,2193,476,134,2043,2176,1843,1608,838,2102,2153,28,2099,226,472,686,1879,1031,1113,758,2128,2407,969,24,2406,1611,2471,2682,2366,2617,914,441,2618,983,2384,1821,2189,1844,2401,2097,2022,2440,2149,888,2612,1321,854,2616,1920,814,1877,2187,204,112,599,1012,2110,968,1074,1922,2104,1629,2141,475,1024,1036,1997,2008,2290,845,2506,695,2177,287,2004,2163,128,256,836,808,1175,2613,2615,1093,2135,63,2662,2655,2663,2276,1898,314,1742,25,1841,1109,185,2186,95,1507,1042,2171,2147,2129,1785,647,155,826,2387,1833,309,1062,844,2530,2080,2429,1559,1018,26,2328,2115,229,286,665,1964,1129,199,641,1511,2454,2512,820,478,2644,1744,595,1227,1826,1963,1741,2340,841,1442,2550,1881,2284,2232,259,611,840,2144,1776,2191,1832,982,2343,1099,2593,1977,317,902,701,34,1729,1508,970,342,18,719,1045,1020,926,1998,151,1824,1218,1087,57,1991,2006,2448,566,635,1960,842,1882,623,2622,617,1618,1837,1005,2681,861,864,2572,304,2643,2342,355,2183,2138,2486,2016,1517,1051,2674,2052,2675,2533,2548,2522,2333,659,74,839,274,2331,1926,202,1846,335,2566,1548,272,2619,1081,517,1531,1555,833,884,473,2518,82,1855,629,853,2376,847,1554,1853,1971,380,2346,1296,862,848,2030,2367,2398,211,2502,2668,785,1317,1050,221,2607,328,311,254,23,1117,653,1752,2180,797,385,2344,896,2100,258,960,1934,2395,2667,275,301,1771,1203,16,303,912,1894,2557,2451,1906,374,2523,2469,596,1796,1809,1027,2569,1883,1779,22,2160,2432,216,536,2413,1781,908,2318,2345,1616,518,297,1318,1303,217,2446,205,2526,1273,1917,2173,1862,310,265,1870,791,971,1969,294,1033,2046,1828,2190,2685,2641,2661,208,2412,2170,878,341,2420,2158,288,1057,2093,2182,337,339,292,2154,821,1192,2300,1623,2287,704,1816,2164,1622,2122,295,1544,1421,206,359,1030,678,2519,2495,1069,2305,2461,1930,1900,2279,29,381,827,2181,2462,1836,1631,2459,846,1463,1115,147,1617,929,307,228,2664,1797,553,2679,1731,2370,2312,2468,1177,60,1039,1975,2509,1890,593,347,2281,1970,572,1627,2351,2666,2568,882,300,2155,1944,1456,323,296,2332,1996,289,225,1819,2439,1857,2505,2280,319,1260,1783,1259,302,2595,2515,17,2347,1871,1612,2455,2349,293,890,284,2649,2283,2309,2665,1946,2472,2563,1196,1973,198,1458,2585,980,1628,2474,1956,1379,2378,2119,2103,2124,1990,1994,2002,298,2379,2464,1443,1860,299,809,1032,1927,334,1740,214,2650,1795,1932,2660,305,306,2527,834,2642,278,2531,2134,2640,2586,1123,2272,320,75,1992,2000,859,336,312,1745,1038,594,584,1895,1818,672,1615,360,1856,1737,290,2604,2140,828,1939,2466,2460,2157,2423,2044,2431,2321,2545,67,1937,2390,1226,1274,382,1462,1891,271,2206,1583,576,2418,2358,1044,565,559,154,2529,1830,207,1814,88,273,2487,2042,72,2539,2414,2169,2492,2581,2438,2546,324,1613,2456,54,1636,331,2433,2444,267,291,2491,2516,188,1859,2637,68,2369,2463,2437,326,1831,1221,269,1838,2314,2118,2588,2184,974,1935,2397,467,1919,1464,1854,1021,2576,1921,2435,316,1848,2386,2528,1916,2532,2536,2434,1908,2669,684,1945,2421,164,548,2400,1851,1788,4,2415,1907,2389,76,569,2510,348,2125,1866,1246,2341,2060,1896,803,2391,1976,2139,2639,1923,2443,2424,2621,2493,539,815,1006,222,1867,1758,2117,2480,2517,583,1224,15,1938,1063,270,2408,1780,2534,2542,2500,2636,330,2558,61,1812,135,345,232,2501,2167,2036,2436,2059,2282,1535,264,780,2385,1127,857,260,191,318,1343,2322,1813,325,83,332,2041,2024,2126,2497,2425,2361,2368,2054,2582,1884,268,2377,2359,1850,894,2350,2419,2026,1849,581,2538,261,1861,2609,716,972,2326,338,2288,2383,2488,2525,563,1560,2273,1212,1924,2159,2489,1901,2101,2596,1847,2602,279,2494,2646,2031,2578,2503,349,2467,19,1502,2360,2605,1015,354,266,2573,551,1799,2426,2293,2402,2039,1892,2521,558,111,2388,1925,1504,171,1913,219,2133,2481,1918,1738,2590,1746,2165,1957,73,2362,110,552,2394,2544,343,1232,1949,141,1827,1700,1121,589,2450,2657,1914,189,588,346,1902,666,2541,1766,2365,2498,1561,2470,2270,1162,1864,2372,2589,1614,918,1331,2560,1297,2535,2449,322,965,545,1498,1681,2114,2352,2638,2053,201,2482,2380,2537,1817,1336,2651,1893,564,872,2338,2601,2575,1811,2062,1682,2330,2339,1198,1751,165,2673,2151,350,2556,2583,822,2514,1979,1840,954,2504,2409,2584,432,792,2564,1680,587,1499,582,1436,2327,2508,2547,2353,195,1983,2680,2018,196,2465,2686,2540,213,2653,364,1961,2577,2671,119,2565,1008,618,2659,924,986,2374,2040,2336,810,679,1852,2511,367,2168,612,1728,220,1951,149,31,2520,143,2357,6,2047,1875,93,1942,2447,1541,2315,2555,44,2156,113,1190,2458,1889,2422,2587,2499,624,2324,2162,2396,2574,1220,2152,2393,2562,2543,1858,2116,570,1958,36,1835,1954,56,512,1999,365,2131,2035,2554,1199,900,2178,2048,1676,105,1950,774,233,2403,2453,1340,2304,2308,2356,2571,798,1625,2654,858,2553,1993,2005,852,2246,690,123,966,2247,2248,2249,728,906,69,1672,2210,2197,2198,2199,2200,2201,2202,2203,2204,2218,2213,2252,2253,2254,2231,2212,2230,117,2225,2226,2228,2229,2227,2217,2250,2251,1658,1703,2261,1683,2262,1655,2211,1656,1657,2263,1677,1701,1684,2214,2215,2216,984,1659,1678,2223,2222,2221,2220,2219,55,2265,2266,2267,2224,2264,77,89,92,116,122,230,231,248,276,282,356,1708,2233,2243,2234,2559,2235,2236,2237,2238,948,2239,2240,1685,1773,249,2242,1519,1679,816,1709,1714,1606,1713,1710,1686,1711,1712,1687,2255,1715,2645,1662,1661,2256,2207,2209,930,1959,528,2208,1533,1660,1716,1717,1718,1688,740,1722,1723,1724,1725,2245,1689,1720,2635,1702,2479,2244,2561,1276,2174,1698,1694,1695,1696,1697,1691,1721,2323,1699,1719,2257,1693,1707,2392,255,2441,2371,2241,1692,1706,1704,2033,2259,2260,2258,2496,49,2490,1947,1128,2478,762,1705,153,129,2095,2123,768,2285,37,1197,2150,344,1122,2656,2023,159,1620,2355,1491,1666,2484,1247,804,257,1610,1673,2549,756,1820,1663,2477,2658,2025,2325,2205,1911,2567,1668,2652,1626,30,2007,1794,1823,786,2417,2382,2476,2032,1808,752,2034,50,1972,32,1225,1009,38,1905,62,48,2354,1223,46,2014,1899,1675,2045,2013,1670,1665,1962,2001,546,2373,1995,2019,1669,1815,45,1966,2011,1743,2020,2012,20,41,1674,866,47,1978,2017,1782,1810,1829,52,43]
# new with percussion
bad_iteration_list = []
elif dataset_name == "audio_balanced_baseline":
csv_normal = "merged_squared_balanced_audio_not_sorted.csv"
csv_annots = "merged_squared_balanced_audio_not_sorted_annotations.csv"
top_features = [1152,525,1747,1755,1166,1151,2055,507,361,927,1750,2091,10,2105,2092,2106,945,1497,1441,13,1475,529,21,2056,1089,133,909,1065,1071,1077,1550,407,1765,1768,1537,1489,404,1760,772,1757,2057,946,1455,2085,136,1059,406,526,1753,2061,1574,1154,923,753,917,1053,2068,109,2086,246,1761,911,1090,1194,2074,1481,252,1764,776,121,2075,1748,770,1603,2083,2066,1539,778,357,1469,9,891,2597,2087,1839,897,497,2069,2107,247,1350,2299,2090,958,1594,1485,1604,469,1078,893,1609,1047,1406,1096,2289,2302,2277,1982,2136,466,236,2603,2599,784,438,899,1652,1419,2142,2073,235,1427,1084,2089,115,879,465,1101,521,1447,11,1874,1637,905,1153,2598,8,885,468,2084,2081,764,1102,84,2072,1607,1472,431,146,1798,1155,1650,1649,66,1581,1590,887,1842,434,2071,2298,1072,1483,1887,1407,513,1353,782,1928,1149,2064,1772,1845,1364,362,935,928,464,2297,1506,251,1952,681,1035,315,1775,1735,1582,1234,2627,1791,881,1756,3,1644,766,503,1487,1378,1643,358,277,790,152,1568,1634,2094,1486,2625,1460,1638,2067,1640,2631,2109,1448,2065,1470,2405,1108,71,1596,1800,1635,1231,1435,1552,1474,1433,166,1150,1023,281,80,131,1161,1066,435,1434,1041,2076,1777,1461,64,1516,1444,86,2082,1451,1915,692,1334,2303,437,1802,1264,1653,2404,767,2070,2051,1647,1806,1770,922,79,1988,1941,2058,2632,2077,2274,1055,1595,1733,1468,788,1885,1641,1412,58,1440,754,2268,2049,1538,1357,2399,321,1518,1984,669,916,1605,2306,527,1371,873,2010,1107,1940,964,418,1767,1530,1865,1542,1420,1803,1189,2683,2028,975,1774,1349,1428,1778,413,1929,1356,1953,1569,2319,90,794,2292,793,981,2677,2194,1345,1029,1393,2317,2310,2009,446,130,2600,1422,1878,685,409,1754,1639,910,950,796,1210,363,2626,1646,408,757,697,240,2275,1790,520,1025,137,763,2130,2307,417,1125,1805,1416,1909,2678,101,976,963,516,415,1955,2335,1126,1981,956,1060,509,1933,443,1801,2088,2363,1787,775,1645,1664,1377,85,2137,562,59,904,2037,524,898,2628,2684,1931,892,1476,414,1980,867,855,2079,1017,2132,2364,140,977,1529,1080,941,1170,532,70,869,1690,7,688,1454,2188,2606,2475,1327,2311,1532,2483,411,1079,505,2672,2269,2411,241,1054,1739,1912,1482,538,1235,433,1587,1863,1648,444,1216,671,447,440,2473,94,1352,448,1365,2143,416,2634,439,556,1553,1217,2648,1467,2647,2108,2633,1549,2337,2145,1372,412,1479,1965,442,2552,1358,2579,352,162,530,2295,1651,1804,2278,2348,2445,802,1114,2620,161,1876,1168,2111,2271,944,410,445,1322,2050,1667,1763,2551,2021,2038,2623,1734,1985,1903,761,1056,53,2629,1514,2063,2078,875,1822,474,938,1727,1869,2127,2670,1886,829,874,2172,480,2457,1205,2427,1178,1092,2334,2524,2166,1807,1987,522,1061,1329,1211,1026,250,1789,1897,2614,1792,1786,1619,870,1068,2624,682,1011,1546,1624,769,773,2428,683,920,1726,2320,242,800,479,856,755,168,1642,760,2175,2316,1910,1014,2286,2313,1043,1073,285,550,2027,1630,2591,1191,2485,779,817,886,1943,280,2146,243,547,2442,1588,405,932,850,1589,1793,2381,2430,605,477,1834,493,1457,2610,1825,1545,91,104,25,1019,35,1633,851,689,2179,1085,1037,1373,1967,1048,2098,263,2375,1621,1490,2580,1904,1465,1195,506,1872,2416,223,1013,812,2296,174,811,953,1986,2294,329,2015,2410,1989,1111,2329,1113,2592,2192,806,959,2120,673,2121,2113,1671,880,28,2507,1105,2161,818,1974,441,2401,2513,2630,40,1075,2440,1736,2407,868,1868,327,24,2676,1098,962,758,1049,1543,134,1086,2452,1629,1119,599,27,1449,253,1654,1120,2290,1769,476,1762,876,1104,26,2611,2185,209,2406,1632,2176,471,860,244,333,914,2617,2196,39,2570,1888,888,2043,1920,340,686,308,2366,470,256,2608,544,1784,2195,969,1608,832,204,983,2506,2618,1880,1821,2622,2193,2616,1074,2171,287,2471,2189,2615,2099,472,155,1742,2128,814,840,475,2096,611,647,1732,808,2512,2594,1042,1873,18,1877,1922,2384,968,173,2141,1175,1611,2613,838,1879,845,665,1843,2003,854,1321,1898,902,2135,2682,1012,2102,2276,351,1036,1776,541,185,1031,2612,226,1062,641,1218,2644,2110,1507,1227,1024,2662,309,317,229,1005,2663,2448,1833,2655,617,1744,820,2163,826,1093,2177,623,1618,1997,63,659,286,2022,112,1741,864,2153,1109,1045,861,199,1442,2429,844,2104,1511,314,1559,926,2080,1964,841,2643,2454,2129,1018,1837,695,862,2186,2619,1020,2593,2149,1882,1129,2144,635,2572,2284,151,2232,2530,1832,629,128,2097,2343,1824,517,2387,1729,1730,1963,982,82,2008,839,836,2328,2004,1555,653,1099,2187,254,970,304,16,1508,478,1841,797,566,1844,2191,1971,2376,2183,1771,1548,1517,34,335,274,2342,2138,2331,2398,2340,719,536,2052,2147,1881,1752,1960,272,473,2533,2548,842,1968,884,2566,1785,1977,896,2446,301,1855,328,2115,259,847,355,595,342,2550,1117,1998,57,785,2395,960,1317,303,1027,853,2413,2502,2318,2345,221,95,2518,1926,23,701,1051,380,1894,1087,912,2674,2451,2681,2607,1081,2685,1826,1273,2160,297,2668,791,385,2344,1906,2367,1554,2300,2346,2522,848,1828,1934,1853,833,217,1991,2006,1050,704,2486,310,2305,1779,2030,1303,1870,211,1192,2557,294,374,1296,295,1203,341,1846,292,311,1030,878,288,2523,2526,265,22,216,553,74,2333,2180,1177,1544,2287,821,2016,2046,2679,2641,205,258,2412,2675,1033,1318,2667,147,2519,275,908,846,202,596,1836,1862,1809,2182,2173,971,572,2312,2279,2665,2462,2569,339,1531,1917,2469,1900,296,381,1069,2158,827,2509,2100,929,518,1890,1781,2432,1260,2154,2420,1463,1115,289,1057,882,2650,1421,980,1956,2515,1259,1970,2190,890,17,1975,1583,2495,2649,780,307,208,1458,2283,2093,2585,1627,1816,1930,347,2280,1039,1944,1443,2378,2332,2640,2664,2439,300,1883,323,2181,2347,2124,302,284,359,2122,1996,2505,337,2461,2370,2472,29,2531,298,1456,305,2466,2281,290,1973,2459,1612,67,1226,1795,228,1990,1994,2666,2474,1857,1622,809,2164,1946,2170,2642,2155,1032,1631,2349,1819,319,2464,2103,1628,334,2351,1379,1908,2568,2044,1196,141,859,214,2134,1871,1818,293,2272,828,834,299,2563,1895,291,678,2321,1274,60,225,1831,1462,672,2586,206,164,198,2455,2140,2604,306,2661,1038,2397,559,1797,2042,1623,2421,2468,1044,1123,88,2414,1891,2379,2527,1927,269,1617,1783,2002,1796,312,1830,1021,1992,2000,1907,2639,2492,2390,593,2358,1932,2660,2423,1856,2588,1731,1838,1860,2119,1464,1814,68,1935,1745,1939,2460,2669,2637,1937,271,2341,1969,2491,336,1740,2206,76,2309,324,154,1006,320,1945,1758,2437,1737,1923,1063,188,2389,72,326,1246,2041,1615,2314,2438,382,1859,2545,2576,273,594,1780,2415,2539,2169,278,2418,467,261,539,1896,2595,2529,2385,331,2059,2184,2322,330,2391,2487,1221,2060,267,75,2456,54,232,191,1976,360,1921,803,569,584,4,2424,1616,1848,2501,2369,1854,2139,2621,1938,1799,2534,2542,576,2636,2036,2026,815,2517,684,1919,1916,2463,1614,563,1212,2157,345,548,2510,2525,2609,2516,2434,974,1901,583,2054,318,2528,2386,135,268,2488,348,2431,2646,2400,2532,2536,1867,2167,2546,2493,2350,2489,2433,15,325,1812,2361,61,2425,2288,894,2125,565,2581,1224,264,1613,2031,1849,270,1861,2497,1851,1892,2408,1127,551,349,1535,219,1232,2159,1884,1924,716,2368,2582,316,1847,1636,2282,2444,354,222,2558,1343,972,1902,207,581,2359,2544,111,338,2419,2273,1738,260,2494,2118,2377,332,2541,2521,587,558,2388,1015,2573,2383,19,2394,1866,1850,1957,2435,73,666,2039,2360,552,2293,1949,2657,2605,266,2024,2101,110,857,588,2436,2500,343,1502,589,2133,1561,2503,545,2117,2426,1162,165,1498,279,1827,2470,1541,1700,2537,1918,1297,2596,1766,1893,83,2365,2443,189,2372,1811,2560,2602,1560,2482,1746,1817,918,2450,2362,220,2538,2565,618,2575,1682,2651,1788,1813,171,2578,1198,346,350,2126,1889,1121,2504,1864,1913,2040,322,1751,2053,1499,2151,1190,2680,2422,2338,1914,822,2270,2165,2326,2339,2671,564,2114,2564,195,965,2458,2653,2514,2480,2686,2047,2638,1331,954,612,2547,1983,2336,2577,1681,1436,792,432,1979,2352,2168,2449,196,367,56,364,2508,2467,1336,2511,2062,1925,1008,2018,2380,872,2324,2409,2555,2556,1220,986,2162,2673,2353,2574,2396,119,924,2374,2152,1504,2304,624,1840,2393,810,2330,2357,149,2481,2308,2659,2315,6,2116,2156,2535,2543,2590,679,2589,1942,2447,113,512,2498,2584,2327,1961,1954,36,143,69,1999,1875,1852,2131,2587,365,2601,2178,1680,2562,2048,93,1625,2465,900,1199,2453,774,2645,233,105,201,582,2583,2540,213,798,2499,1687,2559,2571,2392,1951,1340,123,966,1672,2243,2403,2249,2248,2247,984,2246,2520,906,1686,1701,2210,2402,2245,858,2214,2215,2216,2217,2218,1688,2250,2251,2252,2253,2254,2219,2220,1620,2211,2212,2221,2213,2225,2226,2228,2229,117,2227,1658,2230,2222,2261,2231,2223,2244,2255,2256,2224,2197,2198,2199,2200,2201,2202,2203,2204,1659,2263,2264,2238,2235,2236,2237,2265,2266,2267,1683,2239,1703,1655,1657,1656,55,2234,1708,77,89,92,116,122,230,231,248,276,282,356,948,1684,1773,1677,2262,2233,1685,2240,2207,249,2553,1709,1678,2208,2209,1710,2242,1606,1689,1711,1712,1714,1713,31,852,2561,1715,1660,1679,1661,930,1662,1716,1702,1717,1718,1519,2257,816,1722,1723,1724,1725,1691,1720,1699,2285,62,1698,1694,1695,1696,1697,1247,1719,1721,1693,1707,2258,1276,2259,2260,528,2174,762,2490,1692,1704,255,1533,2441,728,1706,49,1993,768,153,2241,2033,1128,2496,2095,37,1959,1676,2005,1610,2635,1705,2656,2654,1958,44,2554,159,2356,1808,2484,2478,2023,2323,2032,740,690,129,2150,2549,2205,2371,2123,1491,1950,1911,1197,2035,2382,2025,786,1947,2034,1122,1009,1823,257,804,2567,1820,2658,570,1728,30,344,1668,756,1794,2007,546,1626,1666,2652,1858,2325,1835,1663,2013,1670,2045,1962,1225,1223,38,1995,1905,48,1669,2479,752,50,1899,2011,2001,2019,32,2417,1815,46,1673,1665,45,2355,1972,20,1743,2373,2476,2477,2354,2014,1966,2020,41,47,866,1675,2012,1978,2017,1829,1810,1782,52,1674,43]
bad_iteration_list = []
elif dataset_name == "taffc_baseline":
csv_normal = "merged_taffc_not_sorted.csv"
csv_annots = "merged_taffc_not_sorted_annotations.csv"
#top_features = [1152,525,1755,1747,1166,133,136,945,1750,927,2056,1497,1089,246,507,2055,21,1151,1489,1071,247,151,772,1077,2068,909,529,1194,2074,404,2086,1550,121,2105,2106,9,526,2092,2091,946,2069,1065,1760,2066,753,13,1053,1441,109,1059,1757,113,10,958,2087,1469,2090,407,1475,778,891,2075,917,406,2083,1537,1940,1637,770,1090,893,923,2061,1101,155,2081,911,899,1753,905,361,1096,1765,251,110,1768,1603,1195,1652,357,776,1461,2084,1643,2085,116,1574,1764,1350,328]
# all features
top_features = [1152,525,1755,1747,1166,133,136,945,1750,927,2056,1497,1089,246,507,2055,21,1151,1489,1071,247,151,772,1077,2068,909,529,1194,2074,404,2086,1550,121,2105,2106,9,526,2092,2091,946,2069,1065,1760,2066,753,13,1053,1441,109,1059,1757,113,10,958,2087,1469,2090,407,1475,778,891,2075,917,406,2083,1537,1940,1637,770,1090,893,923,2061,1101,155,2081,911,899,1753,905,361,1096,1765,251,110,1768,1603,1195,1652,357,776,1461,2084,1643,2085,116,1574,1764,1350,328,2057,352,1653,1486,1419,2089,1792,1447,1761,362,1539,1748,1649,897,438,2072,235,1638,1650,90,469,2073,1604,1102,1078,782,2064,1108,1072,2065,1644,2071,1460,1952,346,879,2597,1455,315,1839,1647,1047,1084,358,1607,466,443,766,1798,86,2603,464,497,2299,764,1407,1502,334,1154,1442,2302,885,80,236,1035,223,166,887,117,1406,1508,1334,1487,881,149,205,446,411,1874,928,1149,1833,2277,2082,1596,1775,363,229,556,1153,1635,1483,784,1552,2599,1634,1982,1609,1633,2067,1485,2404,1803,340,1842,146,2077,248,669,788,1594,1772,1800,1023,2268,1868,1863,2136,1472,1778,1915,418,131,2632,431,790,321,1364,413,1433,71,1107,562,1060,1516,1941,2070,442,1645,1943,532,1451,1641,408,1595,1444,1836,414,1639,910,1988,2142,1726,1735,3,115,1756,550,199,11,867,2364,1605,2399,1845,2627,252,465,754,1506,2269,2411,417,1054,1822,1729,1802,1470,211,1727,1869,2405,84,2625,1590,1834,1518,412,1791,217,1955,1981,1542,1787,1080,72,1231,1150,521,79,415,513,1965,2598,2303,922,1490,1155,1640,1859,1092,692,1878,416,1790,2137,935,8,1824,2306,240,1481,1807,1933,1953,2363,1763,152,2079,681,1353,1170,2175,503,1507,2078,509,1648,249,1903,2335,530,1379,2274,1777,1029,1448,963,916,1795,2317,1416,2076,409,2406,1984,254,2606,2143,316,1651,1793,2194,1161,2289,1789,1085,2410,1767,1754,1821,137,1581,1086,950,1435,1217,1786,1928,2631,697,1733,1066,447,2626,161,1025,209,441,767,2145,475,1865,66,671,2094,2063,964,1971,444,1041,130,1870,1806,445,1393,1857,1549,938,1476,1482,505,2473,433,2107,58,892,2088,1568,1434,154,2028,1529,2329,869,1582,1358,250,2683,1428,1642,480,2195,1931,1322,868,527,1468,1770,2010,1011,763,2319,322,977,140,1427,162,1841,2320,941,1538,1530,1929,794,873,2506,439,1912,2628,757,2271,242,448,351,1887,1904,2401,2678,2100,1964,2677,1825,2109,1545,1073,672,1079,2608,2337,1774,2684,2334,1420,1327,355,348,2111,2457,1970,2375,1690,473,1909,796,2579,904,544,1805,898,1105,470,2193,2471,793,1061,1897,1967,1646,2307,2445,1372,2611,1898,2030,434,685,2310,1977,1619,476,2051,704,2146,1234,2149,2297,2009,1804,975,2475,2102,2620,2623,1532,880,479,1762,18,474,829,1098,2108,769,1630,1017,173,2398,1730,221,263,1543,2381,2629,2366,1454,2617,761,112,2614,336,64,330,410,1843,1973,1125,2328,2163,1474,2188,1074,1906,623,2513,882,73,1816,468,1801,2610,886,538,1624,1569,2179,1013,1440,855,2451,2416,2171,435,817,2376,962,2348,2275,1985,1871,2172,981,506,2512,932,688,1621,2384,1553,1853,2015,689,1980,944,1876,775,1175,226,440,1357,1191,2331,1378,1114,1371,605,953,327,1479,1910,478,959,1700,520,2313,2624,870,1119,477,1819,2021,1329,1352,1055,595,241,900,2147,1831,800,2524,641,956,760,2412,243,356,277,1920,1037,1989,1900,1732,1976,1832,2192,16,874,1168,1126,280,2316,862,2292,2428,1062,1192,1877,122,1544,147,1178,92,1514,2161,2187,2097,2298,1465,233,7,1210,253,91,647,2153,629,1608,896,2633,2647,976,2622,2648,1113,902,2634,1856,2185,1862,1189,2349,2160,1784,811,524,2058,856,673,547,1588,1068,611,1979,1264,319,1922,1587,1104,134,758,2580,1611,333,1049,2662,2607,2663,185,960,2295,599,1844,1872,2043,2132,920,1048,204,2655,1232,968,683,1422,1026,1987,1589,2600,1019,2612,1796,1014,493,350,2613,2196,1546,1111,2333,2342,2430,2294,1618,888,2668,2099,716,2427,2667,437,2027,516,1227,659,2318,331,1974,2098,966,969,1457,2593,2591,665,1120,1881,802,1758,1615,27,1093,861,320,2515,1031,1613,1449,85,541,1855,2507,2177,53,1075,2144,653,1365,2378,77,2181,1099,29,1742,2309,2572,360,1734,1781,983,2592,2170,1736,2429,2180,2016,785,2080,1927,1636,2311,1997,2644,2312,908,1012,864,2619,1024,2176,806,2413,1818,1043,2166,1826,2287,914,850,594,2158,635,101,1664,1117,2630,1321,2618,1627,2186,2206,2037,2472,1045,34,2395,168,2407,1885,755,2483,841,2387,2509,2173,281,522,1880,94,1349,1986,1809,1345,1412,2049,1211,1739,325,2439,2038,566,2616,2279,472,1769,2157,259,596,326,1467,2485,1632,982,2518,818,83,682,1828,1745,773,2008,617,338,1203,471,208,1511,2278,256,912,1235,1039,2189,174,2452,2676,965,2164,1033,1056,701,1926,2130,1216,1883,929,2191,76,1081,2138,860,2519,232,1886,188,1873,971,231,2666,2672,2003,2183,559,1846,1030,1623,1616,2340,1771,70,1020,1221,57,894,104,826,1464,2060,926,1356,1005,2141,59,2643,848,2552,1776,1631,1377,191,337,686,2332,2682,1882,719,1006,141,618,584,285,884,324,1218,1737,695,225,2675,1109,1224,553,1968,2530,1196,1629,536,2685,1991,2006,1827,1042,1628,26,1456,1205,2674,1443,1744,1848,2113,244,2351,1785,1998,374,2665,2615,2296,295,63,1373,845,906,1087,2469,2486,2641,1177,1129,119,2182,2104,2557,265,1051,2290,1879,1622,2679,339,2386,2154,2120,2621,1018,812,2423,28,1617,40,2121,2344,2127,1560,1531,359,329,82,851,287,840,317,354,2343,2096,342,2563,728,740,2151,2455,797,2022,2551,2280,2150,1069,2482,1783,1036,2050,846,1554,1830,1458,612,382,297,2495,1956,1975,2456,842,2448,35,808,2131,364,593,1667,1032,1847,2461,1741,2418,2046,1421,2442,2383,17,2661,2454,2155,878,2494,1797,2134,1498,37,1837,2650,1851,2570,405,1535,890,1583,2036,323,286,23,1050,202,258,343,1944,2103,135,189,2664,875,2284,1226,1814,820,2135,1548,2595,2550,275,2642,2004,385,349,853,1612,2594,274,2462,1884,2669,2474,1122,347,206,838,2345,2681,128,1671,95,2018,2601,2585,309,2190,2276,284,2305,75,1517,814,1960,2446,1919,2522,821,1963,2169,558,1894,1027,666,1891,318,847,2480,548,308,2321,2369,2165,2420,2539,68,1942,844,24,267,2466,2425,2468,1932,307,1296,1121,2569,1917,272,854,1992,2000,545,2286,89,809,1654,2459,1738,2637,1740,1731,1799,2581,2491,2391,2159,1815,876,1038,2526,1559,2463,539,970,2093,341,292,303,2002,2346,832,1780,2497,2529,1127,2534,2542,1057,31,220,2031,678,2232,304,2140,1896,1752,2646,2653,467,61,2502,1504,2533,2548,517,1849,2052,1259,2440,22,2609,2370,1945,827,273,1555,1888,332,836,2604,1813,381,2168,1957,1246,2115,1918,2481,2358,310,1063,39,2487,2470,2670,2560,1990,1994,74,1123,2356,1969,2558,2293,69,2330,2288,839,2059,2680,1854,2521,2541,2360,2415,1746,779,572,294,2433,1852,2432,2501,288,207,972,268,2110,165,2024,2605,1115,2489,2460,1343,2367,1044,269,2544,2128,1817,380,2531,1779,1260,2402,2508,123,833,88,2464,791,38,345,2421,2352,2347,228,4,2660,1901,2488,624,589,2436,2546,1934,2576,2528,298,576,1890,2388,1864,2602,2178,582,2540,2272,300,2543,1436,2673,1812,1838,1015,222,1766,551,2133,2044,2434,2527,2365,2523,2408,2041,2505,1939,111,2380,518,1318,2034,296,2686,684,201,2426,2119,2300,2035,25,1892,219,2005,2574,279,2573,289,2350,2419,1860,2545,552,2368,1999,291,32,36,2017,2324,50,1336,1925,301,1938,1811,2467,1893,1895,2640,564,1930,2400,918,1788,2520,15,311,432,48,1625,55,213,1867,2362,2649,2510,2139,2450,2422,1866,335,60,2645,2389,1850,1954,569,264,2492,2414,2281,834,2040,679,306,1993,19,2588,803,2020,2577,2535,299,2449,2652,1951,859,2053,2499,270,2636,2282,1212,1913,2438,583,1946,2371,2308,1924,2379,857,1908,276,2409,2042,2525,2039,216,2353,2117,2532,2536,2431,2283,2314,2397,2184,2023,2564,2114,314,581,1273,1491,1751,198,2538,2326,1561,2341,2537,2361,214,2124,828,1902,1921,1914,587,1274,67,780,1297,2589,2493,2357,143,54,2377,1983,1996,2435,1626,2417,2322,2453,1021,93,62,2479,2156,2374,2437,260,302,2559,2390,2359,171,2126,1008,2516,2424,2385,2562,2122,565,2273,2336,954,1340,290,2596,20,815,1303,266,305,2575,1907,2447,2261,344,2118,278,2054,2587,2638,2243,2270,1840,984,2262,2586,872,1861,271,312,45,2555,293,2263,1198,690,164,2659,30,52,924,2101,2392,2116,2496,1950,1614,752,563,2032,2561,2514,153,2651,2315,2026,1331,852,2197,2198,2199,2200,2201,2202,2203,2204,49,1916,261,2233,1672,2234,2504,2393,2582,2241,1162,512,2264,804,195,2062,570,1875,2373,2152,1794,1823,2267,2265,1687,2583,2266,822,2216,2394,2217,2218,774,1958,2011,1199,2215,1658,2242,2209,1678,2248,2249,2252,2253,2254,1657,588,1655,1656,1677,1683,1684,2304,2403,2246,255,2245,2250,2251,2247,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2547,1935,2125,2244,2025,2260,2259,1685,1773,2258,2210,2257,2255,2458,2256,792,546,2567,1190,1659,2441,2382,1716,1717,1718,1715,1499,2208,2553,2549,2235,2236,2237,1686,786,2238,2239,2240,2013,1714,2657,2211,2511,2048,2214,6,2207,2566,1276,2212,2671,1712,2443,1711,2047,930,2129,1937,2213,282,1710,948,2565,1709,2167,2477,2012,196,1220,105,1519,1691,1692,1693,1694,1695,1696,1697,1698,1688,2490,2654,1713,2571,1708,2465,1689,2500,2372,1699,1706,1707,1719,1720,1721,1722,1723,1724,1725,1533,1705,257,1462,798,2338,1995,756,2568,762,1703,230,2095,2033,2639,2517,1662,2590,858,1197,1889,1225,1728,2578,159,1541,1702,2498,1223,2658,2339,2556,1676,2014,1317,1961,1808,1704,2396,986,1679,365,1959,1701,2327,1829,1660,2007,2478,2656,1949,1966,2484,2174,1682,1835,1911,1661,2323,1610,1463,2354,2285,1905,1858,980,2045,2444,1947,1820,2635,2162,1962,2001,2503,1978,367,1620,1128,41,2355,2584,1247,2476,1663,1670,56,768,2205,129,1674,1899,2554,528,2019,1009,810,2325,44,1675,1673,1681,1782,1810,46,43,1680,1669,1743,974,1668,47,2123,1923,1972,1666,1665,816,866]
bad_iteration_list = []
##########################
## Percussion Only ##
##########################
elif dataset_name == "audio_full_percussion": # percussion only
#csv_normal = "full_audio_percussion_features.csv"
csv_normal = "full_audio_percussion_features.csv"
csv_annots = "full_audio_annotations.csv"
#top_features = [1765, 1152, 1773, 525, 2073, 1166, 1151, 507, 1768, 2109, 2123, 2110, 2124, 945, 927, 361, 10, 2074, 529, 1441, 1089, 1497, 13, 21, 1783, 1786, 909, 1071, 1475, 1077, 407, 1550, 1065, 133, 404, 772, 2103, 1537, 1489, 1775, 1778, 1771, 946, 2075, 406, 1059, 2086, 526, 1053, 2079, 1154, 136, 2104, 1455, 109, 1574, 1090, 917, 753, 121, 923, 2092, 2084, 246, 1779, 2101, 911, 776, 2093, 770, 1857, 1766, 1782, 357, 1194, 778, 252, 2087, 891, 9, 958, 1605, 2105, 497, 2631, 2125, 1469, 1539, 1078, 1594, 2108, 2333, 1485, 897, 1654, 2000, 784, 469, 1427, 1606]
#top_features = [1,8,2,5,11,29,9,27,3,26,46,17,20,52,14,41,23,55,38,30,16,12,22,32,39,45,44,35,15,21,31,53,50,40,49,54,6,47,28,33,51,24,18,13,36,42,34,56,25,37,10,7,19,57,4,43]
top_features = [1,8,2,5,11,29,9,27,3,26,46,17,20,52,14,41,23,55,38,30,16,12,22,32,39,45,44,35,15,21,31,53,50,40,49,54,6,47,28,33,51,24,18,13,36,42,34,56,25,37,10,7,19,57,4,43]
bad_iteration_list = []
elif dataset_name == "audio_balanced_percussion": # percussion only
csv_normal = "balanced_audio_final_percussion_features.csv"
csv_annots = "balanced_audio_annotations.csv"
#top_features = [1765, 1152, 1773, 525, 2073, 1166, 1151, 507, 1768, 2109, 2123, 2110, 2124, 945, 927, 361, 10, 2074, 529, 1441, 1089, 1497, 13, 21, 1783, 1786, 909, 1071, 1475, 1077, 407, 1550, 1065, 133, 404, 772, 2103, 1537, 1489, 1775, 1778, 1771, 946, 2075, 406, 1059, 2086, 526, 1053, 2079, 1154, 136, 2104, 1455, 109, 1574, 1090, 917, 753, 121, 923, 2092, 2084, 246, 1779, 2101, 911, 776, 2093, 770, 1857, 1766, 1782, 357, 1194, 778, 252, 2087, 891, 9, 958, 1605, 2105, 497, 2631, 2125, 1469, 1539, 1078, 1594, 2108, 2333, 1485, 897, 1654, 2000, 784, 469, 1427, 1606]
top_features = [1,8,2,5,11,29,9,27,3,26,46,17,20,52,14,41,23,55,38,30,22,16,32,12,39,35,45,44,15,53,21,31,50,40,49,54,6,47,33,28,24,51,18,13,42,36,34,56,25,37,10,19,7,57,43,4]
bad_iteration_list = [4,5,20,23, 29, 36,40,42, 50, 67, 69]
elif dataset_name == "bimodal_full_percussion": # percussion only
csv_normal = "full_bimodal_final_percussion_features.csv"
csv_annots = "full_bimodal_annotations.csv"
#top_features = [1765, 1152, 1773, 525, 2073, 1166, 1151, 507, 1768, 2109, 2123, 2110, 2124, 945, 927, 361, 10, 2074, 529, 1441, 1089, 1497, 13, 21, 1783, 1786, 909, 1071, 1475, 1077, 407, 1550, 1065, 133, 404, 772, 2103, 1537, 1489, 1775, 1778, 1771, 946, 2075, 406, 1059, 2086, 526, 1053, 2079, 1154, 136, 2104, 1455, 109, 1574, 1090, 917, 753, 121, 923, 2092, 2084, 246, 1779, 2101, 911, 776, 2093, 770, 1857, 1766, 1782, 357, 1194, 778, 252, 2087, 891, 9, 958, 1605, 2105, 497, 2631, 2125, 1469, 1539, 1078, 1594, 2108, 2333, 1485, 897, 1654, 2000, 784, 469, 1427, 1606]
top_features = [8,1,2,5,11,3,9,29,27,26,17,46,14,55,23,20,41,30,22,6,12,52,45,44,38,39,35,32,16,15,31,53,21,50,49,40,42,28,54,24,51,33,47,18,13,34,36,7,56,25,37,10,43,19,57,4]
bad_iteration_list = [4,5]
elif dataset_name == "bimodal_balanced_percussion": # percussion only
csv_normal = "balanced_bimodal_final_percussion_features.csv"
csv_annots = "balanced_bimodal_annotations.csv"
#top_features = [1765, 1152, 1773, 525, 2073, 1166, 1151, 507, 1768, 2109, 2123, 2110, 2124, 945, 927, 361, 10, 2074, 529, 1441, 1089, 1497, 13, 21, 1783, 1786, 909, 1071, 1475, 1077, 407, 1550, 1065, 133, 404, 772, 2103, 1537, 1489, 1775, 1778, 1771, 946, 2075, 406, 1059, 2086, 526, 1053, 2079, 1154, 136, 2104, 1455, 109, 1574, 1090, 917, 753, 121, 923, 2092, 2084, 246, 1779, 2101, 911, 776, 2093, 770, 1857, 1766, 1782, 357, 1194, 778, 252, 2087, 891, 9, 958, 1605, 2105, 497, 2631, 2125, 1469, 1539, 1078, 1594, 2108, 2333, 1485, 897, 1654, 2000, 784, 469, 1427, 1606]
top_features = [8,2,1,5,11,3,29,9,27,26,17,55,46,20,14,6,12,23,30,52,22,41,45,44,38,39,16,35,32,15,53,31,21,50,49,28,54,24,42,40,18,33,51,13,47,36,34,7,56,25,37,10,43,19,57,4]
bad_iteration_list = [14, 15, 16, 17,20,28]
elif dataset_name == "taffc_percussion": # percussion only
csv_normal = "taffc_final_percussion_features.csv"
csv_annots = "taffc_annotations.csv"
#top_features = [1765, 1152, 1773, 525, 2073, 1166, 1151, 507, 1768, 2109, 2123, 2110, 2124, 945, 927, 361, 10, 2074, 529, 1441, 1089, 1497, 13, 21, 1783, 1786, 909, 1071, 1475, 1077, 407, 1550, 1065, 133, 404, 772, 2103, 1537, 1489, 1775, 1778, 1771, 946, 2075, 406, 1059, 2086, 526, 1053, 2079, 1154, 136, 2104, 1455, 109, 1574, 1090, 917, 753, 121, 923, 2092, 2084, 246, 1779, 2101, 911, 776, 2093, 770, 1857, 1766, 1782, 357, 1194, 778, 252, 2087, 891, 9, 958, 1605, 2105, 497, 2631, 2125, 1469, 1539, 1078, 1594, 2108, 2333, 1485, 897, 1654, 2000, 784, 469, 1427, 1606]
top_features = [1,8,2,5,9,3,11,27,29,17,23,26,55,12,30,14,20,46,22,41,44,45,39,6,52,15,38,53,31,16,35,32,33,21,49,40,18,24,50,13,54,51,47,28,42,34,36,25,7,56,10,19,37,43,57,4]
bad_iteration_list = []
##########################
## MIDI Only ##
##########################
elif dataset_name == "audio_balanced_midi": # midi only
csv_normal = "balanced_audio_final_midi_features.csv"
csv_annots = "balanced_audio_annotations.csv"
top_features = [378,416,413,387,390,291,377,384,383,286,41,399,712,660,375,427,317,487,421,417,289,420,509,443,38,412,405,449,62,465,515,271,493,406,364,409,325,494,668,516,407,403,10,450,504,2,526,495,471,491,8,376,508,447,444,374,661,400,318,278,438,429,517,456,442,283,559,482,681,666,530,338,425,524,428,323,488,478,502,460,513,510,274,100,363,706,434,453,473,518,522,16,368,422,451,472,436,500,373,457,711,469,12,303,439,505,431,475,432,520,173,379,610,496,501,220,523,707,281,466,479,480,519,498,527,497,182,435,408,275,280,270,60,372,180,476,4,414,181,54,36,309,277,430,369,664,169,321,563,525,570,503,454,304,92,474,486,340,683,571,572,410,529,507,538,437,499,521,464,461,433,370,68,483,365,618,477,419,415,670,708,327,481,5,663,296,1,52,322,320,172,665,381,7,673,329,672,53,562,3,148,669,326,330,44,411,45,228,441,467,458,273,423,282,11,452,511,489,351,418,694,506,164,485,528,279,554,459,58,662,319,324,484,440,333,667,156,288,676,166,64,401,20,293,556,671,28,9,445,578,710,295,328,55,350,284,59,693,332,85,675,380,315,196,580,297,294,356,699,272,679,298,586,285,336,362,596,455,343,686,705,78,341,684,190,357,700,287,307,73,674,331,335,678,345,310,290,76,577,144,334,688,358,701,677,311,463,187,206,208,342,200,685,697,354,704,80,446,344,314,687,361,186,598,300,576,590,546,603,468,302,213,299,183,211,192,312,601,594,346,349,301,347,702,359,692,690,204,313,587,682,292,339,689,188,367,703,69,305,360,680,490,573,512,197,306,695,352,600,337,210,353,82,696,424,402,72,348,691,404,492,81,599,209,462,198,591,70,588,6,597,276,698,534,355,308,79,83,207,201,582]
bad_iteration_list = []
elif dataset_name == "bimodal_full_midi": # midi only
csv_normal = "full_bimodal_final_midi_features.csv"
csv_annots = "full_bimodal_annotations.csv"
top_features = [378,387,390,377,384,383,416,291,413,286,712,375,399,289,317,660,487,526,427,504,41,421,509,417,478,38,493,405,515,456,438,465,420,283,471,62,412,508,442,443,373,494,495,403,407,406,434,453,516,271,325,530,668,522,482,409,429,475,500,374,449,400,559,274,523,501,338,681,364,444,517,488,502,524,2,450,439,435,277,505,431,447,270,491,510,422,460,519,379,472,497,16,711,278,323,666,280,527,457,428,479,8,513,436,275,473,425,432,100,376,54,518,707,466,664,480,321,469,303,486,661,499,368,281,318,520,498,496,60,372,279,521,10,169,451,173,454,369,610,414,220,563,430,7,706,477,53,483,92,408,476,322,572,665,461,11,433,182,464,474,363,309,1,52,5,4,708,381,467,3,437,562,365,44,410,12,418,411,506,340,683,172,36,528,538,9,304,507,370,554,670,327,529,525,673,333,669,676,326,296,330,503,484,672,293,329,164,282,571,419,489,156,273,288,511,423,320,663,180,570,181,148,272,85,45,440,441,452,481,284,356,485,699,415,68,618,401,28,667,324,458,166,228,671,332,662,55,319,58,675,20,328,59,445,190,546,580,315,459,295,380,351,294,578,710,679,694,336,556,287,276,455,362,586,196,705,674,297,350,693,213,331,285,343,686,335,678,603,64,700,357,310,446,596,187,183,298,78,200,342,144,76,685,290,344,687,334,307,314,311,299,211,677,358,208,83,701,186,600,80,684,697,341,573,354,82,598,590,210,704,345,587,594,688,361,601,72,534,197,577,188,367,204,468,300,337,576,680,463,69,73,682,292,339,512,490,206,302,597,313,347,207,690,360,424,703,349,692,79,305,306,352,695,353,696,346,312,702,359,402,462,81,689,599,209,70,198,588,591,698,355,308,301,6,691,348,192,201,582]
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_midi": # midi only
csv_normal = "balanced_bimodal_final_midi_features.csv"
csv_annots = "balanced_bimodal_annotations.csv"
top_features = [378,390,387,377,384,383,291,712,416,375,413,286,399,317,660,526,504,289,487,427,421,438,41,456,509,417,478,465,508,471,420,38,515,442,530,453,493,405,482,443,407,494,364,406,373,501,523,516,62,403,283,495,400,460,559,2,449,435,274,434,475,488,505,325,374,524,668,429,412,502,522,439,457,444,8,510,500,338,422,681,491,447,517,527,271,277,270,280,472,450,275,409,479,666,379,323,16,431,711,10,376,425,664,513,436,321,486,428,466,473,480,519,278,499,497,432,518,521,60,372,707,281,469,451,173,414,477,496,303,483,610,169,461,454,464,100,92,54,12,661,369,220,318,520,706,498,279,430,182,433,7,418,408,363,506,563,53,474,411,368,528,4,572,665,11,322,44,562,476,5,1,437,172,309,381,708,673,507,484,3,529,293,554,670,52,330,538,327,282,273,410,467,36,365,181,571,440,525,180,164,419,272,340,683,304,370,570,148,296,326,669,503,452,9,288,441,458,85,156,489,45,320,485,284,401,663,511,415,423,672,333,676,481,329,356,618,68,699,671,328,166,55,190,228,546,319,662,578,710,20,667,324,315,276,58,580,459,455,28,380,295,679,445,294,336,362,705,586,59,556,351,332,196,213,675,674,297,694,603,331,200,350,693,183,335,678,298,64,343,144,285,686,357,700,310,187,342,446,685,290,211,600,287,596,82,78,311,358,573,76,590,701,188,367,72,208,186,307,210,299,83,534,80,697,587,354,314,344,601,598,684,341,687,346,345,334,689,577,197,204,463,594,704,300,468,682,292,339,688,677,69,597,361,576,206,337,512,490,207,313,680,462,302,360,703,347,352,695,305,306,692,349,353,696,73,690,79,424,402,6,312,702,359,81,599,209,198,70,588,591,698,355,308,301,691,348,192,582,201]
bad_iteration_list = []
elif dataset_name == "audio_full_midi": # midi only
csv_normal = "full_audio_midi_features.csv"
csv_annots = "full_audio_annotations.csv"
top_features = [378,416,413,390,387,291,383,377,384,41,286,399,712,660,317,375,487,443,417,289,271,38,427,420,421,509,412,364,405,406,449,465,62,10,409,515,494,493,450,516,2,407,325,668,471,8,376,495,444,504,403,666,374,526,323,559,661,517,400,318,283,491,100,447,681,338,429,278,508,460,488,438,473,482,524,428,478,456,510,502,530,513,442,472,363,434,451,425,16,274,368,453,518,522,711,457,500,706,373,422,220,436,303,520,173,475,610,466,469,496,431,498,707,501,182,523,505,476,12,432,36,479,519,439,497,408,480,281,180,379,435,4,181,280,414,60,372,169,454,527,664,321,275,277,525,369,304,503,270,54,538,430,92,474,309,570,340,486,683,572,563,410,571,464,437,481,529,507,433,172,461,562,415,370,663,499,320,521,670,365,148,327,708,52,483,68,419,296,228,322,618,665,53,672,329,7,1,477,44,5,452,45,381,669,326,3,288,458,467,673,330,441,411,423,459,273,511,662,20,319,489,440,282,11,351,164,694,554,418,333,506,324,528,676,667,485,166,293,284,156,58,401,64,484,671,59,315,295,85,279,328,445,297,350,55,693,556,578,710,294,332,675,28,9,580,196,298,362,380,679,705,336,455,678,285,335,343,310,686,356,699,700,341,357,684,596,586,345,577,78,290,463,688,190,674,358,331,311,701,307,272,334,187,677,344,287,687,73,200,144,603,206,314,446,208,546,704,80,76,697,354,361,213,342,685,598,590,300,468,186,302,312,183,576,72,359,702,349,490,512,211,692,601,299,313,301,192,680,347,682,292,339,690,703,360,337,402,346,305,204,82,600,587,306,69,210,689,424,695,352,188,367,594,353,197,462,696,573,404,492,81,599,209,348,691,198,70,588,597,6,79,698,355,591,308,207,582,83,201,276,534]
bad_iteration_list = []
##########################
## Percussion and MIDI Only ##
##########################
elif dataset_name == "audio_balanced_perc_midi_only": # midi only
csv_normal = "balanced_audio_final_perc_midi_only_features.csv"
csv_annots = "balanced_audio_annotations.csv"
top_features = [1,8,2,5,11,9,473,435,3,470,29,27,46,348,343,444,447,98,456,440,434,441,20,484,717,374,769,477,544,95,474,478,38,432,469,566,23,346,17,382,26,45,725,328,30,44,500,462,119,506,522,718,572,375,550,421,466,548,14,460,41,723,380,463,464,59,65,335,551,561,528,67,39,583,552,433,573,504,507,738,431,581,55,565,395,12,559,482,574,570,501,499,157,486,587,457,495,513,545,539,420,763,616,360,340,425,493,535,485,567,530,517,491,21,510,489,331,430,73,52,575,577,69,277,526,479,579,562,496,529,768,508,557,667,555,239,230,553,537,117,429,488,514,533,584,536,471,366,237,558,580,532,35,238,523,764,15,465,576,554,93,361,32,61,620,582,492,560,531,436,721,31,595,338,378,487,494,426,22,511,332,543,556,467,327,578,226,627,629,334,111,53,337,149,586,628,397,16,740,490,720,729,386,377,6,564,534,33,521,518,49,36,50,125,205,540,472,538,675,422,765,353,476,468,427,28,726,383,730,54,619,515,379,408,102,722,727,438,62,384,387,285,751,229,58,339,18,498,60,475,101,110,509,480,109,64,330,563,585,541,345,524,568,546,542,611,221,213,407,34,77,750,68,516,42,350,223,341,497,376,719,390,352,733,381,13,724,121,47,613,458,24,372,635,767,351,637,502,115,116,336,413,37,728,354,389,756,732,85,385,419,355,253,762,342,66,400,40,743,731,388,437,398,741,112,142,653,736,344,757,414,393,643,347,56,512,135,392,735,367,247,402,51,634,399,257,364,742,371,745,415,391,734,368,758,520,401,761,137,744,265,130,647,418,655,329,244,754,503,411,263,133,201,357,243,249,603,10,359,245,424,129,19,525,356,369,759,416,404,737,406,370,747,358,749,126,644,394,268,362,651,760,240,417,658,547,633,569,403,752,739,349,396,254,409,363,57,270,261,660,459,746,657,481,267,410,648,753,519,139,405,461,549,748,138,656,266,4,255,43,127,645,591,755,654,412,365,7,264,63,630,136,333,258,140,25,639]
bad_iteration_list = []
elif dataset_name == "bimodal_full_perc_midi_only": # midi only
csv_normal = "full_bimodal_final_perc_midi_only_features.csv"
csv_annots = "full_bimodal_annotations.csv"
top_features = [1,8,2,5,435,11,444,447,473,9,3,440,434,441,470,343,348,29,27,769,456,432,46,346,374,717,544,484,478,98,95,583,561,566,45,44,474,26,477,513,522,462,535,469,38,550,572,495,119,20,382,725,340,499,528,430,30,565,460,17,500,510,466,23,457,328,587,551,491,395,464,738,463,552,431,486,545,579,506,581,14,559,573,557,532,539,616,41,421,496,380,567,723,580,548,39,558,59,504,562,479,335,12,331,501,574,488,73,493,55,492,768,507,6,576,554,334,570,482,157,529,584,65,718,536,327,485,375,489,436,517,530,556,537,337,575,360,543,433,523,721,578,526,378,332,514,277,764,117,429,553,230,111,21,577,425,555,667,620,67,511,534,226,487,508,540,471,763,426,149,336,490,22,518,465,366,52,31,531,379,338,521,722,533,110,64,35,765,36,420,239,42,494,595,15,61,422,629,467,68,109,32,93,50,563,101,69,62,619,397,475,740,524,611,58,729,468,582,438,585,386,229,60,361,53,727,730,726,384,560,383,720,221,49,377,353,427,350,205,387,213,541,564,390,733,586,345,66,16,18,339,476,33,54,480,546,102,509,413,28,238,330,675,237,756,568,472,628,538,37,498,341,515,542,497,627,85,724,285,142,458,381,125,77,223,329,376,24,719,603,372,13,728,637,635,767,385,351,47,408,344,352,389,419,751,516,732,112,407,762,115,750,247,502,116,731,388,613,400,743,437,342,121,512,392,736,354,735,333,393,355,253,643,757,367,414,257,660,347,399,742,270,503,51,40,56,371,391,244,734,34,240,368,401,43,653,364,201,135,744,415,758,268,754,411,657,133,647,402,761,265,356,398,418,745,741,267,129,137,10,140,139,655,7,591,644,243,357,394,737,254,261,630,525,651,739,349,396,245,424,520,25,359,370,654,569,404,634,130,547,126,658,264,747,417,760,648,406,362,363,749,409,752,369,481,410,753,519,759,416,136,19,459,255,57,127,645,755,412,263,138,633,656,266,403,4,365,746,358,748,405,258,249,63,639]
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_perc_midi_only": # midi only
csv_normal = "balanced_bimodal_final_perc_midi_only_features.csv"
csv_annots = "balanced_bimodal_annotations.csv"
top_features = [1,8,2,5,11,435,447,444,434,441,440,473,3,9,470,769,348,432,343,29,27,456,374,717,561,583,46,544,484,478,45,44,346,98,513,566,495,26,474,95,477,522,535,510,565,499,457,572,550,528,462,587,500,119,38,460,421,430,545,539,558,551,20,464,580,463,382,725,581,506,340,573,395,738,616,559,567,562,59,552,496,469,492,491,486,548,431,532,14,479,39,517,23,17,579,30,723,504,328,65,380,12,557,584,466,501,536,331,529,73,493,55,482,574,768,543,570,67,556,514,41,6,537,335,488,433,507,578,332,334,523,721,575,117,429,327,378,489,576,485,337,540,554,230,436,530,157,526,718,667,277,375,534,553,508,360,471,764,518,521,21,511,149,69,490,487,226,763,577,620,555,239,338,111,426,465,420,531,563,475,722,379,425,585,494,595,468,61,101,336,533,366,52,110,64,619,36,42,730,15,68,629,765,541,611,32,93,22,229,387,62,31,467,582,727,422,438,58,205,350,586,35,384,564,221,49,60,50,524,109,560,330,361,339,726,427,509,238,345,383,476,353,237,740,397,497,102,28,53,498,213,377,720,628,18,515,542,472,729,16,33,458,386,54,627,66,546,341,142,675,568,538,413,480,329,285,756,37,77,603,390,733,635,767,24,372,728,223,385,125,13,376,85,719,724,247,637,381,512,516,419,112,762,333,731,408,407,750,352,388,751,115,351,392,735,121,502,437,355,613,47,257,736,389,393,253,400,354,116,732,643,743,367,757,342,414,660,344,201,347,270,399,51,240,742,56,503,244,34,129,657,40,415,368,647,43,371,758,268,139,402,245,424,754,364,411,591,267,391,644,745,265,734,398,761,7,741,137,133,653,356,403,418,135,10,140,243,746,520,655,401,254,357,630,25,261,744,739,349,396,394,737,525,126,634,569,370,519,547,658,654,359,404,409,752,362,363,648,130,651,459,417,760,410,753,19,264,749,747,406,369,759,416,481,255,127,57,645,138,656,266,755,412,136,4,263,365,633,63,358,748,405,249,258,639]
bad_iteration_list = []
elif dataset_name == "audio_full_perc_midi_only": # midi only
csv_normal = "full_audio_perc_midi_only_features.csv"
csv_annots = "full_audio_annotations.csv"
top_features = [1,8,2,5,11,9,435,473,29,470,3,27,46,343,98,447,444,348,456,440,434,441,20,717,374,328,484,477,95,544,474,769,469,346,45,17,38,478,432,500,44,566,30,421,23,723,380,382,718,725,26,375,522,466,462,119,67,506,572,59,463,41,550,14,433,65,464,39,551,528,157,460,548,507,431,552,738,335,561,395,501,583,573,12,504,574,581,55,616,457,559,565,570,486,530,545,340,499,495,539,587,420,513,425,482,360,567,535,485,21,517,493,763,577,52,491,430,277,529,73,508,768,575,510,533,526,489,667,579,239,479,555,230,331,557,117,429,69,553,537,237,93,35,471,514,488,562,536,532,238,580,361,558,496,32,523,15,595,764,582,560,465,31,576,511,554,721,378,366,61,531,22,226,584,492,487,426,620,467,494,627,149,338,543,720,436,332,377,629,334,397,337,53,740,538,628,111,6,556,490,327,586,578,50,16,205,472,729,521,386,564,518,33,28,619,49,353,427,422,476,765,534,540,125,229,54,675,515,727,36,726,383,384,102,285,379,509,468,722,345,109,110,408,77,438,101,62,751,498,60,58,330,516,339,376,64,475,719,524,480,221,730,563,497,18,585,387,341,611,568,350,546,407,213,542,750,34,541,352,372,390,24,68,223,733,13,381,724,351,121,458,47,354,116,502,42,613,355,728,637,635,767,385,85,419,389,732,762,342,735,392,115,400,743,40,367,66,413,37,756,731,388,757,142,253,414,51,634,736,398,741,402,112,347,393,344,745,512,368,437,247,415,391,653,336,734,758,56,520,257,135,401,744,643,371,137,647,265,364,399,742,244,655,761,503,418,603,754,130,411,263,129,357,201,10,359,249,525,329,356,133,369,660,416,759,245,424,270,240,406,243,737,370,547,569,749,19,394,404,268,760,358,747,417,7,658,362,739,349,396,459,363,752,409,126,481,657,644,267,410,261,57,403,753,651,139,746,254,519,461,549,138,656,266,255,4,127,645,648,405,633,748,43,25,755,412,654,630,365,136,63,264,591,258,333,140,639]
bad_iteration_list = []
##########################
## Old features with Percussion and MIDI##
##########################
elif dataset_name == "audio_full_with_perc_midi": # midi only
csv_normal = "full_audio_with_perc_midi_features.csv"
csv_annots = "full_audio_annotations.csv"
top_features = [1152,1755,1747,525,2055,1151,1166,2687,10,507,1750,1497,945,927,2091,2092,2105,2106,2694,361,1441,13,2688,1765,2056,529,1768,133,407,1550,772,406,1537,1089,1475,1489,2691,21,946,526,2697,1077,1071,1065,909,2057,109,2068,136,9,2085,753,2086,1059,2061,1154,1455,1574,1753,121,246,778,357,404,2074,3163,2075,776,1194,1053,2695,1090,2066,770,1469,2083,3159,1761,1839,2689,958,2069,891,2597,1757,2087,1760,917,1764,1748,1603,923,497,469,911,1652,3160,3066,784,1539,1078,247,3409,1096,1485,252,2072,1594,468,236,1609,897,1447,893,2107,466,1982,438,2090,1604,1084,2277,2136,1419,2142,2289,2299,11,1427,1153,1406,465,2081,1874,2084,2071,879,3156,2073,764,1047,3403,513,1649,3014,766,521,2599,115,3060,790,1102,2598,8,1350,2302,431,362,2603,1842,235,1637,1353,1650,885,358,1644,1798,1552,2089,1101,928,1887,3245,2065,2805,1735,905,3353,1155,3267,251,2064,1845,887,3,2298,3455,1364,1486,434,1072,2715,1590,782,3118,1035,1643,1568,2732,3121,681,881,464,2713,899,1607,1928,2703,2916,166,3120,3127,3126,2709,1581,3034,3029,3142,3207,1435,1234,3179,1791,146,3130,2082,3133,3251,1448,1952,1638,3063,2297,66,1470,503,2627,3406,1487,2727,1474,1433,692,1434,84,3247,1988,3269,1407,1640,3230,2076,3155,3032,2109,1806,1472,1775,2067,435,1800,1516,1334,1231,1733,3273,1582,2803,3115,3185,1023,2405,1460,1149,315,1468,1538,1483,1595,3116,1444,1984,3201,2781,1066,3252,1635,2963,1150,1481,1772,1378,1641,1596,2625,2051,2274,1647,1885,922,3204,3223,1634,2070,1653,935,1161,413,131,2049,1802,2784,2077,873,130,437,975,796,2843,408,3306,3068,2028,2631,3199,1461,3164,3411,2404,3195,1108,3225,1770,1412,2058,415,2268,981,3047,1915,277,1264,2094,1451,2632,916,1518,1777,2130,1041,409,240,3157,3248,2303,90,2010,1125,1980,3181,3046,152,3024,1440,1506,1953,1941,532,767,3261,562,1981,793,2725,3152,1754,2399,3203,1756,788,3270,1878,1029,79,418,2137,685,910,417,2706,3454,520,538,3190,1371,2751,1420,2677,3239,101,3182,137,669,2310,3221,2731,3208,80,414,1542,1774,2683,64,754,1055,527,1778,1801,3026,1357,3258,1803,956,3196,2600,2307,867,3404,1428,3151,976,1767,2730,2678,2700,1529,2009,1955,3186,86,1940,2079,3217,2724,1605,3061,2712,3020,446,2194,1569,1060,416,977,964,757,516,281,2306,2684,71,1664,950,2335,3229,2275,524,2626,3170,855,1210,2143,411,775,1017,1645,58,3177,1327,1549,1530,2317,2088,1349,794,1639,1025,2628,1532,7,1790,1865,556,1126,1054,1454,2363,2132,321,2745,2797,1345,2364,688,1929,443,1416,1690,1805,2579,2319,3017,3222,1217,1876,1356,439,904,3187,241,3236,3119,941,1476,412,1739,3021,3148,3200,763,3265,1329,162,3263,3244,1909,1804,3231,3173,363,1393,140,2269,2411,875,944,1467,697,898,3064,2483,410,433,3194,3165,3016,509,3407,2292,1170,440,2473,3243,2707,1646,1587,892,2606,869,1931,447,1216,3253,1377,85,2037,1189,1322,3266,3214,2050,1482,1107,2337,2475,2787,1514,3083,829,1352,1235,3426,59,3237,1933,35,1787,1422,2127,3226,2278,1886,3281,2428,1648,2629,1105,1863,1667,1080,760,1763,2427,761,856,3117,2445,1651,874,3234,3143,2311,3259,2188,445,3111,3197,2634,1358,2648,3107,3192,880,2647,2271,161,2633,2614,1545,70,1011,1734,682,1786,1912,1985,1825,2175,3146,920,505,550,1989,250,963,94,1056,2063,2623,480,1365,2524,1553,2192,671,493,547,3175,817,3218,868,522,2021,2747,352,3039,886,405,2348,3256,938,174,2294,2457,2027,3025,479,2620,2708,474,850,2334,2078,2670,802,242,442,1762,2610,2179,1079,530,444,1195,2145,3168,1092,1822,91,2580,1178,470,2485,2320,2591,1965,2098,1792,477,1372,2701,2038,2313,3178,3174,2166,1619,1903,40,1727,1869,544,3250,506,2296,2381,448,1205,1732,168,2189,1449,475,3018,1168,3321,3453,1872,851,2624,800,1789,3150,1211,3449,3272,2430,1465,39,1897,53,243,2592,1191,818,3215,541,2295,3219,769,1037,2172,1019,2416,1910,870,1633,2113,471,1479,3069,2375,2120,2146,2121,2286,1621,1987,2108,1588,1546,1807,3241,209,223,1026,3212,811,2196,2015,2551,226,3031,3171,1784,2329,2111,2891,3412,2176,962,1630,134,3424,2128,3260,2741,3081,1543,1114,476,3268,876,3238,2442,285,2195,686,2676,2507,953,888,860,3246,832,1031,605,3209,1793,2366,2672,3323,3242,1075,2410,3451,1013,3036,2406,2552,263,1726,1844,2616,3162,983,2401,472,683,812,1049,914,199,1068,779,1986,1589,1111,280,2185,1014,3023,244,253,1736,673,2316,2407,932,1904,1098,104,689,1457,1119,2003,3240,773,2452,959,1868,3176,1632,758,2795,2630,2721,1321,3149,2161,755,1373,2617,3094,27,3264,1218,351,2618,1048,1671,2611,2718,3262,1834,1085,2440,2177,2471,3022,1005,2193,1629,2513,1036,3015,173,1012,2608,2506,2615,2153,806,2682,478,864,155,861,2716,838,1490,2753,441,1642,836,3172,1769,340,2384,308,3437,1888,845,1841,204,2779,3193,1042,151,1043,814,1061,1967,2144,1880,2811,1608,2736,1654,1104,1943,3027,854,1968,185,1511,2593,1611,969,2429,2129,2043,902,1873,3184,2594,1821,112,1877,1073,23,1024,202,840,2702,3450,333,24,229,2096,2613,3106,63,2163,2004,826,3302,641,1730,3180,1086,3220,2008,595,1113,2612,2232,926,1974,329,1020,566,1879,25,1109,820,2149,1442,635,2759,2276,1837,28,2738,599,95,2512,3415,2191,2518,1922,2835,2735,3072,2187,2655,34,2328,2141,2135,57,2607,211,2662,647,2022,380,1742,1997,2663,3153,808,2171,1559,2454,2570,1624,2138,1555,611,2448,841,2387,1120,1776,2097,3013,1027,1018,1920,1081,1741,862,1227,2340,982,2530,3093,1033,1833,2342,2619,1843,2376,1099,1960,309,2284,844,1991,2006,2398,1087,2102,884,1074,2290,1744,970,1729,286,256,629,1093,2681,3037,2115,623,2622,3108,2080,1964,968,2104,1517,1898,1824,695,2367,2099,2550,3158,205,908,3436,2186,2343,314,665,1531,833,842,327,1963,2763,1508,1881,1785,2796,1507,2533,2548,2661,659,1045,1062,2110,2432,1826,896,473,342,1882,2675,1554,1548,3405,1175,2147,3062,374,2557,3154,719,2016,853,617,2644,2183,848,287,1051,839,2750,1771,653,2698,1129,26,2572,701,3040,1977,2522,1998,847,1971,355,3112,2333,2674,385,2344,2346,3361,518,3058,678,2643,217,317,74,2519,1050,221,1832,2052,128,1273,1057,1192,2345,22,3224,3198,337,960,1317,2413,2451,1846,3078,1934,272,259,2331,2281,2446,517,304,67,3216,3421,1421,2154,2469,2395,2668,1890,18,2180,60,2486,328,2563,2173,3028,274,1456,1926,2526,1030,2170,797,912,1906,1117,3052,2164,2502,878,704,2160,2122,29,1870,1616,2660,1781,2754,2420,254,2933,16,2685,1917,2664,3202,2190,1779,2679,890,301,2030,3297,216,2714,2807,536,1853,2462,827,846,1463,1617,2046,82,335,381,593,2182,1618,2495,2283,1544,1177,1862,2461,2566,1303,1623,596,1969,971,258,2459,303,2412,1318,2509,275,2667,1816,2370,1783,882,265,553,785,2300,2100,2351,297,1039,311,2318,2733,3228,559,1069,1260,2181,3161,3122,1226,1932,1622,359,2719,1032,2309,2280,1796,2332,1752,2378,1930,1458,2666,1855,1809,2279,1894,2515,1946,3305,2158,2907,2468,2641,319,821,302,1443,2155,2744,2545,2569,1038,1836,2925,2124,1900,3249,2312,2439,17,347,2665,2379,208,2771,2523,2305,1259,88,2746,339,2287,1274,1203,3271,225,2505,295,284,2516,382,929,292,2206,288,75,1973,3206,54,1631,1956,2349,1731,296,214,2931,3110,1970,2418,584,2464,1883,341,198,1860,310,1871,2755,2119,791,1627,2347,294,3065,1740,1927,3408,3427,3041,565,2748,2460,2093,3124,2788,1615,3084,2585,1996,2134,2546,2423,2621,2414,72,1628,232,2474,2002,1819,572,1296,2369,2717,1612,2455,2532,2536,3227,1944,1795,2272,1015,1857,1939,307,2739,2649,594,1828,1891,222,299,334,2539,291,289,2819,980,809,2510,834,320,336,2531,2595,2568,2157,331,1818,2431,2527,2466,147,300,3420,3113,3448,548,1583,1975,2604,1758,1797,61,3038,2971,3033,2140,298,2060,576,1021,2909,2397,1462,3105,312,1196,323,859,1613,1006,2581,3413,3070,273,3418,684,1935,1856,1990,1994,2586,1737,539,1814,2640,3077,228,1115,3075,672,2609,974,290,271,2472,1379,2390,2501,2487,2044,1246,2435,2103,2456,206,360,2184,267,2054,2443,1464,3030,2923,1127,2642,135,3183,2118,2321,2588,191,2912,2041,803,2415,2503,2529,324,1937,154,1848,1745,2400,2500,2282,164,3414,2169,2650,3071,1838,3417,261,2915,1992,2000,2752,467,3073,1938,3074,2358,2669,3086,2436,15,2558,2059,3429,2538,269,305,348,2322,1884,68,2438,306,207,2314,2042,3042,2360,1123,2541,1976,293,2525,3315,2389,3337,1859,2636,569,338,3416,2139,278,188,1212,1896,1919,1044,1895,76,3019,716,2434,2419,270,2517,2528,2605,551,2433,1831,1945,583,3313,972,2377,2408,2924,1867,2437,330,857,1908,2126,2582,1916,2388,2497,2639,2159,1221,2368,1830,1924,3100,2125,268,3443,1866,2637,316,1535,2359,1923,2534,2542,1788,2939,2421,2491,3166,2024,2488,872,2326,581,1331,1063,2386,2521,2350,2444,2391,828,2151,3210,1921,2101,815,345,1861,260,2899,19,2704,2576,2480,2425,2402,1854,1343,1849,2361,2117,1504,2494,3053,2463,2036,2424,2544,1907,3088,2341,3299,1297,2273,2573,2026,4,2470,2426,2352,318,2646,1889,83,1224,2492,1766,3087,1913,2578,1681,1813,264,266,1232,1560,588,2288,2293,2385,279,894,3430,2564,2560,326,2596,2601,2133,1780,3431,141,2031,1738,2602,3067,563,31,589,1799,219,189,343,2493,1914,2692,1502,2383,2498,1812,1680,3410,2053,1892,2365,2449,1918,2671,1851,2590,2165,545,1636,349,2737,2726,3423,780,367,110,1925,2812,1957,1949,2481,3080,332,2394,564,3232,73,213,1682,171,2039,2802,2167,2450,552,2673,2270,2651,3050,220,3329,1700,558,2372,1498,3057,582,666,1850,1893,2339,2728,2482,1614,2680,3054,2537,1746,1162,2304,196,1864,3428,3085,2710,965,1561,3076,2489,3254,2653,2018,3419,2499,2535,2508,1847,2556,1541,3442,2330,2514,354,2543,2589,325,918,2547,3314,2562,587,1999,3099,44,2511,2722,1008,954,2338,2324,111,2520,3097,1336,2657,3447,3104,2357,195,3101,2380,1901,2686,3440,2040,1817,2940,1961,2327,2504,2816,2062,3144,2114,3320,3444,2638,322,432,350,2575,2336,1728,1198,3333,1220,2943,2583,1979,2150,1121,2720,2156,2467,2465,2540,2152,2393,2396,1436,679,822,2559,2168,2554,2740,1499,3043,346,2584,1827,924,1858,2887,1811,3056,2699,2371,2353,3330,3446,1875,2947,2565,512,2362,364,2356,113,1840,986,201,3089,792,93,2162,2930,1942,3045,2935,69,143,2453,1751,149,2035,1190,2315,2174,3103,2587,1902,2555,1954,2131,3432,1835,119,810,2116,3090,3092,1983,3433,3425,3035,3082,3435,1199,2447,2458,1958,2659,618,2654,2798,3445,612,3102,3055,36,365,6,1951,233,2323,2392,2949,858,2409,3325,3339,1959,3048,1340,624,2821,2828,3095,1679,3438,798,165,3422,56,2048,2553,1672,2246,2123,2247,2248,570,2005,2574,2249,2243,3123,966,2926,123,3079,1659,32,816,948,1658,2944,2242,900,2197,2198,2199,2200,2201,2202,2203,2204,2218,906,1701,1625,1657,1683,1655,1656,1678,2213,117,2382,1677,2252,2253,2254,1684,2225,2226,2228,2229,2231,2227,2230,2212,2250,2251,2263,1703,2571,2217,2264,2265,2266,2267,2262,55,2235,2236,2237,2238,2261,1708,77,89,92,116,122,230,231,248,276,282,356,2239,1685,2234,2355,2240,1773,2210,3331,2244,2211,2233,852,1714,1713,2941,2214,2215,2216,2813,1715,2245,1709,2178,1710,1711,2951,1712,249,2223,1716,2222,2221,2220,2219,2255,2224,1717,1718,3341,1673,2241,2256,1533,1247,1276,930,2422,2047,2257,1720,2561,1702,2823,1606,2209,1128,2207,1691,1722,1723,1724,1725,2479,2208,740,1698,1694,1695,1696,1697,2258,2259,2260,1660,1662,3334,1693,1721,1719,728,1689,1661,2308,1676,1519,984,2441,2696,1687,1707,1692,1688,1699,762,2285,344,3044,3147,3235,1626,1663,1706,2705,3343,1704,2374,1686,1950,2815,105,2729,2033,3049,756,255,2577,2496,3189,49,3096,3439,2723,1705,3205,2490,2477,2953,3211,2095,528,774,2484,2023,2549,129,1491,2822,1197,3340,2824,3255,3091,3233,2478,37,2645,804,2950,3434,2952,3342,768,3344,1122,1620,2635,3289,2693,2742,257,2825,30,3167,3188,2690,2325,153,2373,1668,159,2658,2025,2567,2476,1675,1852,3441,3098,690,2743,1993,2954,2417,1666,1820,1794,1808,2354,1947,2007,2711,2205,752,3051,2656,1670,1610,2929,2652,1669,1823,2749,3145,2045,62,2403,1009,2014,45,46,1911,2034,786,2801,546,2032,2013,2012,1966,1905,50,2011,2001,3316,1899,1225,2019,1962,1223,48,1995,1674,3346,3277,866,1665,2020,38,1743,20,1815,1972,1978,3319,41,2956,2826,47,1829,2017,43,1782,1810,52]
bad_iteration_list = []
elif dataset_name == "bimodal_full_with_perc_midi": # midi only
csv_normal = "full_bimodal_final_with_perc_midi_features.csv"
csv_annots = "full_bimodal_annotations.csv"
top_features = [1152,1755,525,1747,1151,2687,1166,1750,2694,2688,945,1497,1441,1089,927,507,1077,10,133,2691,2055,2091,2092,1475,2105,2106,13,1765,946,3163,2697,772,529,1059,909,1065,1768,407,1071,1537,1489,136,406,1455,361,1090,526,246,3160,2689,1603,1574,917,923,1753,3159,21,1053,2075,1550,2068,1154,1096,1604,109,2085,2086,958,247,2061,1952,2074,1078,2069,911,778,2695,1539,1748,2597,1652,2087,9,1469,776,1594,770,252,1940,929,3156,357,1084,905,404,236,1101,1102,2056,1609,1194,497,1072,431,2598,121,1481,891,2066,3403,1761,1726,3066,3060,2090,1764,2805,2083,1839,3409,1792,3029,251,1772,899,3207,2081,235,784,1350,2289,2405,503,3455,1757,2089,893,1982,2072,3118,879,764,1649,753,438,469,1637,1760,1650,897,3142,3014,521,3204,115,8,885,1863,1485,2299,3126,3120,3127,2073,11,315,3130,3133,2057,3032,935,1035,2136,3251,3034,1047,3121,1153,3230,669,2064,1568,1791,3306,1406,2084,2603,2916,1447,2082,2277,1643,513,3185,3353,782,2076,3267,3273,146,1066,1419,1607,2142,2302,2297,1460,3269,1909,766,2107,2268,3247,468,1108,1448,3252,3245,881,790,3454,681,1928,1590,1552,131,2071,2065,1472,2963,1874,928,1798,3179,84,2599,3195,362,3261,3151,2298,2803,3115,1407,3248,1800,66,1644,3164,3201,2781,1806,1538,2404,3239,1155,3199,1470,509,1427,358,466,1353,3223,3270,1378,1581,3116,887,3217,3182,465,1988,2703,448,2713,1506,2334,2715,1845,2070,1965,1364,2727,1055,2709,956,3046,1023,1802,3068,922,1842,3411,1790,1953,1518,1461,1149,1955,3026,3221,1638,3181,1640,1857,873,3208,3,1474,3229,166,2631,1195,2067,1897,1887,1767,2627,1641,1107,1393,941,1231,1516,2010,3225,916,1041,3203,1647,1161,692,3173,1468,3063,1582,1029,3157,3406,3196,1486,1984,464,2445,1150,277,413,2028,1483,1635,964,80,152,2077,3186,1234,1487,2600,2625,1596,1775,1821,2274,960,1189,1653,1433,3155,2364,3020,2088,3226,71,447,1862,975,363,1941,950,3244,1060,417,1634,1639,3190,2732,418,3266,796,2784,910,2194,562,281,3231,3200,2399,2843,3024,2271,434,1787,3021,2009,1859,101,240,2712,437,1444,1915,1777,963,2094,3023,1428,415,2303,3165,1900,954,435,3222,2051,2797,1865,1756,2335,3265,1770,3194,1789,3177,2058,90,520,2363,1451,3017,3187,794,767,137,79,1435,2079,1885,532,1422,1729,1605,3237,981,1549,1449,1646,3253,1754,3064,1125,321,1971,3407,527,2269,2411,1543,1633,1651,1017,2049,86,2759,3143,1080,1943,2628,1377,1349,3170,3243,3047,2632,445,1025,1805,3404,1264,1371,1664,1967,64,2188,3178,1912,2109,2787,3281,556,1114,2317,2319,788,1803,2683,1412,1334,3061,2677,408,3152,1774,414,2306,1645,685,2670,1434,3218,1508,3016,1420,977,58,1168,2451,2672,3214,416,2452,1903,976,3259,1834,2166,2706,3258,130,2307,2620,2724,2310,2407,1981,2376,1357,757,2311,1530,1876,2507,1507,1878,3424,3081,875,1595,1822,1532,3234,538,3451,1529,446,410,3215,2626,1980,1727,1869,1735,1345,2751,2130,476,2606,2078,522,944,1569,688,793,439,2731,763,1906,3146,2725,2172,140,2337,1824,1210,2730,85,3236,2137,962,1037,1973,1793,3426,2292,2454,1733,2108,3083,2483,7,2700,409,241,3148,3117,480,3321,3453,1216,1898,1352,2513,1933,412,867,775,3119,2442,2406,1739,1825,904,1440,2050,1502,898,443,3111,2348,1542,1068,3018,3168,479,223,1079,1690,3209,2329,1092,493,1126,3039,2747,2512,411,2313,1667,2132,1801,70,2634,1910,1804,1985,2648,1191,3174,938,2678,1467,869,2647,874,2633,1904,2027,1970,2143,1217,1356,2145,1778,1544,1514,34,1019,1931,1098,2610,892,3256,1929,2684,2099,1868,2401,477,3212,1795,1476,1763,2192,2624,3036,2580,474,2629,1546,1836,505,754,2614,1630,3192,440,1105,3108,1833,1119,2615,918,2485,1056,1113,1964,1054,3171,2524,2278,254,2579,1864,2189,1235,2551,2617,1886,882,516,920,1587,3262,855,3323,3263,352,2021,1416,2063,2146,1372,478,3025,1031,2275,1807,2316,682,3450,524,3197,475,2366,3250,761,697,2616,2440,2618,3240,1482,3022,2891,244,2623,442,1465,285,1629,3150,1011,1358,1026,2515,1327,3031,2176,1991,2006,673,29,3107,2294,1730,199,217,1049,59,1211,308,174,253,161,3149,2795,1986,2745,1987,1075,2506,880,547,1648,2707,1036,2708,2552,211,2015,229,2037,2381,3297,932,3015,1111,209,162,2080,1621,760,894,2296,2570,2410,506,1974,2331,3184,1322,25,1061,444,806,2193,94,1619,2127,1968,802,2622,2457,1479,2611,470,2473,671,1454,2179,550,1024,471,1545,91,1624,1734,817,1120,314,2741,812,27,1771,3272,2375,1073,1013,1373,2550,3069,1205,35,1989,53,850,968,280,851,818,1786,2448,2641,1856,1014,1776,800,1170,2475,333,2185,1192,3172,861,2619,1178,2003,3175,3302,1642,755,2286,1005,832,1048,256,2378,2630,773,1365,544,969,405,1632,758,2427,2320,888,2111,2175,1837,168,3412,3219,811,1457,2295,829,1099,1085,876,243,1608,3241,886,1442,1490,856,3162,959,2177,40,2644,948,1329,2612,845,605,39,3072,3415,1997,226,840,2161,104,1218,900,2102,2796,970,1511,2736,340,814,2008,953,2643,1888,1086,1872,983,1109,1671,3238,3013,779,1104,3093,683,1922,204,3436,1588,906,2149,914,134,309,472,2416,2428,641,826,868,2701,2430,155,2716,769,838,808,2384,173,2098,3449,1548,250,2342,1042,2038,2144,3260,870,2429,1654,1589,2533,2548,2907,2120,659,1769,2191,1074,1832,530,2121,2518,2043,820,151,63,3027,2113,1879,242,2344,221,1012,980,1043,2702,780,2367,2593,864,686,1920,1421,2663,2662,1553,2340,647,327,2655,3176,2721,1762,2676,205,982,2195,287,2446,1700,2566,2180,1093,2502,689,3228,433,24,364,2718,1784,2395,1736,3078,2591,2147,2022,2138,26,2674,853,884,3112,2519,1873,3421,1843,1087,2608,1881,2413,2300,3094,1018,860,2613,2104,3264,839,2004,926,2750,2129,1175,912,16,1732,1027,202,2640,2682,541,2153,2196,2343,1956,3242,2607,3037,2714,335,844,2052,2096,304,303,1030,3437,1177,3058,2539,854,3193,2128,1826,3268,112,2345,833,1742,611,1998,2232,2592,2572,635,924,599,2835,2471,1020,2171,95,2093,329,3153,342,2763,380,1960,653,2333,2754,2738,1227,902,2183,3246,2594,1846,617,862,2728,846,896,3361,2569,1531,23,2272,288,3220,665,345,566,1877,2346,2639,1081,1456,2495,274,2387,629,2163,785,57,1979,2276,2698,441,2328,2530,1273,1844,2909,2692,2332,2664,3198,1882,2110,2370,2187,593,2649,1969,890,317,1303,2414,848,2398,328,623,1317,1033,1045,302,1611,2779,1032,1963,301,3052,3040,1930,2141,3180,374,836,595,2415,1117,2931,3110,2016,1744,842,1779,3216,1062,473,2568,18,3158,2509,1555,1618,2115,1226,1976,1741,286,1752,232,2811,2665,2532,2536,1977,2135,341,2531,216,1917,185,2522,517,320,141,3206,28,695,295,2290,2283,2771,339,351,2397,2527,821,1038,2412,553,847,1946,2420,2186,2735,272,1841,310,2097,2933,1274,2190,294,1894,1745,2753,3408,1458,2681,2899,263,1039,596,2305,3065,2426,1890,1884,2281,1443,82,2557,1880,2347,2284,1321,1463,1050,3028,54,2046,1954,2182,536,1871,2279,971,518,1069,2755,1260,1883,1731,292,1129,297,2119,3416,704,385,2124,1870,2280,2675,347,1975,2685,2661,337,2312,1737,2739,2528,3122,1517,859,827,2538,2668,2100,60,307,1996,2287,2585,147,2173,3062,908,1583,3405,1838,2666,3073,1559,2309,2181,1057,3417,1785,2523,1617,2462,67,2744,719,572,797,2679,2563,1992,2000,214,3074,128,2318,2669,2160,2719,1015,355,1296,311,878,2030,2351,2505,4,2439,2101,300,2516,1990,1994,1934,2390,3210,2002,701,1318,2748,299,2604,834,3305,1628,22,2546,1758,76,974,261,2494,2322,319,2752,334,324,3019,2526,1942,2609,2379,1535,228,559,3154,841,1855,1006,336,2746,72,1923,2425,2423,791,2349,3106,2971,2358,293,2372,1796,289,1957,2545,3124,857,2486,74,296,2432,2660,1063,2464,1021,2501,587,1616,1926,298,17,1246,2733,2497,88,1203,3448,2529,259,3030,1259,3161,1816,1379,2385,1554,306,2887,2273,1224,1853,2184,1891,3105,2642,1938,2155,3038,2704,1196,312,2474,1051,164,275,1232,3070,2912,2419,2667,2807,1462,2024,2361,2525,2369,2459,3202,2154,3413,1740,278,2321,2621,2386,2304,1860,1932,1939,2717,584,678,1464,381,803,1818,1781,1623,3099,2394,1783,672,2408,2206,225,189,1044,2389,2118,1499,594,1123,1866,3249,3086,2588,3429,290,3442,809,1221,2418,1828,2438,291,2469,208,2042,330,3271,1622,348,2650,258,2169,1927,3183,3205,2517,2170,2510,2388,2424,284,1809,2151,1212,828,2565,2547,271,305,3420,539,815,1919,1115,2651,1819,3077,338,1615,343,3224,1849,3166,2500,2060,2041,15,2125,583,2044,2368,2031,2521,2788,2045,1498,2421,1847,1127,3299,3289,1198,467,198,2352,2646,2103,1944,1889,2470,1746,3033,1627,2054,2122,2460,2059,930,1949,1831,2673,1631,382,1935,666,2461,323,1780,359,2383,265,1682,1797,2466,2819,558,1162,2158,1799,2282,3076,3419,2540,273,1916,2117,135,2039,2359,264,1937,2915,3329,1867,1814,1945,576,2455,222,2270,2653,1613,2436,2503,2726,3418,360,2487,270,1895,3337,2391,1848,3075,588,2026,2123,2360,73,2400,2586,2558,551,3232,2564,2032,331,2047,2449,2637,3427,2541,3227,2450,3084,1681,1220,684,191,2468,349,2535,2164,2150,563,2636,2671,2537,2458,3113,2377,2939,432,2534,2542,1541,206,3041,1908,2126,548,2053,2573,2431,2940,2036,267,1817,2114,872,1896,1738,2393,589,2722,266,269,2576,1612,2812,972,318,2589,2605,1999,1620,268,2396,2582,1921,1861,279,3085,1297,171,3428,986,220,154,2062,1907,2710,2556,3254,2402,1680,325,2511,2288,2925,2140,2740,2554,569,19,3315,2134,512,2544,2040,1918,3067,2336,111,3410,2472,2314,2482,110,1436,2584,1914,61,2159,2575,2018,2293,316,618,1190,2435,2828,1331,1854,2581,2508,2326,2465,3087,2488,354,3414,2433,2380,2139,75,3071,3430,792,1625,1830,1343,2327,260,2168,2339,1688,2162,2602,2167,2324,2365,545,1892,2437,1687,3104,1679,350,1686,612,2341,219,2116,1924,3057,1561,2157,1560,3447,188,3144,565,3330,1008,1685,2453,716,119,1902,2463,159,2357,2555,2498,3100,6,1951,2514,2578,2447,346,3443,2131,2356,1689,3053,1504,965,822,1121,2178,149,2456,1901,2156,581,1911,2373,2583,3425,2338,3035,3082,2350,1199,1913,1961,1893,2520,2499,564,2422,2802,1812,367,2315,2574,2152,1788,2947,68,36,2371,624,2699,2174,1614,552,143,83,69,1678,113,2657,2165,2590,852,93,3339,195,2723,1247,1827,1983,1950,1851,679,1533,810,2821,2374,2242,2409,2353,984,2323,2729,2595,2434,1684,2553,2737,2587,365,1340,2596,3042,56,196,233,2601,2023,3101,322,3054,2443,2656,3080,3444,326,207,1811,213,2308,1728,2949,2048,1808,2680,2696,2496,1858,2491,2943,1820,3423,786,1751,332,2403,3097,2325,3277,2392,123,570,3440,2543,1660,2930,1661,2213,3055,3102,2567,3445,2212,1676,2211,2204,2203,2210,2224,858,1925,2202,2231,2201,2223,966,2200,2218,2230,2222,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,165,2645,1875,2571,2549,2207,2261,2262,2263,2264,2265,2266,2267,728,117,2209,2208,2249,1128,1708,1713,55,77,89,92,116,122,230,231,248,276,282,356,1773,2248,2247,2239,2240,2254,2246,1691,1766,2253,1852,201,3422,249,3079,2561,2490,1709,1710,1714,2252,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1722,1723,1724,1725,2238,1721,2251,2250,2233,2362,2235,2236,2234,2237,3088,2255,2256,2257,2258,2259,2260,2467,1662,816,1606,2133,2953,1519,1701,2493,1677,2822,2244,2245,3189,2444,582,2484,129,2941,3331,2813,2241,2816,2354,2950,1719,49,2243,105,1276,2924,740,2441,3325,2559,2798,3343,3340,1813,2478,1704,2951,1683,2481,1720,3313,2686,2035,3233,3341,3255,2823,255,3441,3431,3050,3098,1958,1702,690,1703,1659,2205,1699,3188,3167,2492,1993,3320,2654,1959,3211,2825,798,2635,3056,2824,2504,2952,3342,3048,3049,20,2095,3095,3438,3446,3103,756,3439,3096,2693,866,37,3314,774,1610,1336,2954,3051,2801,804,2929,528,2005,2935,2489,1835,768,752,1947,3089,2330,2658,2577,3334,2638,1705,2923,1223,1905,2815,2034,1658,1491,2926,1707,3043,3333,2033,1850,546,2285,2705,1663,3090,1122,3432,3433,2355,3145,2659,153,3045,1706,762,2013,344,44,1197,2690,2014,2382,3435,3092,1225,2480,1657,2476,1670,2652,1665,2560,2742,2944,2743,1669,1666,1668,1656,2012,257,2720,3123,31,1636,1655,1995,2711,1899,2011,62,3344,1794,1675,2001,1823,3319,3044,1840,2562,3346,3434,3091,2479,1009,30,2956,2019,2025,2417,32,3316,2749,48,2826,47,2477,43,1962,38,1815,41,2020,1626,50,1672,1972,1978,1674,1673,46,2007,1782,1966,2017,1743,45,1810,1829,52]
bad_iteration_list = []
elif dataset_name == "taffc_with_perc_midi":
csv_normal = "taffc_final_with_perc_midi_features.csv"
csv_annots = "taffc_annotations.csv"
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_with_perc_midi": # midi only
csv_normal = "balanced_bimodal_final_with_perc_midi_features.csv"
csv_annots = "balanced_bimodal_annotations.csv"
top_features = [1152,1755,525,1747,1166,1151,2687,2694,2688,1750,133,507,2691,945,361,2091,2092,2105,10,1497,2106,927,1441,2697,1089,1077,246,2055,21,13,3163,772,1537,526,1603,136,407,1765,529,1475,946,1489,909,247,1071,2689,406,1768,1154,3159,3160,1455,1574,1065,1059,1604,1550,1753,109,1726,923,252,2061,3403,3060,9,2597,1952,2695,917,1761,1090,1764,1792,1481,778,1539,404,929,1053,1748,2085,1469,2086,770,1609,497,2056,911,3156,3455,1940,2405,2598,2289,1194,1350,1863,2068,3118,121,958,1096,2299,3247,235,2075,1652,3269,357,2069,3066,2074,251,1594,753,3409,1078,2404,1101,905,2087,236,438,776,2302,503,431,3199,1757,468,115,1153,1448,3126,3120,3127,2090,2805,3029,2268,2603,469,2298,1760,84,1102,3207,891,3142,1084,1447,1460,3130,3133,513,1772,3034,764,784,2297,1419,1607,879,1485,2066,2083,521,3014,3230,935,2089,8,3032,1568,2963,3251,146,11,1839,3252,3181,66,3204,1637,3196,1072,3221,3454,2136,2081,681,3267,131,782,3273,3121,3353,899,2334,2072,3201,893,3245,3185,1472,790,2277,766,3244,1909,1821,1406,1857,2057,2715,315,3248,897,2713,885,2916,1407,1982,2064,1378,1035,2142,2599,669,2107,1897,448,1862,1108,3164,3179,509,1364,363,1155,3266,3270,2082,3046,881,1506,466,3203,465,1581,1806,2709,1965,1590,3261,3223,1195,1474,3306,3225,3182,2703,2803,3115,1791,3151,2445,2303,1470,362,1915,2084,1161,2627,1442,1953,358,2073,1483,80,3195,1650,1955,3157,3265,1189,1023,2364,2065,3026,1047,3177,2076,1552,3229,1461,1449,2727,3155,941,3116,2271,2600,1538,71,3068,3063,2625,254,152,3020,3411,2071,3239,447,1777,3170,3178,1874,887,3406,1865,1393,3200,928,1729,2781,2732,464,1107,3208,1353,1596,1859,1231,1643,2399,1649,1066,956,3,2363,2631,527,1928,2311,1427,3243,1971,58,1900,2306,101,1468,2070,975,2317,1775,3222,796,3186,1800,1887,1868,413,1582,692,1055,434,3226,3217,950,3231,1770,1798,1518,86,1790,873,2335,3218,2797,2406,3237,3281,3021,3017,415,3064,2784,3407,2672,1941,3258,1234,79,960,1334,1433,3024,1516,2194,1605,2307,2731,2483,277,964,794,3165,1845,2051,2730,435,1487,1149,2310,2269,2411,1802,3143,417,1967,64,2166,1444,3190,2712,3173,977,2751,2010,240,1787,2188,2319,3259,2274,1644,1168,1774,3023,3152,767,981,1041,1543,281,1150,166,2130,2843,922,3148,2759,1507,2407,963,2683,137,1371,1486,2632,1988,3253,1822,3236,2451,1635,2442,1756,437,3016,938,2094,3194,2787,439,3214,1727,1869,520,1125,1634,2109,2677,418,1029,1970,2678,1864,90,1789,321,2108,1824,2684,3174,954,1595,1349,445,1903,1357,1842,1639,1933,1435,1754,562,3404,1943,2028,2145,1793,1638,976,1420,916,410,2485,3081,532,2077,3061,3424,1803,2725,130,2146,1508,1428,1422,1885,3187,2088,1898,2067,2132,409,1114,1664,2620,2009,757,2628,446,414,1377,3234,1646,685,34,2172,688,2337,2670,1080,1549,352,1767,2376,3018,1624,3192,3146,2452,1973,70,2313,3262,408,1092,1795,1805,1931,1906,2626,2049,1964,2706,788,2292,1833,516,3047,1451,416,140,2275,241,2440,2724,1834,1502,1060,1098,2513,1653,1647,1358,1546,1372,2579,2606,2375,2099,443,522,1025,2058,1912,1530,1434,2401,3119,3240,1651,944,1984,538,1544,3168,1542,1640,2634,1641,2512,2648,3036,3215,1490,1126,3209,2329,2457,556,1412,2647,910,2633,2700,2747,1264,1630,962,2316,2078,440,505,2615,2580,3263,2454,2473,1017,2507,855,412,1476,3149,1416,875,3117,7,1667,85,2348,1735,1633,1210,3039,29,1068,1645,244,1216,1119,2891,869,476,920,2149,3256,411,3321,3453,1352,3197,1482,1904,1191,1113,2278,3171,3025,2745,1514,2366,867,763,1836,3212,3069,898,480,1856,2079,932,775,2294,3426,754,1733,793,1322,968,3107,1529,2475,2410,223,3083,2619,479,1825,1235,1532,1878,1569,2629,3412,697,1981,162,2137,477,59,1778,1356,1327,3031,442,758,2795,806,2524,2127,2050,285,506,1467,1345,2617,1876,1049,2644,1929,1910,2614,812,2515,211,1205,882,1440,892,3450,1690,1465,2111,2143,217,1019,3175,243,2176,35,253,1629,1217,874,1479,199,1980,91,2610,3022,1024,1739,894,1178,880,3302,802,1619,2320,209,1037,1026,682,2080,524,1079,1014,2622,2707,161,39,2641,2037,1211,478,851,1621,444,3250,1056,673,474,761,1192,3451,405,1105,671,1801,229,3015,845,1011,1886,1365,1763,2741,2295,2381,18,3150,983,2147,1545,829,493,3241,1120,2796,817,3111,2378,760,1804,856,2120,1991,2006,1061,1005,1329,2113,40,1771,2296,2506,2121,861,818,1922,2518,1511,1985,2616,755,1548,904,3172,970,2429,2708,2027,3184,3219,811,1730,27,471,2471,2189,1104,308,1085,948,918,3238,1073,2448,1373,1013,1036,689,2618,686,314,2098,475,3272,544,530,840,1786,1086,550,174,2395,2427,25,2624,333,134,800,3013,280,969,104,914,472,850,2331,53,1075,2572,2286,1608,1031,1587,3297,3436,23,864,2179,3093,547,868,2662,2655,2714,780,2663,870,3108,2300,2623,2192,1454,1776,3027,1762,3449,1421,2674,3323,959,1888,1807,641,2171,773,1553,832,2551,3260,683,2755,256,2552,2701,814,888,605,1456,2593,1870,1611,953,1175,1671,2177,1170,2161,2038,155,2128,16,1920,94,151,2175,2193,364,820,2611,853,2607,2716,1987,3264,3176,1074,1588,1177,2639,982,3415,242,1109,826,3162,2021,24,1218,1054,3072,205,263,2428,287,779,2416,173,884,95,63,2343,1956,902,3242,965,838,846,2753,470,1012,2608,2384,1111,2640,2063,2015,2129,2591,168,2570,808,1986,3228,876,860,309,2718,2430,340,2342,2702,2519,327,2613,2750,3094,250,2835,2003,441,1099,2185,2008,3193,2232,896,2305,2413,1589,1042,886,2736,2345,1741,1974,3078,839,2907,1457,1837,1555,854,1872,647,1917,2102,3437,1736,1048,2153,2630,2283,844,3268,695,1642,3112,3421,2096,2676,1273,1700,3058,1274,112,2550,900,1227,2097,2643,2367,204,2272,1226,659,1654,1832,2754,1648,2763,345,2397,2495,599,848,1018,2721,2344,836,221,2533,2548,1968,1732,1989,2290,2446,1260,351,433,635,769,1043,2340,2093,3361,1960,926,2333,3220,1734,202,2369,304,1779,1062,1015,1045,2332,2698,3246,226,1033,2043,380,3037,2144,342,3198,2312,2669,2642,2462,2412,2052,2163,3408,1769,833,2692,2779,1087,2679,274,2398,2612,2933,3158,3065,1871,1744,374,2664,2141,518,2728,1027,1039,924,3180,1559,2685,2196,2328,1618,1879,822,541,785,2592,2104,2135,2738,2502,339,1894,2931,3110,665,2115,1976,517,335,2346,185,704,890,2594,862,2414,303,611,1443,2566,1458,2735,3216,355,74,1930,2004,653,3206,2661,906,1997,2532,2536,2180,2124,536,28,629,2276,3153,2530,1742,1081,82,261,1117,2486,2370,1321,2138,980,2195,328,842,1963,2464,1946,834,2539,847,2183,3416,286,2682,1992,2000,2899,1784,347,1826,2439,1632,1246,1752,1583,1020,1881,2110,1855,908,1938,2771,329,22,553,2811,1954,1093,1517,841,1317,1877,827,2351,2390,3073,1818,317,3028,912,2509,2516,2909,2420,1853,1531,623,3154,288,301,2022,2387,3052,1979,2660,3122,2971,1882,2665,1890,26,337,617,859,147,272,593,2538,57,828,1030,1957,2030,971,1129,2426,320,2649,701,3106,1843,2744,2101,2494,1303,302,1816,17,1731,2525,2119,2527,1737,292,473,2041,2459,297,1050,3161,2569,2173,2309,2739,1057,2361,1318,1259,216,275,2347,3289,2415,2358,2190,2002,1021,1196,2604,1939,1919,1977,2666,284,2748,2388,2752,1069,2668,1463,2187,141,2349,2322,3019,1554,232,1379,3249,719,2284,259,2318,2279,72,2557,324,2432,360,4,1923,307,341,2546,1032,2182,1535,878,3271,595,2497,2424,3417,1841,2160,2273,3070,1758,2386,2522,1203,857,2887,2746,3413,2568,312,3124,2528,2470,295,2531,2609,1942,2425,1038,1846,1969,1927,3183,1996,2912,2154,3074,3038,559,1631,2585,572,76,1464,2621,2526,1880,258,2379,1998,2100,566,2191,198,1990,1994,2280,128,2650,2719,2646,2281,1051,299,189,1296,2321,3448,1819,3040,336,2304,2474,385,293,1935,1232,311,294,2016,2385,2046,2501,1934,1873,300,67,1224,3105,1999,278,2667,228,2436,2717,60,310,2423,2563,1884,2151,821,2383,2419,791,3305,214,1844,2372,2206,2469,271,3429,1745,2545,3086,2031,1617,974,2461,1127,1799,54,164,1975,334,803,797,2541,1063,2394,2675,2460,2181,596,359,3202,2673,2505,1848,2155,3210,2651,551,1221,348,2042,2287,1809,1944,2521,1623,289,2704,2517,1796,1462,2125,319,1926,296,1838,1628,2158,1123,1006,2523,264,2653,1627,2788,15,2352,792,298,1212,1740,1883,354,1891,381,3227,2118,666,2915,2368,1162,75,1916,2636,1613,2047,3205,208,3062,306,1498,2508,330,2408,1612,2807,1616,338,3405,2359,1615,2169,3414,225,2126,305,2060,2360,3071,2487,1860,2681,2150,2122,594,1785,1780,584,2184,290,467,1817,270,1937,3033,3166,558,1945,2537,1115,3041,2556,265,2510,3224,1781,2396,2018,2925,1797,1220,1620,88,1889,2500,2270,930,2535,1932,266,2421,809,1949,588,3099,2400,1622,2039,3329,2402,1828,2733,2373,2117,3442,2282,2565,1044,2186,3085,367,2418,3428,3030,539,2140,2558,587,684,2389,2564,2159,382,2170,2059,2819,872,2103,2534,2542,135,273,269,672,2054,2547,191,2671,2036,222,432,2605,206,343,73,972,2393,1561,2449,2589,3144,589,2431,331,2024,19,2438,2164,2540,1847,2498,2939,815,2040,3232,1866,2356,2812,2374,2940,2339,2114,2134,1297,2377,2045,291,3337,1921,267,349,2544,2828,1198,1908,2327,3042,563,1625,220,3315,1783,2458,2588,2468,2044,2450,3420,2511,2371,2554,3089,2433,2503,576,3077,3427,2391,154,2722,1895,2482,3084,1746,119,2472,583,1190,1331,1901,268,2032,2167,171,2529,1867,548,2123,61,2466,2488,3432,1861,2455,1902,1907,2553,3254,1831,1504,325,1854,111,2336,1849,716,316,260,2139,1738,110,1541,2595,2710,1436,2573,1961,1983,2338,2637,1682,2062,2380,512,1814,565,2499,1950,3104,2726,2465,2168,323,2156,1951,2341,2453,1499,318,1959,2555,3447,3057,2293,2350,3100,1560,2314,3299,2053,2324,2601,618,3443,3053,1008,2584,1121,3113,1918,2116,2288,545,1681,1896,569,1914,1680,350,2586,2602,2365,2131,2463,3330,1343,612,2315,2740,2657,279,1820,690,1993,2165,3067,3425,3035,3082,2357,1958,3419,3410,2582,2174,2026,1199,2514,678,219,2947,3076,2178,2590,1751,1614,966,3418,1913,346,2645,2574,3075,2699,195,2392,2578,1788,2403,1852,852,624,188,3087,6,2308,1679,143,2162,679,3430,1911,2576,564,2481,1827,2362,3277,2549,2447,113,810,3313,2443,3339,149,2737,3088,2323,93,36,1340,984,2409,3101,2821,1830,1924,2581,2444,3054,2353,2242,2583,3444,233,2326,365,2157,1247,2456,728,2437,3080,2729,1893,2723,1875,2152,986,1661,1925,2559,2596,2496,2422,3097,1533,1892,2520,3440,2943,3431,1678,2543,3423,2949,2575,2680,1851,2924,123,56,2205,1662,3055,3102,3445,2213,2212,1128,2211,2204,2203,2210,2224,2202,2325,2231,2201,2223,2200,2218,2230,2222,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,1766,1660,740,2250,2251,2252,2253,2254,2207,2247,2248,2249,196,552,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,117,2246,2244,249,2209,2208,1708,1713,1719,2245,55,2567,77,89,92,116,122,230,231,248,276,282,356,1773,1691,2239,2240,1709,1710,1714,2923,1689,1721,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1720,1722,1723,1724,1725,1704,2241,2355,322,1610,2238,2243,2571,207,2233,2235,2236,2234,2237,2480,1811,2930,2953,1701,159,2133,2561,1702,858,2696,2490,1703,2354,83,1519,68,752,1699,3189,2801,2941,3331,2813,3048,3049,2950,3095,3438,2587,3096,3439,3340,1685,2929,3343,344,2441,2484,49,816,3050,3314,2023,1276,2798,1677,3233,3255,1663,3188,2491,3320,3056,2951,2654,2478,581,2823,2504,3341,2435,3441,3098,2656,1707,1850,3446,3103,1659,1686,3167,2802,2825,1688,3211,1705,326,37,1706,2467,2824,2658,2952,3342,1669,2816,2330,1122,1491,1668,2048,20,2954,2095,1684,201,2492,2693,2822,2285,3045,3051,3422,2493,2926,2013,3079,1687,2001,2935,3145,1223,3043,756,2815,1670,1683,1808,3435,1658,3092,2019,1197,1905,2635,3325,786,3334,3333,3090,2434,570,546,3433,1676,774,2005,105,332,2705,2035,153,213,768,1947,2638,866,44,2011,798,129,1995,1657,2686,2489,2476,1823,255,1225,2749,31,2690,165,69,1336,2652,2577,528,804,582,2560,1656,2033,3123,1813,2743,2720,2479,2944,257,2742,762,1899,1675,1655,1665,1812,2034,2417,2382,1858,1728,3044,1666,2562,30,3319,62,2017,3346,2020,2014,2956,1672,2659,3344,3434,1815,3091,1835,2012,1840,32,2711,1673,1743,1962,3316,1674,1636,1794,41,1009,43,38,2826,48,47,2477,1978,2025,1626,1810,1782,1966,2007,46,1829,50,45,52,1972]
bad_iteration_list = []
elif dataset_name == "audio_balanced_with_perc_midi": # midi only
csv_normal = "balanced_audio_final_with_perc_midi_features.csv"
csv_annots = "balanced_audio_annotations.csv"
top_features = [1152,525,1755,2055,1747,1151,1166,2687,10,1497,507,1750,361,1441,927,945,13,2694,133,2688,2091,2092,2105,2106,1475,529,1765,2056,407,1768,1550,772,1489,1537,406,21,1065,1089,1077,526,946,1071,2691,909,2057,136,2697,109,1455,753,9,1574,1059,2061,2068,246,3163,2086,2085,1154,404,1469,121,1753,778,1194,2689,776,2074,2075,357,3159,2695,1053,1761,770,2597,1090,2083,1757,917,1760,891,2087,923,247,2066,1764,1539,1603,469,911,958,1748,2069,897,252,497,236,1609,1485,1839,1078,893,3160,1096,1406,1594,3066,2090,3409,1604,1350,466,784,2289,2136,879,2107,438,2277,1481,2299,1652,2072,1447,11,3156,1084,1982,468,2142,2603,1419,1047,1153,115,885,2599,2081,764,521,3403,513,2598,2084,465,3060,431,3014,2302,1427,899,928,2071,790,766,1874,362,8,2073,1887,2089,235,251,1072,1650,1353,887,1637,1102,1101,3455,2064,3034,358,3118,1552,3245,881,3267,1364,1035,1952,782,905,681,3121,1842,1928,434,1568,1607,1798,146,3353,1649,2297,2713,2298,2715,1590,166,3120,3127,3126,2065,1448,2709,1581,1470,1486,66,3029,1644,3142,2805,464,1155,2732,1845,84,2405,3063,3130,3,1791,3133,1472,2627,3406,503,2703,3179,3155,3230,1735,2727,1231,1378,1487,1023,3068,1066,1538,1234,3411,3207,1435,1407,1643,2781,435,2082,1474,1582,1775,3251,1596,3247,1149,922,1640,1638,2916,3223,1506,3269,935,3032,2625,1772,1460,3252,1334,1800,3046,1468,131,2109,1433,2963,3185,3273,1516,1634,1461,1434,1988,2632,2404,1635,2051,2067,2631,1806,1885,873,2076,692,315,1161,1647,1444,3306,2049,3404,1041,2803,3115,1641,3116,1777,2274,277,1653,1150,413,80,3204,152,2268,2843,437,3061,1941,2070,2399,1595,1483,1518,2058,3026,1108,3201,1770,916,796,1915,3164,3199,3047,1953,3203,981,1802,3157,2784,1412,975,2094,1984,3225,1733,2303,1451,3024,2077,418,1767,1029,130,3152,415,1357,64,1264,1371,520,1420,788,2130,281,408,86,3208,2751,3454,3258,101,1428,527,409,79,3195,2028,1440,2010,3248,910,2712,669,417,1955,2310,3181,3261,1055,1125,562,3190,3270,793,685,1756,3221,767,71,2137,1542,867,2797,2194,58,1940,1774,950,240,2706,1865,2677,532,2307,1530,3217,956,90,2683,3239,3170,2731,964,3229,1569,1605,2143,2600,446,1060,2363,1393,977,1017,137,2626,516,3151,3182,1349,414,2317,2306,439,1803,976,1754,2275,2009,538,2725,3196,2730,1639,754,1664,794,411,1878,2724,2628,2335,2678,2700,140,1549,1929,2606,1345,1778,1645,3236,898,3020,2319,1210,3186,3148,1422,443,2684,2132,3177,1217,1356,3200,904,556,1416,1909,3017,2364,3263,1933,1646,2292,241,775,688,1189,757,3265,1529,3119,1025,1107,1805,321,2445,59,2088,363,1327,2745,2079,1532,162,1126,1454,416,410,1801,1981,7,1790,1467,2269,2411,3021,3214,2579,763,2483,85,524,440,412,1931,2620,855,3083,509,2037,1980,1739,447,3426,3111,1054,3222,1651,3244,1377,697,2614,3243,1216,875,892,1690,869,3237,3226,433,442,1787,3231,941,3064,1514,3259,2629,3173,1352,448,2337,2787,1553,3187,70,3407,2188,944,963,3175,1863,3234,1476,550,3194,2271,1876,3165,2278,2050,3016,2473,1080,886,3253,1912,1804,3039,3266,2475,874,3281,920,1011,2747,1329,1886,250,938,2127,1965,1587,671,1763,474,2634,2313,2648,760,547,3107,2647,1322,161,445,2633,2311,1235,480,2624,1667,2334,2623,3117,1195,94,2348,3146,444,1822,352,3025,174,1105,2442,3143,682,1648,1079,1365,2670,1734,522,2610,506,3218,3192,2707,1545,1056,1482,2427,493,405,1019,1358,3256,505,35,1727,1869,2524,3018,1372,829,1903,479,1985,2038,802,1546,2179,2192,800,1792,856,868,3250,2021,2063,2428,1168,850,1619,2078,2457,2166,2375,3197,242,3449,2189,2175,477,1897,761,2320,880,870,1910,3174,1449,168,1789,2580,1114,1987,1786,773,530,1092,1205,769,1726,2485,3168,605,2294,2701,1170,2440,53,2113,1465,3215,2891,2120,2708,1005,1989,1825,2672,2381,2591,683,475,2121,3321,3453,1037,91,243,2401,544,40,3178,2552,2172,2295,3241,2108,470,2741,3272,888,1621,817,1479,2296,3023,1178,1013,3242,2507,2286,2329,134,476,932,755,2176,3212,1793,2145,223,1457,1588,3150,758,812,3424,779,2410,1543,2407,3081,1043,864,541,1630,818,851,2416,876,1014,2551,1068,3149,1061,861,1211,1943,2161,3171,2027,1967,3323,3036,914,2098,673,2406,3069,3022,3264,2513,1218,2185,3451,3094,280,1026,1048,1633,3015,1834,2146,1671,3162,3260,983,25,155,1111,1490,3238,285,2616,2630,3412,1589,39,2366,1872,3268,2795,962,1807,1868,1629,2316,226,2430,253,3246,1904,686,471,1075,3219,441,2676,2592,840,2128,1191,209,806,2015,2111,263,811,3240,1119,3031,3437,689,244,199,2506,1736,27,2622,832,599,204,2615,2618,151,3262,472,902,1373,2452,641,2617,1042,104,953,1974,2193,2759,1762,1098,2611,1624,2811,814,2512,2448,28,1031,1113,1073,2195,959,647,24,1036,635,1642,2736,860,611,862,845,1104,1511,23,2716,63,2702,2196,1012,2721,3209,2177,1821,3176,2613,1986,1321,1632,333,2144,838,1608,3093,3184,2608,1049,3172,926,1654,2003,2779,2471,351,329,229,2043,3072,2682,3180,1888,2735,969,185,2384,3037,3415,1085,1732,3220,659,820,2593,2753,1109,340,2718,1784,2163,1442,1877,623,3450,629,566,1742,3436,1769,1844,256,2655,826,2153,2738,1837,3106,2662,2290,478,2663,665,1227,1611,26,2619,112,1555,3193,854,1024,3013,1120,1880,1020,1062,2135,2429,1074,1776,2171,653,2141,2376,1027,2129,2276,808,173,286,1922,308,2398,2342,2612,1841,2096,1833,1033,1744,617,982,1771,1086,380,1920,2607,2232,2835,2570,595,3108,1741,1873,3154,2004,896,317,836,1898,2191,2454,1824,2138,309,57,34,2328,3153,2530,3052,884,1517,287,3058,327,1548,1997,839,211,1018,1045,1729,202,1507,2387,1559,2698,2796,2340,1964,2446,2080,841,1099,2518,844,695,2572,3112,3040,473,1508,1093,2187,2149,2183,2008,2284,1730,1175,1879,2345,3361,2750,970,847,2099,2022,205,1087,1192,1971,2102,2110,2594,2097,1960,1081,1832,968,2643,2186,853,2644,3158,374,908,2343,2413,2104,254,1030,3302,517,1968,1273,67,2681,95,1882,18,217,1554,1618,719,960,1963,2533,2548,355,2557,536,2344,3078,221,314,2451,16,1051,1843,2115,2052,1890,833,304,3421,3027,2395,2685,2160,2807,385,553,842,2550,1421,2331,1977,2665,22,797,1177,2679,1317,1226,1881,890,2367,82,848,1050,1870,2502,1117,1934,1991,2006,272,328,2432,342,2147,912,2675,301,2754,2462,846,701,2763,1998,1752,2154,2016,2519,3405,3062,1456,274,704,2933,1906,2755,2668,2281,2300,1826,3198,1057,2522,1894,2346,3216,2046,2173,1917,3161,1544,2333,1129,1926,297,3297,2526,303,3228,518,878,2733,1785,2664,216,74,1846,2180,1779,1032,1069,60,2674,1303,1855,2412,1443,2283,2279,2515,1458,821,2182,259,1260,1531,882,2030,3224,1853,3249,2318,128,785,335,2164,2509,559,2469,3271,1836,337,2907,1463,2378,2495,265,29,1956,2124,827,2420,2122,381,3122,1039,1862,3028,1781,2370,3427,2439,88,2744,2287,3202,2280,141,3084,292,1930,2305,2464,2661,1816,1900,791,295,971,1583,596,288,2563,2466,2486,2771,302,1274,2660,2585,310,2666,2332,2566,17,678,275,2746,3038,296,258,2569,2641,2714,2531,311,2312,2640,2158,2190,929,2181,3227,1259,2155,2461,3448,2925,2459,1006,1758,1946,2748,2909,3124,980,1809,3105,2351,1970,1932,341,2347,1944,294,593,2667,572,2170,2719,1783,208,2505,1973,1038,1795,1203,339,1871,284,2819,54,3408,1828,1318,359,1996,1627,2349,3206,1891,319,2460,72,147,2397,2649,214,225,2100,2739,2206,2093,2474,2119,2134,3065,2523,2041,859,2414,382,347,3416,780,2379,291,1819,1818,1623,1990,1994,1975,2545,1857,1622,1628,2650,1015,1617,1612,1296,298,2418,289,3073,2788,2539,334,1615,1462,261,809,1631,1831,300,834,290,1021,2609,232,672,2060,3041,2423,1883,1927,1969,1860,299,1246,75,2309,1908,2532,2536,2639,1740,1796,2044,320,1856,1731,323,539,2621,3429,2931,3110,2054,2415,2586,198,3086,2468,584,2369,2588,2717,2140,3305,2971,191,2752,2472,336,2501,2510,2390,3337,684,2527,2272,312,1935,1464,594,1379,228,2455,2541,307,1939,2042,1814,2103,305,3413,2516,164,1044,2604,3070,271,331,2669,2059,1895,1196,135,269,1884,267,2322,154,1838,3299,76,3417,3033,1945,1127,61,324,3074,2358,1115,1896,576,2002,2421,2456,1976,467,1212,1848,2389,2321,273,306,803,548,2595,1737,15,2546,68,3420,3019,1541,1907,1616,1797,3315,2503,1889,338,2525,2568,330,1919,3418,1859,3113,2360,1745,2139,2438,974,3030,1063,2388,2385,2529,1937,3077,2576,3075,551,2282,2314,2923,1924,1123,2184,2436,3087,2169,2488,3313,2642,569,3430,2924,2157,1614,222,2419,268,2026,583,3210,1916,1938,2424,3166,563,1923,1613,1232,1830,2151,2491,828,188,2350,206,2159,1535,1221,2637,2912,972,565,2431,1780,2636,2517,2400,2341,3183,2646,2437,2118,360,1992,2000,587,2470,2487,270,4,293,348,2538,219,716,2435,2528,588,2443,2497,2361,815,2939,3100,2534,2542,2492,2494,318,3443,278,2582,2704,2726,345,2558,1799,264,1849,2692,1854,2359,2605,1766,2521,2573,2101,2915,1867,19,2288,220,2544,581,1957,1921,2425,2372,2408,2899,2304,1738,2581,3071,894,2500,260,3414,2391,2031,2377,367,326,2126,3042,2036,2386,2426,1892,1224,666,3053,266,2039,2024,2368,1682,2560,2394,2293,1343,1861,1498,2434,857,872,2651,2053,189,3057,3232,349,73,1297,2040,1866,3088,2537,279,2383,2671,2444,3442,2812,110,545,2728,2433,2133,2125,343,2680,3099,316,207,1502,2273,1913,1949,2737,3428,2482,2489,1162,1893,3085,1847,589,2564,2887,1851,1681,558,3329,2493,1918,2167,1812,2365,3254,3447,1700,3431,1914,2352,332,3104,3423,2463,3050,2578,3080,2543,2117,111,2547,1850,564,1817,1901,2816,2940,2653,2596,354,196,3314,1331,1561,1008,83,552,1190,325,1198,2165,2722,1746,2575,2326,2686,2150,2450,171,1560,2339,918,1864,1504,3067,1220,3144,2357,2018,2511,3410,2602,954,350,3330,2508,3101,1499,1788,3444,2802,1813,1925,1999,2514,2336,2270,965,1811,1680,2338,2168,1961,1902,2152,2324,3054,2562,195,618,2657,2673,3043,582,2947,3056,822,2565,322,2699,432,2556,2449,2458,3097,3446,213,2590,2396,2393,2114,2601,1979,2498,2559,1827,2504,3440,2062,512,2162,3419,1636,2798,3076,2740,1751,986,69,2330,924,2156,2315,2943,2720,1436,1875,2499,364,2710,3103,2535,3045,3333,612,679,2555,113,31,3089,36,2116,3090,149,1954,3433,56,1336,143,1942,792,346,2638,3092,3445,3055,2935,3102,2453,2362,2131,3435,1625,1121,2353,3339,2422,2587,3432,2480,624,2374,3425,1840,3035,3082,2371,2589,3205,165,2930,810,1983,2392,2821,2949,2380,1199,2828,2047,119,2402,2944,1679,2465,365,1247,6,2584,2174,233,2447,2520,2048,93,2308,3334,2926,2659,2574,1672,858,3048,3320,2540,3095,3438,798,3044,2243,3422,1958,2481,2577,2327,3079,123,2554,966,2323,2178,1687,2249,2248,2247,2246,2245,1659,1340,2244,62,44,948,900,1701,1658,2553,2242,816,2210,906,2214,2215,2216,2217,2218,3341,1533,2951,2219,2220,2256,2255,117,2211,2212,2221,852,2197,2198,2199,2200,2201,2202,2203,2204,2263,2264,2213,2225,2226,2228,2229,2227,2265,2266,2267,2230,1683,2250,2251,2252,2253,2254,2222,2235,2236,2237,2238,1657,1655,2239,2223,1656,2231,1678,2224,1684,1708,55,1677,2261,2234,77,89,92,116,122,230,231,248,276,282,356,1773,984,1685,1688,2240,201,1686,2571,2262,3123,2207,1709,1713,1714,2257,2823,1703,1710,1715,2233,3331,249,2208,2209,1711,1712,1689,2941,1716,2813,1717,1718,2696,2258,2259,2260,1128,105,2035,762,930,1276,1691,1660,1720,1702,2561,1606,1722,1723,1724,1725,1662,1661,2241,1698,1694,1695,1696,1697,1719,1721,1693,2441,1692,1699,3343,2285,2409,1707,1519,2654,3147,3235,3091,1706,1704,1959,1728,1852,2382,2467,2729,2815,3434,2496,570,2123,3049,255,2705,153,3189,2095,49,2490,2953,2549,2356,2484,2033,3211,3096,3439,1951,2583,1705,3325,2005,1620,1676,768,774,528,2723,37,1491,2824,2023,1858,740,728,2952,129,1808,3342,3340,1669,3255,3233,1197,756,344,30,2822,2950,3344,546,2205,2373,257,2801,2478,3441,3098,2825,1670,3167,2645,3051,159,2025,1610,1663,2325,2690,1668,2742,1835,2929,1823,1009,2658,1122,2567,2693,1626,3188,2635,2032,804,2656,2954,690,1820,2045,1794,1993,3289,3145,2007,2013,2652,32,2743,2403,1911,2749,786,3277,1950,1673,2711,752,2417,2011,2479,2034,1947,2001,3316,2355,20,1905,46,1995,45,2354,1899,2019,1962,1225,1966,1666,1223,2477,48,2014,3319,50,1675,38,866,1815,1743,2012,3346,2476,2020,1978,1665,41,47,2956,1829,2826,1674,2017,1972,52,1810,1782,43]
bad_iteration_list = []
##########################
## Standard + Original + Demucs Vocals ##
##########################
elif dataset_name == "audio_full_std_org_demucs_vocals":
csv_normal = "full_audio_std_org_demucs_vocals_features.csv"
csv_annots = "full_audio_annotations.csv"
top_features = [1152,1747,525,1755,1151,2055,1166,507,1750,945,2091,2105,2092,2106,927,361,10,1441,1497,2056,21,529,13,1089,1077,909,1768,1071,1765,1065,404,1550,1475,133,407,1537,1154,1059,772,946,1753,1489,2085,1760,1757,406,2057,1053,2061,526,1455,1574,136,246,917,121,1090,2068,357,923,2086,778,1748,2083,1761,109,753,911,776,252,2074,1764,2066,770,9,2075,1603,958,2107,891,1469,1194,2334,2087,1839,784,1594,897,1539,2654,2069,1078,1096,247,236,497,2090,1483,1604,468,1427,2684,893,1590,1084,1419,1609,2660,469,1350,1652,1637,1982,1406,1102,1485,1047,11,2136,2089,1101,2073,1447,438,1155,521,2084,466,465,1481,2142,235,8,2072,905,115,1874,1407,1649,1153,782,513,2071,464,879,2356,1887,1798,1607,431,1842,2682,2094,2081,899,3,146,1845,885,1581,1364,66,2359,1650,362,1353,2064,1472,315,358,1735,2693,764,251,2656,1149,1072,1035,2067,1150,1234,1460,434,681,935,84,1643,2109,1378,766,1928,2165,887,2166,1756,790,2151,2152,1474,2065,2699,928,1486,1582,1433,1644,503,131,1516,1487,152,1775,1568,2636,1435,1506,1733,881,1434,2076,1552,1640,1451,1635,2077,1634,1595,1596,1952,692,788,1800,1791,1023,435,1334,754,2462,1470,1988,1772,1444,2051,1806,166,2332,277,1638,767,1108,1066,2058,1448,71,1161,1915,1461,1264,437,1647,1055,1802,64,2028,1412,1653,1777,1885,2346,1984,1041,58,2049,2082,922,2689,321,1231,1641,1468,1981,757,975,2456,1476,2010,2070,1542,1605,408,873,2405,669,796,86,1371,2688,794,79,1357,281,1518,1530,1770,130,1754,1941,1980,685,793,80,1440,916,363,2376,1345,1801,2461,2137,763,1538,1529,964,2655,2009,941,240,2331,1210,2148,1170,1878,2683,1774,1778,2088,532,697,1428,413,1803,1356,910,2364,956,1349,2132,1532,418,1482,976,1767,1125,2079,1029,1416,409,1940,417,950,1646,509,1060,2130,1805,1569,2145,1953,2367,1393,524,775,1107,137,2360,527,1865,7,2438,90,1929,516,1189,1690,855,1420,1790,433,2581,2144,981,867,2532,963,443,556,446,1080,520,2363,1126,2111,977,1664,2143,2685,1017,1955,1639,538,59,1377,85,688,2235,416,1804,1025,1235,2663,1876,1054,1327,1787,892,1931,1079,1358,1352,1645,415,2146,1454,411,1587,1216,1763,70,1467,530,1909,161,562,671,1863,944,1322,898,869,904,414,2354,2485,875,2127,505,2161,1933,2108,1056,101,1479,410,1178,241,2037,412,2637,1422,1739,162,53,761,1514,2373,1329,2027,1648,440,1211,1092,94,856,2188,1365,439,1372,2374,2063,2217,447,1727,1869,2671,1549,480,2698,920,1732,1011,2530,1168,1786,250,2050,2473,2692,2609,448,1792,1822,1734,1026,1619,2649,829,1667,2021,1553,769,874,1886,1651,168,1903,2078,880,1068,104,2694,2667,140,800,1986,1545,444,2700,2192,445,285,479,2487,802,1217,493,2496,2686,1965,2229,1897,2486,2236,938,851,2237,1807,1588,405,2370,2353,242,1912,1589,1633,352,2444,2484,760,1205,2514,1789,2455,1373,959,1985,682,1191,2421,243,2216,1793,2096,2121,2113,1085,962,2120,2129,868,2657,1049,1061,2220,2673,953,2038,1784,2326,2468,2432,470,2648,818,1989,817,28,1014,2608,1630,1726,1073,1904,1834,1546,886,2194,806,2489,1621,2355,35,442,1075,812,870,1642,174,1825,1987,2015,1105,932,2392,1098,2665,1868,755,2218,1762,2539,544,550,811,1114,860,689,1736,280,683,1119,472,2185,850,2155,27,2397,1013,474,2226,1043,506,327,2325,253,2349,2651,779,25,1321,522,1465,2003,2098,477,1457,1086,1543,876,209,2099,1019,1449,223,1111,547,173,1048,2213,1104,1037,1880,308,91,204,1872,2110,773,2168,1611,1195,329,1120,2115,40,1769,340,2102,2207,1671,832,2587,1910,2627,263,969,2167,39,351,1109,2150,471,2233,686,2583,605,1821,1012,1873,2008,599,838,2247,983,1974,476,1113,541,1490,1920,2043,2502,314,1632,1877,2128,2570,441,1175,244,1624,185,112,226,1967,2224,1943,2433,2222,128,1741,1730,2104,673,1508,1879,2377,2497,1074,2190,820,1833,2668,1031,902,1776,758,2221,1036,968,826,914,1997,1020,1507,2423,1018,2335,2399,1843,1888,1511,1968,1963,665,2528,1024,2650,475,2232,26,1744,1922,1729,2503,841,1042,2687,1608,63,1960,2674,845,1654,854,1559,24,2135,814,1837,1093,1129,719,478,229,287,2141,1964,926,317,2499,333,888,2676,2394,2626,155,1824,1742,1881,309,1442,595,982,2154,256,1081,2231,701,1898,2202,1531,1045,2004,2138,1991,2006,1099,970,2400,1844,1618,1062,836,1841,57,2569,2351,2672,2386,2080,2362,1926,2424,2403,2352,2464,536,611,808,2458,34,134,647,2509,2022,2526,2559,884,2435,2368,2401,2653,2669,199,1998,151,2201,2441,2508,2670,2173,2563,1548,2181,1629,2467,2664,2180,1227,2406,2463,912,18,2519,2518,2328,1971,23,2343,342,844,2540,2186,1051,254,840,641,695,2179,473,2680,2030,617,847,2184,2564,304,2223,635,1005,659,1779,221,1218,2052,2093,1554,566,1087,839,2182,1785,2336,623,2638,861,2391,2580,1318,2579,2385,2230,2097,518,2572,286,301,2016,2567,1027,864,274,848,1870,1977,16,2187,217,2149,833,1832,842,385,853,1809,380,2590,2605,2228,272,22,339,2677,1882,2214,653,2122,896,95,319,2100,303,2620,1853,2629,2505,374,2234,1883,1906,2375,1555,275,2679,862,1890,328,629,960,2329,1622,890,2383,797,1826,310,311,211,259,1050,2204,1203,1862,971,355,202,1836,1631,2516,2341,2337,2681,1517,341,2333,785,517,1544,147,60,1117,2675,678,2525,1616,1273,2212,2475,337,1796,292,381,2344,553,2607,2402,258,1894,1421,878,1855,908,2046,265,295,1737,1970,2440,82,791,297,704,335,2584,2340,307,1627,1463,1917,288,1192,1033,1927,846,2511,1752,2573,2281,1296,1900,2196,1797,929,882,2431,294,29,1857,1781,206,2551,1617,205,1846,300,2477,596,2585,2586,821,980,2652,2205,1030,347,1973,2338,2542,1956,1057,1771,1731,2420,228,2436,809,2347,1317,2119,74,1456,2390,1871,1123,1969,1795,584,2448,1934,2545,284,1740,216,1996,2452,2366,1856,1583,2490,1612,2566,2195,2614,1039,1613,208,2158,827,1303,1177,2562,2415,572,1946,2418,2103,1975,214,296,672,359,1828,1930,1379,225,306,593,1069,2459,1860,2178,1623,559,1944,2378,2521,2395,1745,2695,2388,298,2549,2470,1115,1260,1615,2443,1259,323,1032,1044,2042,188,2124,2369,2602,302,1990,1994,2169,198,1783,2442,2357,334,68,336,17,1816,1038,2641,67,154,1628,2615,2379,1462,2191,273,1891,293,859,1992,2000,2002,278,1196,569,548,1895,2643,289,291,232,164,2548,345,305,2469,1221,594,2384,1226,312,2157,2445,290,382,299,2227,2036,1932,320,2425,1867,1859,2044,834,1921,2404,2430,2125,2117,1636,54,191,1458,4,1838,331,1758,2550,2480,1443,2126,2024,1896,348,2701,2537,1919,974,2494,88,2478,2060,2330,2510,2177,1819,1924,1738,2691,2198,1224,539,2140,467,360,2175,2457,1274,2041,1866,1021,1908,2592,1854,316,2527,1907,318,1063,1788,2396,1851,1849,269,1006,2495,264,1818,1939,2026,2134,1780,2118,1976,2520,2493,2454,1127,19,2481,261,2623,324,15,2504,2199,803,271,332,1343,2483,815,1884,2054,279,1831,2492,2488,576,684,2471,2211,857,2522,716,1246,581,565,2621,326,2206,2552,1847,2524,1918,1746,2160,1561,2339,207,1848,2642,330,2389,2568,72,1502,828,61,2697,2139,1464,2101,1850,1812,1498,1799,551,2408,1938,222,2365,135,2472,2345,1212,267,2447,1923,325,972,1901,2417,2588,2059,270,2603,2596,2416,2031,780,111,2678,1121,583,2380,1861,1914,260,83,2512,354,1945,894,2018,1830,2659,338,2114,2591,2599,2427,563,2350,1535,75,2625,2429,558,1892,2506,2039,2661,2523,349,1937,1814,2538,2646,2589,2593,76,2557,2582,1541,2645,2491,1232,1560,2460,2361,2611,2576,2174,545,2640,2062,1949,1913,1766,1957,1015,2482,2533,2639,2434,2597,110,1864,1297,2546,666,2476,2536,2327,1916,2437,2451,141,2053,2164,268,587,2171,266,1331,346,189,1700,2133,918,552,2210,2598,2517,343,965,2215,2225,2200,2666,2613,1925,2571,2662,171,589,201,2419,1162,2515,2560,165,1893,2193,1902,986,2156,2413,1336,2372,1935,322,1198,2513,1979,2382,1827,2529,2574,2594,2554,2696,1852,2635,1954,73,1682,1840,1614,2407,1008,1811,1959,564,822,1813,2531,350,219,1875,364,582,2595,432,2553,2479,618,1681,1751,588,1504,1436,954,2371,2159,105,143,2439,512,119,195,2162,2555,213,1817,872,149,570,679,1942,1499,2040,196,924,2658,2398,792,2411,1625,6,2116,2498,93,1951,2600,129,612,624,1190,2578,113,2690,2203,1889,810,1680,2647,2381,2131,31,1220,1961,2176,2189,2534,2183,2575,2633,1950,1728,69,2507,2450,2565,2197,900,365,1858,233,2449,2422,1199,2393,528,2632,2005,1676,220,984,2209,2541,852,1533,1340,2556,2170,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2306,2305,1911,1958,2153,1835,44,123,2304,966,728,153,1686,858,1687,2248,2500,906,1701,2426,2474,2249,2282,2317,2283,2318,2261,1672,804,2256,1703,2260,1983,2267,2272,2271,2270,2266,2269,2268,117,2245,2280,2244,2279,2243,2278,2262,2242,2277,2250,2263,2264,2255,2265,2239,2274,2241,2276,1658,2240,2275,2259,1606,2257,55,2286,2287,2321,2322,2238,2273,2288,2323,77,89,92,116,122,230,231,248,276,282,356,1683,2289,2324,1655,1708,1678,1656,1659,1657,2544,1677,1684,2258,255,2300,2301,2302,2303,2453,2284,2319,2285,2320,1685,1709,1688,1710,1711,1712,2292,816,1660,249,2547,1722,1723,1724,1725,1689,2293,1661,2634,1714,2251,1662,1713,930,2294,1519,1715,1773,1698,1694,1695,1696,1697,2299,2252,1717,1718,1716,2298,2297,2296,1720,2253,1808,1707,2254,2295,2610,1679,1691,948,1702,1693,1721,2624,1128,1276,1706,2558,2622,2414,2291,1692,798,2219,2290,1122,2035,762,1699,36,1719,2033,774,2047,2208,367,2601,2604,49,1704,2543,1962,2095,2577,2561,2032,257,2618,1247,1993,768,1197,1705,159,2023,740,2612,1610,37,2172,2048,1626,2025,2616,1491,1905,1673,1668,546,1620,1947,1999,2446,344,690,756,2007,2163,50,1666,2123,786,1794,2409,2387,2410,2412,1823,1972,30,2014,2020,752,2013,1899,2644,2606,1663,56,2501,2034,1995,1225,2465,1009,2617,1820,2466,1665,32,2019,2045,2630,2001,2428,2342,1223,46,2011,1670,38,62,2619,1966,2012,1743,1669,20,45,2246,1815,48,2017,1675,866,1978,1782,1810,41,1829,2631,1674,47,52,43]
bad_iteration_list = []
elif dataset_name == "bimodal_full_std_org_demucs_vocals":
csv_normal = "full_bimodal_final_std_org_demucs_vocals_features.csv"
csv_annots = "full_bimodal_annotations.csv"
top_features = [1152,1755,525,1747,1151,1166,1750,945,927,1077,507,1089,1441,2055,2091,1497,2092,2105,2106,909,1065,1475,1059,133,1071,10,529,1765,946,923,361,1455,1489,917,13,1768,1603,1090,1537,1053,246,772,136,2085,1753,1574,21,911,407,1154,1748,2075,1604,929,1550,406,958,526,2068,1096,1078,2086,2061,1481,404,252,1539,2087,2074,1952,778,247,905,2069,1757,1101,2083,357,1760,1652,1084,1940,1594,899,1772,770,2056,1102,109,1761,2090,776,2066,1839,1764,235,9,1469,1726,2089,1072,497,1194,1609,1792,891,1350,2334,2684,121,431,1982,236,503,935,897,784,2081,1637,2073,315,1047,251,2107,146,2072,1874,879,1863,2064,438,669,115,2057,1649,1607,885,1798,1650,521,1472,1485,893,8,2071,2689,2094,1590,1909,1407,1643,2084,509,1035,2660,1406,1791,1108,753,782,2654,469,2076,2136,2462,2356,1581,1483,468,2142,1460,1153,1928,1066,1447,66,11,2682,764,131,1155,1988,84,1506,1419,2359,1845,513,2151,2165,2152,2166,1378,1568,1800,152,277,1448,681,1806,1842,1644,1149,2325,71,2461,465,1756,466,2508,1023,964,881,2067,2065,1055,1107,1461,2077,1802,887,1041,448,2693,1790,1516,928,1353,766,2082,1857,1582,363,1189,1897,790,2391,362,358,2332,1518,1640,1161,1150,1393,281,941,1638,1862,1552,3,2699,1984,1427,464,767,1364,1641,1767,1775,1635,956,1887,2405,1470,447,1433,1487,960,692,2235,80,1634,1647,1474,2663,2010,922,2539,2364,2456,916,2028,873,1787,1965,2685,321,963,2367,1596,2354,1821,1451,2088,434,1507,1080,1639,2070,1777,1029,1468,1900,1653,1486,1349,2109,166,418,950,1231,1805,2009,2656,64,2376,413,1502,58,1605,1444,975,1789,86,437,1345,1955,1538,2051,2079,2688,2108,2058,788,1953,1530,1377,794,417,1646,1060,1234,2346,2331,1428,1422,954,1195,1435,796,1803,1774,1971,1865,435,1633,1941,1915,2374,1859,520,240,1114,763,2581,1912,1168,1508,1735,2683,562,137,2420,79,2144,2438,910,2099,1729,1878,1770,1434,1876,2636,1079,1885,1356,90,1754,1334,2360,757,527,1529,556,1371,2370,2078,1532,445,1645,2049,2686,1898,446,1025,976,1412,1981,685,2655,101,1476,1903,1449,1357,415,2132,1216,754,2145,1980,1834,443,1943,1973,1352,1264,1068,1733,2667,408,793,1420,1017,1651,532,130,414,1210,1906,981,892,70,1664,2433,2137,2363,1125,2609,480,1595,1440,2671,1727,1869,688,1778,1549,416,479,2111,1037,1833,1822,1482,2130,1569,2148,2473,1804,1793,1690,1416,1739,2229,1967,1113,944,962,1970,1542,977,775,1479,1061,1543,59,2373,2027,2161,1986,2213,410,697,2328,1824,1092,85,2063,223,1126,1056,1904,1191,2222,1801,474,2233,409,1864,7,440,314,1910,538,2146,1929,476,254,1807,2421,493,2444,2217,2673,875,94,867,1587,2326,2468,2143,2392,2236,761,1026,285,2353,920,412,524,2155,1467,1836,869,1119,1868,477,1667,898,439,938,2050,1795,241,1763,308,2397,1098,1049,1933,1648,1985,2665,1546,522,2188,755,874,2570,1011,2542,1514,918,2102,444,2368,1931,2668,904,53,2532,505,2096,1373,894,2207,140,411,2349,1786,1825,1624,34,2221,1630,2129,2037,2127,1235,516,1170,1372,2399,855,1211,1120,1054,2698,2226,352,1358,25,2185,2435,2080,2626,2093,1856,2608,2220,2192,2627,2463,280,1642,1974,161,802,2355,217,2651,442,1886,1776,1031,673,1544,2700,229,2464,2021,671,1013,2692,1964,1991,2006,1075,1217,1073,968,2694,104,2234,1086,1014,1454,2687,2423,851,2218,1322,1019,932,1327,1085,2587,475,1111,1465,1024,806,253,1178,817,1987,1619,760,2237,2224,1105,2216,162,2530,1048,2386,2377,2502,882,2499,2455,91,1730,209,506,2485,812,953,969,29,2681,244,2487,773,1457,547,333,2496,2115,880,2154,35,769,1989,211,1588,2509,2394,682,2569,2110,1175,2680,27,478,2657,1632,1734,970,818,340,2230,39,1104,2015,2637,832,900,1769,959,327,1036,287,856,2540,530,2497,470,1074,1589,2572,1762,1490,1888,1099,256,1608,948,1629,1043,1621,2583,2401,16,1109,1093,1553,2194,2563,811,850,2335,2674,1545,2669,168,243,174,309,544,2564,1872,199,2579,1879,1012,1329,2432,2402,1671,906,2458,204,829,2228,2008,800,1365,2231,2580,2664,2676,683,2649,758,2104,471,2441,2003,2484,2223,605,472,779,1654,1968,1837,2672,26,1442,2390,2514,840,2038,1873,980,550,40,876,1997,221,886,329,868,405,1920,2486,2400,1548,2467,2098,2590,2605,2362,2232,1511,364,2343,2424,2511,2489,1192,838,2503,2121,250,912,2120,2670,2043,2329,2351,1832,2150,2113,2336,983,433,304,1205,2138,845,335,689,914,2648,2173,1732,2677,1784,1922,2128,2180,2181,1736,982,2168,2167,24,1018,808,1700,242,870,780,2406,820,173,599,1042,659,2559,2156,686,2653,826,2650,303,2281,112,2352,18,814,342,2679,839,2566,1742,844,345,926,63,2052,2227,1843,1045,1998,860,1956,441,155,1960,647,2584,1050,861,288,1087,2475,2385,2190,2347,888,1005,896,665,317,226,1881,1779,1062,853,205,1976,328,2247,924,28,1611,147,2202,641,2519,1421,263,902,1020,1741,854,1771,2607,301,1081,2369,134,1531,1877,2375,1218,1177,294,473,1737,653,2004,128,611,2141,2340,2184,1463,2022,2551,833,2212,1618,2341,2545,1826,2344,2179,1979,884,821,2403,2101,1977,295,1963,2186,566,1744,848,272,2100,274,2505,2585,302,1559,4,1030,1880,307,1303,785,617,151,1894,339,2528,2135,2388,2153,842,310,2552,95,1227,1038,1321,2204,2187,286,623,847,2477,380,202,1027,1117,2338,2440,1883,864,297,2214,2573,347,541,2567,862,536,1203,836,300,1129,1745,2436,23,1069,2638,1555,2504,1890,518,1846,890,351,791,2160,2586,596,2452,1841,341,635,2470,385,2191,185,82,57,1996,292,2119,2629,2521,2562,1844,1870,1946,2430,216,1882,1871,595,517,1032,2333,1318,2201,846,306,974,2182,2431,629,2124,311,1456,2030,1752,289,719,1554,2149,319,2379,2596,695,553,1917,1785,1317,2384,1583,859,214,1975,2366,2016,1930,1044,1731,908,971,1039,2526,374,2117,232,1838,324,1123,2418,1273,2548,797,2471,2196,320,2447,1926,1796,2158,2389,2125,572,593,2097,1517,337,299,334,1990,1994,1847,2337,1860,878,1992,2000,841,1934,284,2602,60,2510,2459,2675,1617,834,1853,1115,2518,228,2425,1809,2695,1969,1260,355,1828,2404,1057,827,259,1379,809,2469,296,22,701,1033,1196,559,275,336,312,2445,323,2378,1051,2589,2593,1942,2024,141,293,2415,1855,2002,305,2643,54,2046,1224,2588,1462,2448,857,2575,1954,2395,1063,1884,2162,1226,2490,2480,1221,1957,76,2595,189,672,815,2114,278,2330,1015,2383,74,1628,558,2169,1616,704,1849,2427,290,2442,2597,258,298,2478,1891,17,1797,2157,2554,1498,1944,584,2472,2031,208,1781,2614,678,265,1232,2365,1631,587,2054,1296,2701,1799,1927,2345,2460,348,1274,1458,291,1758,271,1535,2659,803,1923,2215,2525,206,164,2483,2122,2443,2195,1896,1895,2417,1740,583,2691,1622,261,1949,2053,1021,2357,2103,1746,198,1612,1006,2568,1867,1932,2615,1443,2198,2042,2658,467,2454,2620,2118,1866,2426,2396,225,2457,2527,666,1783,67,1198,1939,2481,2026,1627,2576,2178,828,2666,349,1816,2641,2592,2550,2553,2516,2060,1162,1246,2408,2652,2549,330,1861,188,2339,2623,2697,2557,381,1464,576,359,2225,2621,1615,1938,1780,2642,2603,1212,111,2126,1259,1623,264,2393,2382,1738,382,15,270,986,2437,2494,2512,930,2531,2036,594,2371,331,1921,2678,1831,2434,1613,2479,88,2062,318,222,2482,354,1916,269,2429,548,2380,1819,2639,2039,191,1914,279,1907,273,2200,2205,2059,343,2032,154,1499,1561,1919,684,1818,2546,2041,512,338,2635,2611,1814,1889,2560,1620,2398,2613,2361,1682,539,316,2199,2350,1892,2536,1918,972,1127,2522,72,2645,1945,618,2533,1901,325,432,2164,1541,1830,569,267,2044,2211,360,1121,2422,2513,2574,346,2543,2495,266,1854,1687,2123,110,1911,1686,1908,2206,2451,2476,1220,268,119,1902,1681,2177,2582,545,1875,73,2515,2171,2413,2662,1924,1937,1688,2175,2537,1848,2493,2524,2591,2599,135,19,2411,1788,589,2529,2625,1190,1685,1436,2416,2327,1812,2520,1851,2140,1817,1893,2116,2170,2018,2372,2506,2419,2045,2159,6,2139,2555,68,2040,1827,612,1689,822,2381,2491,2174,1680,326,2632,552,332,2409,2450,551,624,2219,792,1913,350,965,2646,159,129,207,2634,1297,588,2134,2578,2696,1625,149,2131,61,2449,2193,2488,2661,105,1122,1935,852,1343,1947,1751,2023,2640,1331,1808,171,2594,872,1684,581,2517,2647,563,83,2492,2183,564,143,195,220,2544,260,2453,1728,1852,984,69,2571,1993,1858,1679,1766,1560,565,93,810,2690,1199,2407,2210,2047,1008,1983,75,2538,2172,2565,679,2556,113,322,2250,1999,716,36,1950,1811,2523,1533,2534,2005,2176,1504,1340,2203,165,233,2035,219,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2541,858,365,2304,1676,2633,804,1614,2249,2604,2189,2272,2267,2243,2278,2244,2279,2242,2277,2271,2268,123,2245,2280,2269,2270,2262,2261,2263,2264,2265,2474,2256,2294,2241,2276,2257,1678,1683,2266,2260,2258,768,1660,528,2259,2255,2240,2275,1951,1661,1636,255,2239,2274,2251,2252,2507,2253,2254,2238,2273,1835,2610,966,786,1223,1665,117,2286,2321,55,77,89,92,116,122,230,231,248,276,282,356,1773,1708,1713,2282,2283,2284,2317,2318,2319,2285,2320,582,1850,1691,2292,2288,2323,2287,2322,2289,2324,1714,1709,1710,1606,2601,816,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1722,1723,1724,1725,1519,1721,1961,1662,249,2300,2301,2302,2303,2598,762,1701,728,1247,2293,1659,2296,2248,2297,2298,2295,196,2299,201,2446,49,2465,2163,2095,1128,56,2428,1336,2600,1813,1719,2618,1276,1704,2291,1905,798,1720,2622,866,1677,1702,1703,2612,2412,1699,2290,37,344,2133,213,1658,1666,2439,2034,20,1225,570,2631,546,1959,2630,2410,2197,2624,2414,1705,690,1707,1610,756,774,2013,1958,1491,2616,1794,2577,367,153,2498,1706,2644,1925,1670,2606,1197,2558,2048,257,2500,2014,1657,2033,740,1840,752,1663,2387,1823,1995,2561,1899,1820,2617,1669,1656,2466,2246,1009,1668,2012,2209,2011,1655,2619,1972,2019,2025,2001,44,2501,50,2020,1962,62,1626,2342,47,31,2208,48,2017,38,43,30,1675,1782,2007,1978,41,32,1815,1743,1810,46,1672,1829,1674,1673,52,1966,45]
bad_iteration_list = []
elif dataset_name == "taffc_std_org_demucs_vocals":
csv_normal = "taffc_final_std_org_demucs_vocals_features.csv"
csv_annots = "taffc_annotations.csv"
top_features = [1152,525,1755,1747,1166,133,945,136,927,1750,1089,507,246,2056,1497,1071,247,21,1077,2055,1151,2068,772,1489,151,529,909,2086,404,121,2105,1065,2106,2091,2092,2074,1550,1194,526,1760,1757,2066,13,1059,1053,946,9,1441,2087,2069,1469,113,109,753,2061,2090,958,891,778,361,923,2075,10,917,1475,1765,1090,1940,407,1753,1537,776,2084,1768,911,1101,1637,2083,1096,893,110,2081,357,1764,352,905,1748,438,1461,406,251,1652,155,1761,1603,770,2089,2085,1195,1447,899,328,1539,2660,1419,1350,2057,2073,1574,1649,897,1078,1486,1650,235,1643,116,782,1792,1653,90,2072,469,1604,2065,1072,362,346,1102,879,464,1952,2689,1638,86,1839,1108,885,2064,1460,1607,1455,315,334,2082,1084,2071,1647,1047,881,1644,1502,443,149,1407,466,223,2636,1154,766,497,80,229,764,236,2356,1842,1508,358,928,1334,1149,2456,1406,1775,2334,340,887,363,784,1485,2067,1472,1442,1035,1772,431,1874,556,1634,1483,1982,252,117,1487,446,788,1833,1153,1798,1868,131,411,166,1364,1633,2359,790,2458,413,1609,205,1756,1941,1552,1803,754,2144,418,2654,1915,2077,1596,71,1444,146,1778,1594,1060,1506,248,1943,1635,1863,1845,2166,1451,2165,669,532,1542,2136,2462,321,1107,1516,2391,1023,2151,2070,867,2152,1988,1726,1518,1822,1433,412,408,414,442,211,1727,1869,115,1800,1645,11,1965,1729,1054,1481,1735,1605,562,910,2682,1590,199,1092,550,2663,84,1470,1379,1787,1790,217,1150,1595,2142,417,3,1859,79,1791,1981,1824,2461,1080,1802,1416,2683,465,416,2078,8,2684,1639,72,963,2405,152,1155,1795,1086,2693,2235,1903,1836,1834,513,1029,2455,2137,1955,2229,254,2502,692,1807,530,2685,415,2079,767,2076,1641,316,1984,2094,935,1754,2432,2656,521,161,409,1640,1066,1777,2325,681,1581,503,509,1085,1793,1733,1767,249,1170,1646,922,1878,1933,447,2673,1529,2539,1353,1789,892,2100,137,757,697,1865,1490,1651,950,154,938,964,1904,1648,1482,2421,1041,916,763,1231,112,240,445,1821,1953,1476,2326,2468,480,1358,1507,869,1763,1448,2143,1870,1582,433,66,1804,2699,1161,2108,130,1857,1841,475,1786,209,2107,2010,1928,2467,2088,1806,1428,2360,794,941,1025,1073,1549,793,1468,1435,2346,58,1011,1530,2667,1393,2686,2063,1805,162,1971,1538,2376,439,2102,977,2463,505,898,1964,448,1931,473,2145,880,671,1545,1234,1762,2207,444,1897,2363,1630,1322,1061,441,2392,1217,1568,1427,322,2148,1929,2030,1642,2028,1967,1532,873,868,886,1378,2367,336,2109,1909,685,1434,704,476,2420,479,1770,932,242,2364,2236,1887,1801,2637,351,962,527,796,2009,18,1479,829,1327,1690,250,544,1420,1440,2111,1774,355,1624,1098,470,2570,2386,2168,1017,1906,2328,538,769,2503,73,1074,1454,2161,410,1977,672,1372,2213,855,64,435,1825,1970,1105,1898,904,434,2051,2374,2668,1912,2671,2496,959,16,2194,1329,1079,1843,1871,140,2688,882,356,981,761,1985,953,1013,1543,1125,975,2191,1980,1175,2331,2581,688,1587,221,330,1569,1357,474,2217,226,2528,1730,1371,1619,2146,817,348,2438,944,173,233,1853,689,1210,1055,327,1732,862,2665,2655,1191,2373,775,1973,477,2569,2332,2677,1264,1784,2508,595,1474,2394,856,2385,1114,2354,1178,478,1976,1119,1621,1068,440,468,1989,185,1120,2021,870,2509,2669,1816,2015,1352,956,1927,1832,2192,811,1014,1126,900,319,2423,1168,122,1700,1900,623,1553,2433,1877,2470,243,802,263,800,2587,91,1862,2099,1232,1189,2530,760,2154,2572,2469,506,1876,1062,520,1910,2220,902,1104,1113,1819,2027,1831,1844,1192,2676,1920,1856,2188,1922,516,1093,2675,1465,2694,2406,2563,7,92,861,2687,605,841,641,168,1608,2216,965,2204,85,350,2377,2674,2369,1211,1544,968,1514,253,2388,1227,2058,896,2700,2505,960,966,2542,2190,1422,1986,2485,2132,1111,629,2347,1881,280,599,1321,2526,2043,2355,1049,1636,493,2232,2080,874,1012,2532,1618,1739,1611,2230,888,1019,2514,969,277,2487,1974,1872,647,1235,1449,2370,147,2212,1987,2473,1796,1365,1546,2649,976,1997,920,2680,1736,360,2626,472,1781,2202,2049,635,2564,912,204,2224,2214,758,1885,541,241,983,1075,2353,2444,716,659,333,594,2201,826,77,850,2226,2155,1771,70,1030,2016,2237,2097,908,1099,2038,2464,1742,806,1979,1758,2223,27,982,331,2397,914,1734,785,1037,94,320,2651,682,2435,1809,2401,2329,1457,2349,2638,1026,971,547,2489,2344,1664,611,1117,2698,701,2247,524,76,2195,1056,683,338,2343,1412,864,2575,325,53,2138,2159,1926,281,1828,2629,665,259,1045,1818,208,2484,1467,2486,326,2511,339,1588,2400,2037,2670,673,596,536,1745,2003,1769,2692,1006,1613,1031,1589,2441,1886,174,1615,2679,1377,1033,1880,1216,83,134,231,437,2648,1826,1109,2399,566,1883,2160,2650,2098,1048,2681,2222,2184,929,2362,884,34,2499,653,2672,1873,1018,2173,1744,2185,191,63,2608,1203,926,1737,2620,2181,860,559,584,29,2180,2379,2060,1855,57,2167,188,1356,2218,719,1632,2008,1456,2179,1005,2497,1511,1042,1531,1051,2352,773,2187,1349,2424,1020,848,374,471,2583,686,1846,2445,1081,1039,522,1032,59,354,2403,797,1345,2442,295,808,1221,1087,1827,906,2567,2104,2050,1043,297,1991,2006,2475,256,2205,2341,1879,2096,1631,1464,1960,359,225,26,1998,894,1205,2113,1498,285,593,2130,1882,2177,337,1776,2162,2234,1024,842,1129,324,755,265,1224,838,385,818,553,1616,2540,2524,364,2149,1373,2644,1741,342,2333,405,1177,2375,104,2657,1975,1785,2221,1050,1554,2131,1622,2120,2228,2425,1196,845,1623,2141,101,2121,1069,2395,820,82,232,851,2393,617,141,382,695,2452,2580,1443,2566,1218,612,844,2175,2525,847,1963,2510,1667,2582,832,1627,23,890,2652,618,846,1968,1848,2178,2422,728,2408,1919,1612,2482,1617,37,2627,329,740,2607,323,1036,287,2036,2103,274,317,2596,17,2471,2018,202,1740,2208,1560,2046,2281,1847,2426,1731,275,812,135,75,2614,1837,1122,2591,2599,2182,2127,1830,2196,2022,206,1738,2516,1458,2418,2134,2135,2559,878,2417,2198,349,68,2227,2231,1628,258,2002,2443,2518,1629,244,517,2340,1548,1226,2378,2551,307,40,1583,1990,1994,2390,2004,666,165,2477,1917,875,1894,972,1851,2052,2330,95,286,551,1027,1779,284,1296,189,1535,467,2678,1517,853,1654,2519,809,1783,814,35,1896,288,1992,2000,1888,119,309,22,2590,2605,2584,2357,2383,2150,1246,2368,2415,2488,1814,2031,558,2211,292,273,128,2579,2171,1956,31,803,308,2093,303,2586,1797,678,2617,2664,304,545,347,2576,1671,294,2585,2174,318,2494,89,267,2389,2428,2431,1891,2498,272,2527,1849,2695,2537,61,2653,970,1884,2035,2536,1421,2522,207,1127,1123,840,2641,69,1799,1555,2233,1942,854,2402,2639,2186,341,548,1260,2588,2157,2115,2440,24,1934,1752,839,1780,381,2701,1121,28,836,60,380,2169,74,1918,2337,1318,2491,2335,1812,572,1944,1746,25,821,2427,2523,50,2459,2158,2034,343,1115,1343,2140,2506,1996,2336,539,88,268,1559,2407,1259,2520,201,2480,876,791,269,1038,1907,1930,582,2059,2611,827,2436,2601,1864,2577,2666,2206,1867,2024,1932,2643,2465,1945,2645,4,1561,2478,2598,111,569,123,335,1436,2128,332,1815,1969,2493,2661,2404,1852,1057,2512,2533,2371,2439,2646,264,1890,2568,2345,624,2552,1893,779,2472,1860,2490,228,300,2110,2361,2041,1951,859,2592,38,518,833,310,222,1954,2602,220,2476,1504,1063,2594,279,2351,2044,1336,298,2597,2521,2366,1866,213,1817,291,2642,2565,2062,67,2338,1993,1908,576,2139,1914,306,2005,2609,1625,1813,311,36,1913,2662,552,2416,2545,296,804,2210,2119,314,2573,2613,1901,1044,2133,2571,54,2557,2504,2621,589,2413,55,289,2053,2549,2017,32,1946,2365,679,2156,2517,270,2640,19,2589,2593,1850,1838,15,2020,2556,2219,2209,918,1811,2451,345,1957,1766,563,1491,2548,2193,1861,214,583,1925,432,815,39,219,2429,2481,1939,581,2538,1983,198,299,2411,171,1999,276,2658,1854,2350,2215,301,2448,857,1788,756,2122,780,2492,2555,1274,1198,2434,293,546,305,2457,2380,2604,2339,48,271,1273,684,1924,1303,1950,2553,2600,2659,2546,2114,2396,260,2466,290,2447,2040,2170,2515,2117,1938,2603,1008,2430,2562,2118,1892,2124,2126,2541,1921,2454,49,2372,570,143,2384,1895,1840,2032,2398,2189,20,1021,2619,565,2560,2635,2507,2419,834,2534,1297,1212,2199,2615,93,2479,2023,564,2529,2197,2387,2042,302,62,312,2101,2623,1961,1340,2381,2327,1331,2578,2450,954,872,230,2574,2048,2292,2606,1015,1751,2225,2203,1902,2176,2625,1916,164,690,2282,2317,2513,2283,2284,2318,2319,30,2495,153,1659,828,2437,984,924,2116,1614,1499,2412,2039,1626,2618,1162,752,1687,2129,196,255,2183,2054,1686,1672,2026,45,1829,2410,1658,822,2624,266,2025,344,2632,2303,774,1199,1905,1937,2310,1678,2449,1657,2610,1655,1656,1677,1683,1684,2595,2612,2262,1689,2263,2264,2265,2256,2239,2240,2241,2242,2243,2244,2245,2257,2258,2259,2266,2267,2268,2269,2270,2271,2272,2274,2275,2276,2277,2278,2279,2280,2285,2286,2287,2288,2289,2306,2307,2308,2309,2311,2312,2313,2314,2315,2316,2320,2321,2322,2323,2324,2254,2293,2294,2253,1533,2299,2304,1685,1958,2252,2251,2305,216,1190,2290,587,1716,1717,1718,1715,2616,2261,1276,2125,1688,2153,2250,1714,2013,1773,278,1808,512,2255,2011,2474,2260,282,2238,2273,1712,1959,2531,2012,1711,2291,1710,1519,1823,2047,852,2622,948,1699,1709,1676,930,2249,762,52,2296,2297,2298,2295,2302,1691,1692,1693,1694,1695,1696,1697,1698,2300,2301,2382,2248,1706,1707,1719,1720,1721,1722,1723,1724,1725,1708,2409,1705,786,1713,1662,1220,257,2014,1703,195,1197,2033,6,2550,2342,2414,2007,2561,798,2446,2200,1995,105,1317,2558,1702,980,1889,2095,792,1935,1610,858,1794,2172,159,2697,1660,1704,2453,2696,1911,1875,2691,261,1679,986,1701,2164,1225,2483,2554,129,2634,1620,2647,2500,1661,1223,2045,2460,44,1962,365,1462,1682,1128,2633,2163,768,1247,1541,1663,367,2690,588,1978,1820,2501,1949,1673,2630,1009,2001,1674,2544,810,528,1728,2631,1966,1810,1782,1899,1681,2019,1675,1463,1835,43,56,1666,1858,1665,1670,1680,46,41,974,1947,2246,1669,1743,816,2543,1923,47,1668,2123,1972,866]
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_std_org_demucs_vocals":
csv_normal = "balanced_bimodal_final_std_org_demucs_vocals_features.csv"
csv_annots = "balanced_bimodal_annotations.csv"
top_features = [1152,1755,1747,525,1166,1151,507,1750,2091,2092,2105,2106,361,927,945,133,1077,1441,1089,2055,21,246,1497,10,1603,1475,909,1071,923,1537,1065,13,1154,529,252,136,1489,1455,1574,1753,1481,407,772,404,1765,1059,1604,2085,929,946,247,1761,1726,917,1550,1053,526,1768,1748,1764,2061,1757,1792,1760,1952,1090,911,497,406,1539,1350,778,9,2086,235,1609,2056,2068,109,958,1863,1194,357,121,2075,1078,2087,770,2083,1096,1940,1101,2334,2090,1772,503,1469,1652,905,2074,2069,115,935,2684,438,1594,753,1607,251,146,2165,2166,2151,2152,2089,84,431,468,2660,2356,899,1084,1102,891,2066,879,776,1839,1460,1472,66,236,2359,784,2462,1448,1637,2107,1153,509,2689,1407,1447,2325,897,363,1909,1485,469,1072,1419,2094,2461,1483,1581,71,1155,2064,1862,513,1982,131,315,2057,782,1406,669,521,2081,2654,1857,1378,885,2508,1874,2136,1590,8,2072,1506,1897,152,1568,1189,681,2073,1821,1047,1161,2682,11,466,2142,2693,764,881,448,80,893,1806,465,2391,1108,1461,1035,1756,58,2699,2084,2071,2332,2539,1023,1507,766,254,2376,86,2076,1798,2456,1650,1582,964,277,464,941,447,1364,1107,1845,1643,64,1777,1791,1596,790,1900,887,1965,2663,358,1474,767,1775,2405,1149,2374,1442,2108,1915,692,281,1516,1393,1787,1649,794,1971,362,2364,1041,1150,1502,2109,2077,1800,1729,1349,2065,321,2082,2144,1865,434,1055,1433,2367,1802,1470,1928,1168,1444,960,1353,2656,1988,1842,1859,1634,928,1605,1066,873,1487,527,1195,2099,1449,975,1774,1468,1334,413,1955,1635,1790,2235,796,2067,3,1868,2132,2360,2685,2207,1518,1805,79,1953,1377,2051,963,1231,1789,1435,1864,437,1887,2331,1552,950,240,435,1770,1639,1644,2130,1234,2111,1508,1427,1646,1898,417,2370,1530,137,788,2354,956,757,2420,1029,446,938,2346,1371,2363,2688,1970,2088,2010,2581,1486,520,70,1833,2229,976,418,1638,2683,1624,2146,2213,2373,1727,1869,2070,2636,1080,1984,1803,1420,977,2028,1903,2145,2148,1356,954,1114,1595,166,1793,2655,916,1822,1357,2542,1967,101,415,1941,130,1451,445,443,2009,1735,1754,685,1647,1422,1973,2432,697,688,1416,1824,1345,1428,922,1912,1767,1476,1482,2078,2161,439,2532,1906,2438,754,763,1933,1434,1640,1216,408,981,562,1068,2127,409,1538,410,1125,1795,1358,532,440,59,1633,90,414,793,2433,1352,1126,1641,2328,1653,516,1543,352,2540,1651,1856,892,1834,755,1885,2686,1964,34,1372,2129,1191,1113,556,1876,1092,2368,1479,2421,2326,2468,1904,416,1931,1943,1546,894,2694,962,1490,2058,2700,2392,2137,1060,968,2049,18,775,1630,2079,1322,1098,1878,1778,1210,1542,285,1529,855,1412,1733,1025,920,910,1061,1264,1645,1119,2530,479,2671,85,7,2473,806,2609,2143,1049,1235,2377,480,1017,505,2096,1664,412,1079,2698,241,1836,538,875,1532,1569,869,1690,898,932,1667,1373,1549,2217,1056,1981,444,104,1929,2502,1544,2037,802,812,524,1739,2692,867,2188,1786,1440,1910,477,944,1014,2093,2587,851,140,244,1026,1807,223,411,29,314,761,1011,476,522,2667,2463,2355,506,2464,253,442,2397,1086,2570,874,1037,2353,2080,1763,2435,1619,2423,1514,1085,1024,882,2673,1804,817,1073,2455,2514,1327,474,1178,1120,1175,1980,162,1762,209,217,1104,2444,35,1170,2569,1211,2386,1801,161,229,2154,39,673,758,970,811,2651,671,2115,2608,280,880,1986,2399,1465,53,94,493,25,1611,2185,2027,2168,1776,2102,1013,91,2050,918,211,856,2394,1587,243,1467,953,1588,1825,1329,263,2194,2485,530,2121,2120,2458,1217,1548,2113,829,2234,1074,2509,2563,2496,1553,1922,818,689,2499,2110,969,1991,2006,2237,983,2572,1621,1642,16,760,472,2564,2637,2487,1886,2486,308,2467,773,2233,27,2583,2677,2192,40,1608,948,2497,1454,1365,686,1109,405,475,327,682,1031,441,1545,2098,2063,1012,2150,2402,1205,2335,1920,2216,1589,845,1075,904,2340,1019,832,544,2665,2679,2590,2605,2329,1741,333,1511,2489,2128,683,780,256,2687,868,1730,1888,287,199,2156,959,2668,2349,2400,800,364,1648,1870,2627,478,1192,1985,1105,2650,2167,2173,2484,471,2220,2181,902,2155,2180,2528,2390,1036,769,2511,1629,1043,2191,2424,605,900,840,914,2038,1048,547,2226,2552,2401,204,2503,340,1671,850,2680,1457,2236,2649,1045,2626,1779,173,2221,2676,345,2657,2681,599,24,2629,2222,2566,860,838,168,1987,2362,304,309,470,174,876,2230,982,242,2281,250,896,870,2545,1960,2580,1956,2441,1177,965,2218,2551,550,1559,1769,2104,1974,1042,779,844,641,1736,1832,2224,1111,1018,2179,1744,1654,1976,2406,853,1054,2648,2008,2231,2519,134,1872,2352,1734,1062,1732,2043,342,147,839,1879,861,2351,826,221,854,28,2343,536,2212,23,2141,205,1700,112,1618,2336,884,820,155,2052,2653,2521,1421,2021,864,912,2504,2607,1989,665,2385,1099,1005,1555,808,848,926,647,2101,695,1894,63,2674,1837,886,1742,284,659,836,2153,980,2369,1050,1917,351,1771,2672,2559,335,814,2015,2247,433,2505,1093,846,908,1318,924,328,151,2138,2475,1737,611,906,890,274,286,317,1871,2135,2510,2375,272,1321,329,95,128,1203,185,518,2097,339,1784,862,834,1087,2158,1260,1456,2003,2214,1853,2452,1129,1081,17,1227,2403,653,2223,473,2670,2333,888,2341,4,842,1015,2664,347,822,833,2418,517,2190,2669,1963,2579,1218,841,2187,1463,1632,303,1997,288,847,380,2470,82,2447,785,2149,2184,26,1039,259,2186,1027,307,2347,2124,828,1583,2030,635,22,2388,324,617,623,2366,2584,2338,275,202,2100,301,1196,1877,719,1968,1881,2204,2440,1020,1612,74,374,1996,1117,226,2567,2182,1051,2159,2232,1992,2000,1752,1038,2695,2228,2518,2469,553,1631,541,2125,1273,2554,2202,974,1809,1979,1731,1554,2379,1379,2117,1855,2548,1977,354,295,2596,1030,2157,2477,1873,2638,1946,2430,1274,1882,859,292,297,355,701,1880,1998,971,2195,2526,2573,2490,2004,1826,189,2041,2119,1923,2415,2425,261,302,704,1057,214,216,558,1246,1517,1303,559,1843,258,1957,1890,385,2445,1033,629,1224,1990,1994,2160,1069,310,2408,791,1226,821,2201,1816,857,312,2562,1927,1930,1123,337,198,311,271,2691,1221,1954,2701,1799,1531,265,294,2585,1317,827,1944,2196,2002,2602,1044,1883,878,336,2641,2431,1613,2022,341,1942,2227,2471,566,2586,1926,1115,2114,595,467,2426,1561,2384,2126,2357,278,334,300,2378,1021,1891,359,228,232,289,1841,2483,57,360,2031,593,1032,2169,2522,572,1797,305,206,2659,2337,320,1617,1919,60,2459,1259,319,2122,2330,1758,2697,306,2531,1615,1938,348,1232,2404,1860,1063,2597,2389,1796,2016,2457,296,1535,1828,2575,2042,2417,2443,2442,1620,1462,1847,1627,299,1498,2365,2527,666,596,1458,809,2550,208,2604,797,1819,1818,2516,1616,222,2614,1975,1838,2460,293,2178,2060,2436,2478,2613,1745,1844,815,1443,2553,803,2652,2658,1212,164,2162,2525,2344,576,2046,76,1939,2568,1162,2018,15,2395,2549,264,2472,2494,1895,2595,141,119,684,1464,1006,1785,381,1884,1934,269,1916,1740,1846,2434,584,225,1781,2589,2593,2480,2380,2643,111,1127,2103,1969,54,2036,2429,2454,2427,2054,1628,2024,1945,792,2592,270,2615,2039,2576,331,1949,349,1296,2642,1901,2396,330,548,2413,188,382,2557,1999,2381,2635,1849,1622,2588,2339,930,587,290,2164,1817,279,1907,298,1867,2621,2611,1848,1896,583,2118,1780,2620,191,2543,672,2603,1746,323,551,19,2398,2512,267,1921,2560,1861,1623,154,325,72,2448,67,2040,1902,2437,1121,2059,2383,2053,432,316,1854,589,1918,2382,1875,2062,1908,2546,2632,2481,2198,1932,2675,594,1911,810,1220,2495,2536,972,2506,618,2482,2409,1914,1935,291,2393,2350,2140,1198,338,2177,545,2345,1993,2537,110,2205,2491,2493,2419,1625,1783,2623,266,318,2515,1190,2520,2639,2171,569,1738,2555,2026,2479,88,1983,2661,2032,343,512,1788,1866,2544,1892,1827,1889,1814,2411,75,690,1831,273,73,268,1937,1851,552,6,612,2371,2582,2116,346,1331,1830,1436,2574,1950,1852,260,986,588,2524,2591,2599,2451,565,135,2327,2175,2513,852,1751,2206,2215,207,1560,2645,1297,624,2678,2529,2533,2134,350,539,1961,1122,1913,61,2174,2219,2131,2047,2416,2123,678,2666,716,2634,2476,195,2422,1893,2488,2183,367,2640,966,2556,2170,563,1924,1541,2044,2372,1614,816,872,2211,2696,171,2139,1343,220,1958,2361,2646,2517,984,2225,2199,1766,1199,2200,2571,2492,2625,2578,2690,1682,129,1850,1959,2647,2023,2193,1008,679,2210,564,143,2617,93,2619,149,2450,105,1951,1340,2507,2594,1680,113,344,2250,1504,2610,1681,2163,2633,1808,326,233,1947,2410,2176,1661,365,2523,322,201,2189,2197,2565,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2412,1533,2203,123,1499,2541,2598,2172,83,2304,2662,1662,2538,2267,2268,2269,2270,2271,2272,1689,2265,2264,768,2263,2262,1679,1660,2249,728,804,2616,2045,2294,858,2286,2321,2261,2285,2320,2287,2322,117,2449,2245,2280,249,2291,55,77,89,92,116,122,230,231,248,276,282,356,1773,219,1708,1713,1719,2244,2279,2500,1691,2288,2323,2243,2278,1709,1710,1714,2289,2324,2242,2277,1720,1721,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1722,1723,1724,1725,2260,2296,2297,2298,2241,2276,2240,2275,2259,2266,546,2258,2257,2254,2300,2301,2302,2303,2256,1704,2253,2453,159,2238,2273,2622,2295,2252,1610,1519,196,1702,1128,1703,2428,332,2005,2299,1701,2255,2239,2274,2282,2317,2284,2319,2251,49,2465,1699,2095,1636,2283,2318,2292,68,1223,56,2293,1678,2618,2534,1659,581,37,2600,1276,1905,1247,2612,1688,1811,2446,1705,1707,1706,1820,1925,2624,2601,1677,36,2013,1823,2248,1812,165,2631,2407,2035,2209,2630,2290,20,786,2017,1685,69,2019,1197,1686,1665,1225,752,1687,798,740,2020,1684,1683,255,1668,1663,1995,1658,2439,528,1491,153,570,866,774,1669,2034,756,2644,2001,1670,2414,762,1666,2606,257,1676,2011,2208,2474,1336,2466,1858,2498,1728,582,2246,1813,1899,2014,1657,2033,2387,2558,1840,2342,2133,1835,1794,213,2561,2048,2012,1656,2501,2577,1962,44,62,1743,1655,1626,31,1782,1810,38,1009,43,1978,30,1815,41,48,1972,47,2025,50,2007,1675,32,1829,1672,1673,1674,46,1966,52,45]
bad_iteration_list = []
elif dataset_name == "audio_balanced_std_org_demucs_vocals":
csv_normal = "balanced_audio_final_std_org_demucs_vocals_features.csv"
csv_annots = "balanced_audio_annotations.csv"
top_features = [1152,525,1747,1755,1151,2055,1166,507,361,1750,927,1441,945,2091,10,2105,2092,2106,1497,21,13,529,1065,2056,1077,1475,909,1089,133,1071,404,1550,1768,1537,1765,1489,1760,1757,1059,407,1455,772,946,1154,1753,2057,1574,2085,136,406,917,1053,246,923,2061,526,753,252,1761,357,121,1748,778,911,1481,1090,2086,2068,1764,1469,109,9,1603,2074,776,2083,1194,770,891,897,2075,247,1539,2066,2334,2107,2087,1350,1594,958,236,2090,1604,1078,1839,784,1096,893,1406,1609,469,2654,497,2660,1047,1485,2684,899,2069,521,1590,115,2089,1483,235,1419,468,2356,2136,1637,1084,1982,1652,466,11,1427,905,879,438,1101,885,66,8,1447,1607,2142,465,782,2073,1581,2359,146,1407,2094,2072,1155,431,1874,1102,1887,1153,513,2071,2084,2682,1072,362,251,1364,887,84,464,1378,1149,1472,1506,2064,1649,1798,2081,1842,1650,1353,1035,434,764,935,2693,3,1582,2165,2166,2151,2152,1928,928,681,1735,152,1460,766,1756,1845,1234,2109,358,315,1150,1596,131,790,1470,2699,1643,881,1516,1775,2067,1952,1568,1486,277,1487,1023,71,1640,503,1066,1474,2462,2656,1634,1791,788,1448,1772,1433,2332,1644,1552,166,1461,2051,1041,1435,1635,1451,80,2636,2065,1334,1777,64,435,1434,2076,1915,2058,1647,1108,1055,922,86,281,58,1161,1638,2077,1264,1595,2689,692,1988,2405,1800,767,1468,1357,1653,754,1444,2346,1231,2456,1885,437,2049,916,1412,1641,321,1806,79,1371,2082,669,873,1733,1941,1802,1530,1542,1518,1440,1605,2688,794,2376,1393,1538,1428,2461,975,363,1356,910,2070,1646,2331,1984,1767,1349,2010,757,796,793,1345,1770,950,956,1774,685,964,2364,1778,2028,408,1107,1189,2137,418,1029,1569,763,2683,2132,1210,1865,2360,2009,1422,527,130,1940,697,1803,1805,976,2367,413,2655,1416,509,1060,1929,1476,2148,59,963,1529,1953,240,2088,2130,516,520,1981,1420,1377,2363,1754,2145,1532,446,1787,409,867,532,1125,85,417,1878,2438,7,70,898,2144,1801,443,524,892,1017,941,981,2663,556,2143,1639,2111,2685,1079,977,2079,1080,2354,1216,775,433,855,1931,1790,1955,137,1933,2532,1482,1664,1909,101,2581,1126,1025,2235,411,1467,1352,1863,1690,1170,1645,1980,2108,1454,1358,944,688,2037,2146,1327,1587,904,90,1068,448,869,1235,53,241,671,562,1553,439,1322,530,538,505,1479,2609,447,440,415,2127,1372,444,1054,162,140,1876,1056,410,1727,1869,161,1168,1804,875,414,1822,2373,250,1011,1178,480,1365,1763,1217,412,2485,938,1549,920,1651,2161,1792,1739,1789,761,416,1667,1965,94,2370,2229,2496,1903,445,1092,1886,1514,2698,2050,2374,25,1726,2671,2686,1588,1061,856,1912,2217,1648,2188,1329,2608,479,2692,1897,1211,442,874,352,2021,2421,2063,2667,1786,1619,769,104,2530,1633,802,2326,2468,1734,2539,1589,932,28,1546,2473,168,2649,2700,1019,2038,1043,800,242,1026,2455,1545,2096,285,1793,405,2694,1114,2192,1205,2514,2236,755,1373,1642,2027,2078,1014,682,243,851,2487,2486,2673,2113,886,2121,2392,2120,2349,2353,2129,829,1985,550,959,1834,1075,1987,2237,870,474,506,1986,760,2432,2355,1807,773,1630,2657,880,2444,1904,493,2627,683,1868,1457,2220,812,1073,962,1624,2484,2325,522,953,806,850,27,1732,605,1943,1098,1013,280,1195,2648,1037,1449,253,547,1085,1191,2637,599,1621,1736,2207,868,174,1490,1048,477,1465,1049,1671,689,2397,204,470,1111,817,2154,818,1104,472,2651,2110,1119,1086,1113,1543,35,544,1989,2489,1120,811,329,1910,2665,2185,223,876,2216,209,779,2218,2213,1967,2226,263,860,1784,1321,1105,2155,327,308,1109,2099,26,2497,2168,476,1821,758,2015,969,2502,441,902,983,1974,1175,2194,2150,665,1611,24,2687,832,2423,2668,2499,244,914,2587,1920,2583,40,2098,1880,2626,2115,1825,2570,1877,91,185,1872,1769,686,673,1741,1762,1833,1074,2102,2128,820,1042,2433,611,926,1888,1632,2676,2399,888,838,1654,340,2043,2167,155,1776,256,2224,2368,1922,1012,2003,1511,173,2503,814,18,475,1020,968,39,1618,287,351,1024,2394,1507,826,2650,1744,1508,541,1729,2464,2222,314,2232,317,112,229,1837,2104,1036,63,617,1824,659,1608,2190,808,1879,1442,2135,2247,1559,2400,2669,1062,1963,333,536,2141,1093,647,2540,309,854,1031,2233,1873,2156,2377,840,2335,1898,471,1005,2352,1742,841,623,1964,845,1018,2008,970,864,1045,2528,1843,1629,2569,1548,1960,2672,2458,2664,2362,2674,1997,2467,861,1218,2580,1926,16,254,912,2564,226,884,2386,2403,151,2435,2563,2424,2559,982,134,635,1027,2509,641,2328,1129,199,2093,128,2508,2343,473,2401,1227,34,23,2679,2231,2080,2463,719,1971,1081,2351,2221,2336,1730,2670,653,2677,2052,286,1099,2680,301,847,844,304,221,2579,629,2202,2391,862,2022,566,701,478,2329,2441,2519,2223,839,2184,2138,2572,896,57,1554,2149,2505,1531,890,2230,1870,2201,1779,2004,2030,595,836,2590,2605,1890,217,1991,2006,2212,2526,1881,517,1555,272,385,833,1977,274,2375,1841,797,2347,22,853,1844,303,328,695,2173,1318,2234,2181,2406,2567,2180,2385,2653,960,1968,1517,1051,2629,342,2228,1836,275,1273,310,2186,147,2179,2440,1117,842,1832,82,295,1906,1998,2122,1894,2681,1882,2341,1853,292,2337,2402,1544,1050,518,259,2542,339,2214,1192,848,341,374,1855,1030,553,846,380,1862,1087,2573,294,1583,2475,2607,1809,2390,2431,878,704,311,1752,2187,2620,2281,1033,265,821,2097,2638,2333,2586,2584,971,1785,929,2545,2204,60,1421,1203,211,1177,288,2340,572,2016,355,2046,980,2153,258,1771,300,882,381,2369,1970,1927,2357,1627,785,1900,908,2420,2100,2566,1828,1622,791,2511,2158,2182,2383,307,2551,1296,2516,297,1463,2344,2562,1956,1317,1934,2452,205,2124,335,1737,296,1857,29,1259,2518,1826,1795,2521,809,2585,1260,1883,1456,596,1123,1973,319,347,2395,1917,1631,1303,2525,2338,284,1057,1871,2548,2418,2470,95,302,2477,2366,1039,1944,1856,228,2614,202,67,2388,2675,1069,827,1115,216,2196,1846,2103,1758,298,672,2430,2205,1032,559,2695,337,17,2378,1379,2415,859,1462,299,1226,74,1908,780,2042,214,2490,2119,1044,306,1930,2602,2157,1975,1996,1907,206,1458,1946,2379,1797,1628,1740,334,1443,323,68,261,1781,678,2436,290,1612,2469,188,141,305,208,1860,1891,289,1745,2652,2445,293,1731,2425,154,4,1895,225,834,1816,164,2044,2227,2191,88,1615,312,2549,291,382,2527,1617,1990,1994,1796,198,2615,232,345,584,191,2026,1021,2443,1221,2384,336,2060,1038,1859,1613,1063,359,2195,2504,1896,2330,2041,569,1274,2442,1196,1921,2404,2480,2454,1932,2643,2701,1006,1992,2000,2036,269,1838,2169,467,2592,2448,594,1783,2117,2178,273,593,539,2054,1799,1831,2478,1976,2396,2691,1738,1623,548,320,2447,2483,2481,1819,1969,1818,1246,324,264,1780,815,2552,2510,1924,54,2639,2002,331,1867,2471,2059,2550,2211,1616,330,2472,551,1919,2642,1464,2125,2175,2206,1854,318,271,2024,348,2459,803,2198,1224,828,2494,278,1945,326,2417,1849,1939,2389,15,2101,1892,332,2365,2199,1847,2641,1212,2588,2177,1343,1561,1851,581,2623,2345,2160,19,1884,2140,267,2568,684,2408,76,2621,1498,2031,716,974,2520,2493,1830,72,583,1901,2427,2512,2678,2488,2697,587,1232,1938,1541,972,1127,2524,2126,1814,2134,354,1636,1923,2582,2495,576,1861,349,2522,2380,2339,111,222,2114,558,279,563,1812,1957,1614,135,2546,1918,325,61,316,360,1937,2350,2557,666,894,260,2039,2625,2645,2576,2139,1535,2661,1766,1866,2457,2603,1848,338,1746,1502,2174,268,270,2492,1850,2589,2593,857,545,2451,1121,110,2523,2118,1949,2018,2554,1015,2062,2596,1914,2533,2560,2659,1935,1297,1788,207,2537,2164,2482,2327,2597,1916,2215,1162,2429,2591,2599,2437,552,1864,266,2476,2666,219,2171,2416,2646,2574,83,75,2371,2513,2662,2200,565,918,2536,618,2225,1700,1893,2491,2053,343,2571,1682,2413,1902,2531,1827,73,2613,189,1190,2598,1198,1889,1560,589,165,1913,346,2611,2595,2517,2407,350,2382,2515,1979,965,2553,2696,512,986,1817,1954,822,2372,1811,322,1008,2658,588,1875,2479,2040,1336,2594,2398,1852,2159,612,2460,954,2506,2419,105,432,364,2162,2538,2133,2193,1751,1436,2210,2635,2600,1331,119,624,149,220,1840,171,196,2116,69,1499,924,1959,2578,1942,1681,2381,6,143,1925,2434,792,2203,2449,2690,2361,564,2498,2575,1220,1625,679,2189,113,2170,2183,195,2555,2529,2176,810,2131,129,1911,367,93,984,1808,2640,2450,2426,365,582,2197,1687,233,1961,2422,201,1199,2393,852,2541,900,1951,528,546,36,2411,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,872,2248,2305,1686,2633,1533,2304,123,906,2610,2249,2219,966,2047,1340,858,1672,1701,2543,1688,2439,1813,2534,2266,2565,2261,2544,2260,2256,2250,2282,2317,2283,2318,2267,2409,2271,2272,2270,2269,2268,2245,2280,2244,2279,2243,2278,117,2262,2242,2277,2263,1680,2238,2273,2264,2265,2255,1703,2241,2276,2239,2274,2240,2275,2259,2257,948,2547,1678,55,2258,1683,1655,1656,1677,77,89,92,116,122,230,231,248,276,282,356,1684,1657,1658,1773,2286,2321,2287,2322,1708,2288,2323,762,1685,2300,2301,2302,2303,1676,1606,1689,2289,2324,1659,153,2284,2319,2285,2320,1709,1710,1711,1712,1504,1660,2292,2251,255,249,213,1519,2293,1722,1723,1724,1725,1661,1247,2294,2298,1714,2297,1698,930,2296,1694,1695,1696,1697,1662,2618,1713,1715,2252,816,2474,1128,2295,1717,1718,1716,2253,2299,1702,1707,2290,1720,2254,1950,2577,2556,1691,1693,1721,2507,1276,1706,2291,1692,798,2622,1679,1699,2624,2632,1620,728,2033,2558,49,768,2453,2095,1719,2561,1704,2048,570,1122,2005,1958,159,1705,2032,1962,37,257,2616,2612,2172,2500,2023,774,804,1610,2604,2414,1983,31,1993,1905,1491,1197,50,2647,2601,2025,2035,1999,1626,1668,1823,740,2209,56,1666,2123,2013,786,2634,2163,2208,1670,1947,2007,2387,1794,2410,756,1728,30,62,1009,2617,1995,1858,1899,44,2466,2011,2465,1835,344,1669,2644,690,2034,2020,1665,1820,2606,2501,2001,1225,20,752,2019,2045,2619,2412,2428,2014,2342,1223,38,1673,1663,2446,1815,1966,46,2246,1743,32,48,2012,2630,866,1972,1978,45,2017,1829,1810,41,1782,1675,2631,47,1674,52,43]
bad_iteration_list = []
##########################
## Standard + Original + Spleeter Vocals + No Drums Demucs ##
##########################
elif dataset_name == "audio_full_std_org_vocsplt_nodrums_demucs":
csv_normal = "full_audio_std_org_vocsplt_nodrums_demucs_features.csv"
csv_annots = "full_audio_annotations.csv"
top_features = [1747,1152,1755,525,2889,2055,1166,1151,2897,1750,507,2091,2092,2105,2106,945,927,2892,1441,10,361,529,2056,1497,1089,13,1765,1768,133,21,909,1071,1475,1065,1077,407,772,1550,1489,946,404,406,1753,526,1537,1059,2085,136,3197,2057,109,1455,1574,1053,2061,2907,246,3198,1757,1090,1760,2068,121,917,2910,1154,923,776,2895,357,770,2902,2903,1748,1761,753,778,2083,2086,9,2899,1839,2074,1603,911,1764,2906,1469,958,891,2890,1194,2708,2694,2709,2695,2075,2066,252,2597,497,247,897,1078,469,2687,1594,2107,2069,1604,1982,1096,2087,784,1419,2090,1084,1539,3210,1447,1485,1649,893,1047,236,1427,1609,2277,2688,2136,466,1652,1350,235,1874,2142,1102,2073,1406,115,465,438,2599,468,3203,2981,1637,1155,2603,8,1101,2289,1650,905,3228,3227,2299,11,521,879,1798,1887,2072,764,431,1353,1590,66,2089,2071,2084,2598,885,1153,251,1845,1928,464,766,899,1842,362,782,2081,2302,1643,1472,1607,358,1644,513,3,928,2298,1072,84,1364,1407,3124,2064,1483,3231,1486,3216,146,790,1234,1035,1552,3225,2940,3229,887,1735,3232,315,434,2067,1581,2877,1460,3211,1487,3236,1150,2691,1638,1640,2109,681,1435,1434,935,1149,1791,881,1470,2778,2065,1481,2693,1568,1516,166,503,2627,1775,2297,1733,1756,3242,1433,1634,1506,1635,1653,3199,1772,71,692,1444,3223,1582,1474,2051,1800,1988,1378,3217,1448,1108,1023,1161,1885,1412,1952,2076,1806,1468,1595,2058,1461,1641,131,2094,3206,2625,2764,1231,1596,277,1066,1264,2948,2631,2775,1647,1802,1770,2987,922,2049,2077,435,79,767,1451,2274,152,2082,1334,1605,754,1041,3224,3070,1984,1915,1777,788,2070,2765,2028,58,2776,1754,408,669,3208,86,873,64,281,130,437,1170,793,975,1518,916,1538,2875,413,321,1878,1055,2689,1420,1941,80,2405,2303,2917,2763,2683,2944,1980,527,1440,685,1778,964,418,2677,1803,2769,1801,2770,910,409,697,240,1981,3126,1530,1029,1569,137,796,532,1929,3226,538,3016,417,1371,1125,1767,1357,415,775,2010,1210,3029,1529,3214,3130,794,2898,1532,1428,1774,1940,2600,956,2306,2942,2912,562,2632,1542,1060,3215,757,2130,2909,1107,904,1017,1349,446,90,1476,1664,414,520,2919,524,1639,3152,941,950,1416,977,855,981,2697,2145,2310,2009,976,101,2079,867,2896,1126,556,2194,1345,1025,2404,1953,2771,3151,1648,1790,3027,411,7,1356,3212,2678,2319,763,2292,963,1054,3230,1645,2307,2275,2268,70,416,2088,1454,516,1393,3213,363,509,2684,2779,1646,412,671,1805,443,869,1549,892,1690,2984,944,2317,1080,688,1876,3218,2137,2710,1322,2767,1189,440,2050,1377,1804,2626,2311,2427,761,898,241,1931,2335,2399,1422,59,2759,2428,1739,505,3191,1327,1482,2761,3207,140,1329,433,1587,2628,1933,1955,2132,1235,1667,1865,874,1763,1365,1467,2037,85,1216,1079,3179,875,2348,3094,1886,2920,1787,3057,3005,2712,3083,2111,3193,1217,2364,2916,1825,250,1786,2591,2592,2579,817,480,2127,2063,829,1358,439,880,410,2473,2606,1026,2551,1352,1211,1092,1985,1178,1372,3220,2475,479,550,447,474,2524,2027,3237,243,1651,802,1514,2999,2021,53,2430,2943,851,493,94,2766,1909,530,2634,2143,811,2269,2411,2760,779,2648,2175,2647,856,2633,920,2933,2363,2015,2790,1734,444,2947,2623,445,2098,242,2196,1191,2278,547,2945,1056,2629,2172,161,760,1479,2146,162,1114,477,1762,2624,2108,2772,352,2295,769,1168,442,2381,870,689,1085,2672,1989,1553,2337,682,2483,1205,3028,1068,1863,448,2774,3071,2552,2946,1633,168,522,2038,1105,405,2756,3129,3243,1987,1195,2692,3082,223,2296,2949,3219,2670,35,1011,800,868,2914,2416,2457,1619,285,1986,1654,2188,1073,2702,3122,938,471,3127,1019,2294,2777,1642,1897,2594,755,2580,1048,1888,1912,470,1807,263,173,876,962,1086,1465,1965,683,1769,2932,3200,2078,1872,2614,932,953,886,1630,209,28,1543,1037,1075,1061,2286,1049,1903,1588,818,2320,1545,1589,2929,253,544,2745,2113,280,1632,40,3075,2179,2195,2620,2120,2121,2570,2271,1457,1732,3222,2316,91,2874,2714,850,1784,773,2185,1098,244,472,3030,3192,2192,27,959,1789,2166,2676,3020,2773,174,1373,1546,1974,812,2313,3128,1111,308,860,1043,2445,104,2975,1014,605,1621,39,476,1727,1869,1119,2630,2780,199,1120,673,1822,2610,2329,541,1449,155,2747,1490,832,914,806,475,845,3073,351,24,506,3018,1730,1113,1792,2003,2161,1880,3170,1671,1922,1104,2928,2334,2616,2485,969,1736,2149,1013,983,441,3235,2611,2970,2141,1873,2615,1943,1904,2384,327,2513,340,2135,2733,2429,1018,2700,2147,1020,3107,2612,3241,2096,2735,2102,2682,2099,229,1608,2193,2153,329,1227,2452,2507,204,888,1074,599,1997,1879,2617,2613,1963,3123,1910,758,2442,3131,2608,1024,226,1726,2043,2375,2187,314,151,2097,814,256,2744,2868,686,864,1031,3157,1045,2022,1109,3172,333,2410,185,2593,2618,2004,2998,2176,841,840,1793,1920,1843,1507,968,2407,1012,3102,1968,1960,3116,2191,2110,861,26,3004,836,701,1844,134,2340,2189,1776,826,2128,808,820,1967,3209,34,25,2366,1841,838,1036,2440,1877,2276,2186,695,2754,63,2550,2963,128,926,719,1093,1624,1868,2644,1611,2163,478,982,1005,2718,1834,3001,2506,2008,595,2793,854,2973,1321,665,1175,2052,1742,2104,2290,884,1744,1042,902,2530,3097,2701,1511,2177,1062,2824,287,647,2328,1508,862,2129,2171,2343,566,2737,1531,1129,309,2387,2406,611,2401,1099,839,2731,2471,3040,1821,112,1559,1442,844,2662,2663,2232,2655,2979,1898,1629,473,3021,641,1051,833,1785,617,1741,847,2881,1826,1998,970,2342,3095,1881,2115,286,2572,221,3110,211,2016,3238,202,1926,3180,259,57,2566,2755,2931,2886,3054,3106,342,785,82,1882,2720,2367,3039,635,317,2284,2344,2967,2986,517,2333,623,2080,217,2622,2183,2144,1517,896,853,842,2522,2454,1027,1218,2512,205,2643,1832,272,2674,274,1618,2533,2548,3244,3194,629,3113,2985,95,2346,960,2180,2523,2730,1087,3105,1964,18,1554,335,2894,1991,2006,1203,1894,3051,2138,1917,1081,3023,1318,2983,2030,2432,1057,380,846,659,878,1779,848,2723,1846,2878,3052,1192,311,3069,1833,2976,2502,2619,2741,3022,2681,265,2724,1616,908,2331,704,3169,912,2707,2607,2990,971,2974,254,2518,304,1729,1463,1555,797,2376,1033,1837,23,2913,2675,2287,1273,1296,2486,653,359,2869,3011,2716,2318,2757,593,2964,1890,2448,303,2160,301,821,1934,2911,2739,1050,1752,2557,2173,1548,3085,2100,2345,553,2717,275,74,3139,2420,374,385,2871,355,3109,1544,216,2668,1824,1796,339,678,206,890,2300,2705,1855,1622,1883,1809,2164,341,3068,300,297,2641,2413,3046,1946,1771,3221,22,328,1853,258,2876,596,29,2667,1177,2526,2569,1117,2884,2742,1977,294,147,2462,16,1069,288,3045,2182,1030,2279,1971,1906,3144,1260,2398,882,2190,3145,3202,2046,2568,3204,2661,1039,2451,572,2122,2154,3138,2935,1930,208,1631,3036,3006,3062,2750,3117,2158,791,2446,2469,518,1781,3112,929,347,1196,2519,1975,1458,1745,310,3014,228,1627,2181,2664,1317,2938,2934,337,536,3042,2969,198,292,307,2280,2461,1900,2093,214,2170,1443,1617,2666,1870,2905,1996,2665,2649,2468,827,2395,2332,1737,2972,2883,2459,2713,2281,2412,2988,1891,1115,584,2797,2505,360,2119,1731,284,2423,1862,2418,2379,2531,1421,225,305,2455,381,1623,1259,1038,323,834,2660,295,2305,2685,2595,1956,1303,1969,3163,2509,2642,2351,3019,2321,3158,1944,1456,319,302,2155,298,3205,3038,1927,3134,3142,1379,1797,2309,1226,2312,299,672,2414,306,2283,3010,2703,2124,2495,2956,559,2539,3064,293,296,2527,2370,278,2515,2272,1932,2882,2206,3185,2472,3140,1990,1994,1860,2604,2103,2002,1970,2768,312,1836,2439,594,1783,1583,2585,2834,2563,3032,1816,291,2157,68,809,2545,3239,1032,3118,2743,1828,2474,1462,3240,1819,1895,2586,980,2679,17,2347,1740,1021,60,2378,1274,289,859,2968,1939,1636,2421,1857,2528,2466,2044,2134,1464,320,2926,2738,1615,2516,2546,2980,2927,1044,2464,1612,2872,2532,2536,3115,269,2732,154,331,1973,828,1123,1788,72,1871,2966,1854,2904,2640,3059,2650,565,2358,2349,2433,3048,271,382,2538,2727,2390,2389,188,2456,2492,1896,273,290,3146,2042,2637,75,2415,2118,2748,2529,1814,2487,2054,2140,2391,164,1246,3034,1992,2000,2621,2460,1613,576,88,67,3061,1945,1221,1937,2722,2510,2431,1795,2978,2438,207,15,569,539,2341,1848,270,1907,2444,3234,1856,1851,336,2437,3132,3136,467,2588,1812,334,2443,2036,2425,1006,2125,3043,1923,3024,2408,2581,2169,2753,2558,2576,2184,2435,3037,1908,318,2282,3012,135,2493,76,191,1535,2669,232,2491,1343,348,324,267,1916,3125,2941,716,2385,2721,4,2424,54,1224,2937,2139,1859,2386,1758,2500,3086,815,1628,2350,2369,1919,1938,1838,2880,332,2918,2288,222,1924,3196,2517,2436,548,1901,1127,974,3033,3164,2501,2031,1746,1063,563,345,1949,2463,583,2706,2534,2542,3166,684,1015,3063,2503,3133,3148,1921,3044,1867,2434,264,2639,1818,2951,330,325,2582,2609,2159,2060,260,2419,3111,1831,780,2126,1935,1849,857,2887,268,2368,2758,2958,894,803,279,2026,2397,2497,2041,3189,1925,2961,2167,2273,2488,2024,1914,2636,2361,2314,3007,2480,1502,326,61,2400,3087,2383,2359,2117,2596,3190,2888,2746,581,316,3015,1850,1830,3141,3035,2059,3233,551,1976,2322,972,2995,2989,261,2525,2489,2293,2388,2900,2605,2360,3013,3076,1847,1813,1957,1913,2426,141,1892,2450,2165,2939,171,1212,3186,1902,2751,3184,2326,2728,3119,558,1780,2908,1681,2578,2646,1866,2101,2921,83,1861,1884,19,2362,2573,189,2053,2494,338,1297,110,1614,73,2651,1738,349,2467,2133,2711,3100,552,3049,343,2377,2394,2879,2589,2734,1560,1680,219,1682,588,2481,1799,3089,666,2574,1504,1766,1331,3188,354,2372,266,2039,3056,1840,2602,3098,3025,2590,2699,3183,589,2521,1232,2402,3072,2352,2449,3104,1700,2873,2356,918,3055,2544,1498,1918,2380,2327,1864,2338,2470,2540,3088,965,1499,165,3195,872,3026,2270,1436,2997,3074,1751,3101,1811,31,564,2062,2960,1893,2365,2575,545,2671,2504,1162,2511,111,1561,954,3135,2749,1817,2151,2535,3103,2657,2560,2339,2324,2955,2556,1336,2541,2018,822,432,2547,2870,2991,1121,3060,2508,2584,2514,195,2330,1983,2409,2638,3079,2725,3181,2482,3201,2564,364,3031,3091,2114,196,1198,3000,2168,3058,2673,2353,220,2357,322,2565,587,618,1728,3093,149,2537,2977,3081,2577,3092,350,2422,1999,3147,2922,924,119,93,346,1959,2498,2786,2821,367,2729,2789,113,1875,3178,2308,986,1951,2833,679,582,1947,792,2035,2787,2822,1942,1961,1958,2930,624,6,2925,3176,3050,1852,2465,1858,56,1979,213,612,2543,810,1190,2047,1008,2315,2152,2993,728,2458,2583,1827,201,1676,3096,2040,3066,2396,2336,143,2374,2686,2680,1835,3177,2587,1199,1220,69,740,2554,3121,2447,2562,2785,2820,3053,44,1340,365,2156,3080,512,3065,2696,2788,2823,3168,2520,2393,2162,2453,233,2131,2555,3003,3154,1954,1533,900,2116,2048,2923,2355,1541,1950,1993,3008,3114,2123,2837,2601,2403,2571,2654,2736,3099,966,36,2836,2246,2784,2819,3067,2247,2248,2249,984,2323,2243,123,1686,2645,1889,2806,2798,1672,2719,1703,2261,1679,2783,2818,2005,2262,2197,2198,2199,2200,2201,2202,2203,2204,2915,2250,2251,2233,117,2218,2252,2253,2254,1658,2263,2659,1687,2217,2210,1683,1657,1655,1656,2782,2817,906,2781,2816,1677,2242,2811,2213,1684,2265,2266,2267,2234,2264,2214,55,2215,2216,2810,2231,2804,2212,77,89,92,116,122,230,231,248,276,282,356,1708,2230,2809,1678,1659,2225,2226,2228,2229,2227,2244,2690,852,2235,2236,2237,2238,2239,2803,1606,2245,2211,2240,2653,858,2499,948,2996,1685,1773,2223,2222,2221,2220,2219,2224,1722,1723,1724,1725,2825,2838,2842,2847,2860,1701,249,1709,1710,1711,2033,1712,2256,1662,2839,2808,1698,1661,2255,1694,1695,1696,1697,2752,3150,2304,3041,1688,1519,570,2848,930,1699,1660,2209,1689,2207,2208,2893,2832,2867,1714,1707,1713,1715,2740,1693,1720,2826,2861,2257,1721,3173,2835,1691,1716,1717,1718,2241,1704,2174,2853,2855,2831,2866,1706,2843,2325,2856,1276,1692,1719,2698,1702,2479,2854,2852,2830,2865,816,2857,3084,2259,2260,2258,2812,3077,2846,2859,255,2285,2858,1705,2441,2496,2851,1666,2807,49,2829,2864,153,2936,2828,2863,2845,3187,2802,2490,690,3167,105,2559,2850,2965,2382,768,762,3108,2561,774,2840,2095,2971,2815,37,2478,1128,2827,2862,2371,1122,1197,1820,2982,1625,2178,3182,2805,2841,2813,1247,3175,2484,2794,257,2417,129,3165,2844,528,2992,1491,2814,2023,1673,1663,3009,2549,2025,2476,1668,3155,2658,62,2392,2849,2635,2553,1808,1972,2007,3161,50,2799,2354,756,2994,2567,752,1620,798,3143,1794,1610,2477,159,1823,30,3137,2205,2034,344,38,32,1911,786,2656,2800,1670,2801,804,2014,1962,48,2796,2032,2652,3149,46,1626,2726,3002,3159,2950,1009,1665,2150,45,3047,1669,2013,1675,2045,1899,546,1225,2795,2001,3160,1223,2019,1995,2704,1905,2011,2020,3156,2012,2762,2792,1966,3120,2959,1743,2962,3153,2954,20,1815,2957,2373,2791,1674,2952,41,1782,3162,47,866,1978,2885,1810,2017,3174,1829,2924,52,3017,43,2953]
bad_iteration_list = []
elif dataset_name == "bimodal_full_std_org_vocsplt_nodrums_demucs":
csv_normal = "full_bimodal_final_std_org_vocsplt_nodrums_demucs_features.csv"
csv_annots = "full_bimodal_annotations.csv"
top_features = [1152,1755,1747,525,2889,2897,1166,1151,1750,2892,945,927,1089,1077,1441,507,1497,2092,2091,2055,2105,2106,1475,133,909,1065,1071,1059,946,923,10,1765,1603,1455,529,917,1090,772,1489,1053,1768,13,246,407,136,1753,361,1537,1574,911,1604,526,1748,406,1550,21,929,2085,958,2075,1078,1096,2903,247,2061,905,2597,2907,109,2068,2086,1154,252,2906,2910,1101,2069,778,1952,1084,1594,357,2074,1469,2895,1539,2056,404,899,2087,2890,1481,770,1940,1772,1761,1839,776,1764,1609,1652,891,2687,235,1757,497,1102,2598,935,1760,1982,1194,2090,1072,2083,3228,897,9,236,2066,251,3210,431,2708,2694,2709,2695,1637,121,2289,2089,503,315,1649,1650,1047,893,1350,784,1472,115,2081,2902,3198,146,2899,1874,879,885,3211,2073,1798,2277,3216,3197,1035,764,1726,2107,3227,669,8,3124,1607,2599,2297,438,469,2688,2603,84,1108,2981,1643,2136,3223,2299,2072,1928,753,1792,3229,2057,2142,1791,2940,1460,1506,3224,71,1485,2076,1590,521,782,2064,509,1419,2084,1447,2302,2405,3232,1353,1845,3217,66,1806,2778,1153,1863,3231,1066,1406,1909,1155,2298,2071,1448,881,1568,1800,1644,468,3005,1055,928,681,1581,1407,941,513,1988,790,3203,1107,3206,11,1802,1041,362,2764,1640,131,1638,2631,1378,1887,1461,1842,766,1518,887,1552,1516,466,448,1756,358,1149,2693,960,2627,2914,3082,1470,2082,2065,1150,277,1483,465,767,1023,1790,1635,1427,152,2625,964,1189,2094,1161,1393,3,2765,2868,1468,1639,2067,3208,956,1364,1582,963,2070,1653,1984,1775,1634,2268,1647,2775,1641,166,1474,1433,922,873,1787,447,1029,2077,464,1487,2691,1767,1486,1195,281,3225,1231,2942,2404,2697,916,80,1605,954,86,2600,2274,1060,2010,2028,1507,1633,1444,2051,1897,692,950,1234,413,1857,1596,2334,2776,363,1451,2088,1777,64,2987,418,1422,1965,1538,417,1885,2769,321,79,1770,3126,3236,562,2109,1953,3212,2058,3016,58,3094,1754,2944,1080,1789,3070,3130,1114,794,527,2445,2049,1955,788,1349,437,1428,1805,3004,240,975,556,1915,2194,910,1735,2364,1435,2079,3242,1530,415,101,2948,3113,137,1878,1168,1941,2303,1412,1377,1862,1803,434,3029,2009,2929,2917,3218,1646,2677,2877,2689,796,3040,3214,2292,2683,520,2311,445,2628,2984,2319,1017,1912,532,1900,1664,1774,3230,1508,1821,2912,1651,1264,2672,1025,2771,2898,1876,2763,2108,2145,685,1532,1345,1502,3039,1645,3112,1449,414,3215,2335,1549,2306,130,3220,1210,3042,435,2452,3152,1434,90,2399,1529,2770,1543,1859,2310,416,2875,3226,1420,793,2099,1125,1778,1079,446,1371,2670,977,412,1356,688,3051,2626,2307,474,1865,480,775,763,2271,2896,1801,2933,1733,2451,408,3222,944,1971,1334,2919,2317,1113,2909,3151,1595,962,1980,2507,1191,223,443,1981,1037,697,2632,757,2363,761,538,2078,440,476,1068,70,1648,2269,2411,3199,2050,3207,1943,1739,2767,1690,1985,2615,1352,1542,2710,1061,2172,2027,976,1476,479,1092,1804,3083,2692,1216,1357,1569,1440,2551,2999,2513,1667,1098,981,3027,754,1119,2772,892,3219,3085,875,522,1898,2188,2931,1929,2702,7,3213,85,410,2348,1482,1933,874,2634,938,2963,2454,1967,2606,904,1479,477,2648,2759,1825,1467,2647,2633,1906,1807,1729,2766,2678,1903,2524,2761,1763,2130,2629,254,1170,2620,2376,241,2278,411,2337,2777,1126,2483,1910,867,1056,409,439,2407,1986,285,314,2779,869,2146,1416,2063,2166,1546,59,2442,2773,1120,2275,140,1886,2684,3193,3007,1026,1054,2934,2329,1587,894,1904,2712,918,493,2970,2756,1049,1974,524,2316,442,2920,1630,898,2617,53,1973,2570,920,802,817,2614,2774,2624,1834,1211,1931,1086,2552,882,217,1073,444,547,2932,3191,2137,1987,2580,855,308,2132,2512,2192,2834,968,229,2021,1514,1217,1019,1776,199,1544,1235,2313,1822,1786,1031,755,2760,211,3127,34,244,1085,505,1372,1727,1869,1970,779,2185,2406,2111,2618,2945,2401,352,475,673,2294,671,3179,2127,2623,969,3006,209,2943,1048,1465,1322,3001,2102,2037,280,2610,2616,2295,3115,1989,1793,1730,1632,851,1011,94,516,1769,3200,932,812,2286,162,2780,2946,2485,2080,2630,478,2579,2296,1991,2006,1624,1373,2790,3028,2440,806,1824,1178,3106,3030,1888,2430,682,2947,2015,2612,1327,1608,333,2427,1105,1642,1864,253,2381,1454,1629,760,811,1075,1457,1654,1879,2550,1024,3129,2331,2179,3192,2515,25,2949,161,3107,1111,550,1833,876,2143,2428,829,1734,900,2594,953,1358,3048,1619,470,2611,845,2193,1036,1868,2643,2916,880,174,773,818,2175,1836,2098,2506,948,1014,1621,256,506,2176,3020,1013,1365,1099,2473,689,2161,3237,2592,683,2366,243,2613,1964,1671,405,2755,1997,1175,544,832,1490,335,840,29,1795,3122,1074,104,3045,35,1192,2566,769,1104,886,327,2196,1968,1832,91,2591,959,27,3018,1872,2676,3021,2320,914,168,2644,1545,1329,173,2745,2410,2705,340,850,1043,2714,780,471,16,2149,800,2375,2457,2429,2195,970,1856,2475,3097,839,3054,2147,2448,3075,3095,2619,204,39,2622,3057,2976,906,1922,785,221,2189,3128,1588,309,287,3046,2384,1109,2096,242,472,155,3170,758,24,2367,205,2180,605,2502,1205,26,2998,1589,2003,808,2378,2416,870,1700,2191,2008,1843,3022,3243,2641,2608,1093,1920,2038,3110,1018,868,40,2093,3071,1553,1442,1020,441,2928,3116,896,1873,2342,838,2975,856,2731,982,2969,1881,317,983,530,853,2682,2340,861,2232,364,2593,1762,288,1227,1511,250,2043,2874,814,2539,329,2177,2052,3138,2569,820,2344,2120,2022,2572,1736,2121,1012,686,1826,1998,3194,2649,2113,1005,2129,826,1045,647,303,1956,2972,888,2104,3073,3131,912,2183,2446,1779,2533,2548,1042,3241,304,2974,1960,1784,821,2333,2110,1771,2985,151,2747,884,2144,1732,599,833,2163,2414,1837,2343,2754,2141,294,63,2655,1177,659,2187,980,2662,147,2663,2607,433,28,2568,854,1742,226,3139,641,3157,18,1218,3235,1027,2674,844,2530,1087,2522,2004,1531,3123,2793,2913,2718,1030,665,82,926,202,2135,2744,3180,112,2387,274,864,2186,1877,860,342,328,1741,924,2737,1963,2153,2881,2750,1618,1846,2733,566,2290,1463,1062,2138,2990,2640,2824,2272,2911,541,2967,134,2115,2097,3145,2346,2300,2518,263,1880,2681,3052,2328,473,2413,2345,128,2395,842,2283,3169,2979,1752,653,2878,3221,1548,1050,2128,272,345,1737,1975,2519,1882,3014,1744,1841,3019,2415,2276,719,301,2332,310,2100,611,1996,593,3209,2973,862,1081,695,380,2523,617,848,2713,846,847,902,347,341,2532,2536,2894,701,1038,2639,2988,3109,836,1318,2531,2675,2720,1745,595,517,286,1930,1611,300,2171,1421,971,623,1069,2978,596,791,2983,1844,1894,635,1976,3117,216,2871,2538,2735,1303,95,2964,2528,2884,2495,320,297,629,1559,797,2318,2664,1032,2160,1117,1917,2869,3011,302,1890,295,351,2284,553,339,572,2305,1039,2370,1273,2527,185,57,2701,2016,228,704,859,3102,1946,2412,2312,834,890,2347,307,2642,1979,518,3043,1616,2703,2986,2505,2420,2716,214,2700,2181,878,2876,2886,2797,1992,2000,2190,311,2509,1456,2723,1317,1033,1883,2471,3133,3148,1555,1731,3036,2351,2173,2872,3146,841,1977,536,2724,1785,2398,1203,374,1583,1057,1934,232,289,1990,1994,2926,2397,2101,3172,1458,2287,2526,1884,3038,2281,2604,827,2669,2030,2425,324,2182,2935,1129,355,306,2279,2665,2685,2768,1226,2707,292,1321,2696,3105,1838,2390,1617,1969,2938,54,278,1517,2280,3118,2002,3185,4,1443,3202,2424,2666,2309,3132,3136,1554,1063,23,2124,1957,2585,1796,1926,3023,2730,76,3010,2119,2426,319,385,908,337,3238,1274,305,828,1196,2432,258,2699,293,2321,2732,2721,2421,2563,1015,1942,809,2046,1021,2546,1535,1923,2739,2379,3062,3205,2883,2668,141,1891,2621,2462,815,1462,1809,3068,2545,1870,3069,2742,2722,1379,2609,2927,1224,323,1860,3140,1260,1221,2423,2757,3024,2438,1115,1296,2980,2322,2650,2389,2486,3158,3163,1855,2358,74,2474,1828,1051,299,2717,3111,3244,2385,2516,1628,974,284,2918,2439,1123,164,2743,271,1464,3044,1781,225,2557,1939,22,296,2273,2418,2905,3135,1044,2966,857,2361,2169,559,1871,2031,275,2679,206,60,15,2637,1631,312,298,2741,198,1954,1853,2024,666,290,2661,359,2738,334,2154,2525,261,3144,584,1847,17,2646,587,583,2394,672,1831,2372,291,2746,1627,1944,2529,1895,2565,1006,1816,2054,348,1232,2501,1932,336,2408,2500,3166,2125,2053,67,2494,2368,1938,2667,594,1783,208,2459,2449,467,2888,2206,2158,2517,2103,2882,2497,2510,2540,803,189,1896,2956,1746,1797,343,3239,3084,2660,2391,2042,3150,2369,2282,3134,3142,2386,2651,2184,3061,2921,2968,2870,1799,265,1499,2118,1914,88,259,2464,3125,2887,1498,3064,3240,3015,2487,1682,331,191,72,2469,2170,2748,2989,2155,2937,3098,1622,330,269,349,3002,1740,1907,1927,1246,3164,1901,2383,1819,2734,3092,1916,2758,2151,2419,2879,1623,2349,360,678,3034,3003,1818,2749,270,3012,1949,3186,1867,1127,2450,1198,1902,3063,1681,1937,3026,1812,2547,381,2036,2904,1259,2588,2503,2466,558,2574,2455,1849,2727,264,3000,2062,432,2958,2995,3032,1612,2460,2270,3037,539,1854,2041,2961,3088,2026,1908,3096,930,2123,3089,3188,2833,2117,1615,1919,1780,2576,1162,1945,2059,576,2377,2164,1686,2400,2671,1848,3141,3033,3013,318,2645,3076,569,2044,338,279,1687,1212,2458,2511,1866,2584,2470,3025,273,2359,1680,2605,1861,2402,2564,267,3060,73,2521,2534,2542,382,2558,2977,111,3204,2873,3195,154,2341,1814,222,1685,2461,2589,2380,2324,2288,268,2436,2352,1436,2060,2039,3072,2431,1758,1889,2472,2159,2388,2951,588,2314,2908,3059,2338,589,3086,171,1688,325,1892,3173,3087,354,2468,2991,2753,3079,3056,2433,548,972,1620,1788,2122,1738,135,1679,2126,2535,2706,3119,684,3080,2573,986,2805,2360,618,3196,1935,2032,563,2396,1613,1921,2114,1913,3091,1851,2941,872,3190,266,2673,1817,2353,2045,3234,2575,1830,2437,2636,792,552,188,110,2047,2336,119,2456,220,3035,1561,3081,2304,1999,551,19,2537,564,3074,2293,2939,2422,2447,512,1918,822,2726,2880,1297,1893,2393,2556,2463,3093,3100,332,2168,2586,2728,1190,2140,2139,1689,2327,2339,2492,1220,6,3189,260,3055,2350,2167,2508,1983,2356,2544,1684,316,2971,3103,2493,2488,2157,2806,545,3031,1924,2365,2165,2653,3177,1678,2134,1343,56,3114,2435,2325,2582,2602,350,195,1541,2578,165,2482,159,965,2403,2514,68,716,2960,3058,1625,61,2453,2922,810,1911,2018,2040,565,36,149,2554,624,346,1751,2657,612,3147,2498,2786,2821,1331,2465,93,852,2116,2787,2822,2308,2785,2820,2409,2150,2900,2162,2784,2819,786,2541,1993,219,2555,3099,1533,2357,2326,2434,3053,1614,2581,3154,1925,1676,728,3233,2152,207,679,1811,1199,2499,2804,984,1560,2783,2818,2596,2467,3184,143,2781,2816,2131,2802,2242,75,3201,3104,1340,3178,3168,69,3121,113,2686,2174,3101,2315,1247,1683,1808,2371,2965,1951,581,2680,2813,3049,1813,2782,2817,1950,3176,2807,1852,2704,2788,2823,2725,1947,1008,233,1728,2583,1958,2955,2997,2374,1961,2812,365,858,1677,1858,2590,1875,2156,2362,3050,3187,2323,690,2814,2504,3067,3108,2520,326,2656,2808,1850,1504,2205,1660,123,2577,2549,2925,2443,2595,2005,1661,2023,1827,129,196,2213,1121,2212,2481,2561,2211,2571,2204,2203,2210,2224,2202,2231,2201,2223,322,2200,2218,2230,2222,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,966,2444,3183,2207,2209,2208,1659,117,2261,2262,2263,2264,2265,2266,2267,2809,1606,1820,2815,55,77,89,92,116,122,230,231,248,276,282,356,1773,1708,1713,2690,1691,105,816,1662,249,2239,2240,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1722,1723,1724,1725,1721,1709,1710,1714,2496,2249,1670,2567,2248,2246,2247,1519,2238,2254,49,2923,2543,255,2233,1719,2253,2237,2234,2236,2235,1658,1701,768,1959,1704,2252,1720,2490,2992,2855,2251,2250,2856,3181,2854,2355,1128,2255,2256,2257,2258,2259,2260,2832,2867,2587,2857,2244,2178,2245,2484,83,2048,2719,1766,3077,2858,2803,2478,1699,2729,2859,2831,2866,3065,2810,2829,2864,2491,2852,2243,3066,2095,2740,2828,2863,2830,2865,1666,2795,1702,2241,2035,2654,1703,1276,1669,2851,2811,2846,2827,2862,2711,2845,201,1665,3175,2559,2796,2698,2915,2837,2853,37,2441,2354,2752,2850,1610,798,1657,2553,1668,1835,740,1122,2736,20,804,2480,528,2826,2861,1705,2034,2794,2382,2842,2825,2860,2392,2133,2658,1707,2841,1636,570,762,2950,1223,2962,1656,2838,2847,62,367,2638,2840,2957,1706,3047,2839,752,1663,2635,756,1197,2659,2489,2844,2993,213,774,2849,3161,2843,3167,2789,2560,1840,2601,3143,3155,1655,2848,2936,546,2373,2930,1491,1336,2982,2033,2751,2959,1225,3137,3174,3009,2798,866,344,3182,3156,2285,2013,2476,3160,2330,582,1905,257,2835,2996,3041,47,2836,48,1675,44,2799,2801,2479,1899,2994,153,3008,1823,2014,1995,2417,3159,2800,38,50,2011,3153,2019,2562,2001,1972,1962,3165,2025,2791,2012,3120,31,2792,2893,30,3162,2652,1782,1815,1626,2885,2924,2020,1674,2477,2007,2952,43,3149,2953,2954,1009,1794,1810,2762,32,1673,1672,41,1978,1743,2017,3017,46,52,1829,45,1966]
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_std_org_vocsplt_nodrums_demucs":
csv_normal = "balanced_bimodal_final_std_org_vocsplt_nodrums_demucs_features.csv"
csv_annots = "balanced_bimodal_annotations.csv"
top_features = [1152,1755,1747,2889,525,1166,1151,2897,1750,2892,2091,2092,2105,2106,133,507,927,945,1089,1441,361,1077,2055,1603,1497,1475,246,21,10,909,923,1071,529,772,136,1537,407,1455,1604,1489,1753,13,1574,2903,526,1065,1765,946,252,247,917,2906,1053,1550,929,1059,1748,1768,1090,1761,2687,1764,109,2061,1154,1481,2597,404,406,2895,911,1952,2085,1609,778,235,497,2907,2708,2694,2890,2709,2695,2056,1469,905,2910,1757,1539,2289,770,1350,1101,1726,1194,2086,958,1760,2598,1940,9,357,121,935,1772,1078,1594,1096,2068,251,115,1792,2688,84,2069,2075,2299,3198,753,503,2087,1472,1607,1652,2074,2902,2090,1460,438,2603,899,1839,2298,891,71,1084,1863,776,2899,146,3197,431,2302,66,2599,2405,236,1637,1447,879,1419,2083,1448,1102,469,3005,2297,2089,2277,897,764,1506,3228,3227,1982,468,1153,509,8,784,2136,2107,2066,885,315,893,669,1155,2404,1581,2868,1568,1072,1035,782,1378,1874,2142,3203,513,941,1590,1108,2081,1407,2627,1650,521,3210,1047,881,2057,1909,448,3232,131,1798,1806,1485,3124,1161,1461,681,2981,1406,2064,1189,2940,2268,363,3082,2625,86,790,466,3216,2072,3223,766,80,2073,1442,1483,3211,254,1107,1470,1791,1507,3229,58,1649,11,1195,3206,1897,1756,152,1915,1353,2631,3224,2693,2076,1364,1928,1845,362,2303,960,1023,465,2778,1643,2691,3231,2084,447,2311,1857,1468,358,1474,2914,1862,1393,767,1777,1582,1775,79,1605,64,887,3004,2334,1596,1887,1821,2917,464,964,527,1787,2094,963,1041,1800,1516,2071,1449,2145,1444,2672,1802,2600,1150,1770,928,2082,277,1965,1518,1055,1552,692,1790,2306,1433,2919,1168,2109,101,794,2445,1639,2051,1988,1635,3236,3,2364,2689,281,3217,2912,1487,2108,413,2877,2070,1231,2697,954,1634,1149,240,3225,1349,3112,2898,1900,1066,2065,1427,2683,1789,1955,1953,1435,166,321,796,2317,1971,873,1486,2929,950,1754,2677,2999,2772,1114,2764,417,956,1644,1234,415,2146,3029,3113,1422,2483,1774,1638,975,2319,1842,3242,1029,137,1377,3051,2310,2942,130,1865,445,418,2307,1803,1334,2194,1805,938,1859,2099,977,2271,437,3208,1941,1885,532,1595,1543,446,2678,2399,434,2948,439,3094,1530,1502,2275,1735,2963,2987,1729,1508,1080,1098,562,2010,1420,2274,2363,70,2765,2077,520,2335,922,2088,2628,1538,443,757,2769,3040,1653,1933,697,556,788,2684,2406,1984,916,1640,1868,2166,2067,2049,688,685,2028,1371,1428,1451,1633,3007,2269,2411,2172,435,412,1624,2292,2670,3039,440,1412,1416,2451,1898,3130,2763,1967,414,2130,976,2776,2442,3085,1651,1549,3083,1357,1664,2934,2875,1113,968,3214,2188,3070,2756,1647,3199,1125,1356,1092,1912,2615,2632,3126,3042,1434,1060,90,2920,352,1767,3152,2626,416,410,2944,408,241,2775,1646,2452,1191,1970,2485,1878,2931,1119,2316,1210,981,2149,3016,2407,1482,793,2513,2058,409,538,1542,1476,3212,474,1025,2132,775,1864,2984,34,1903,1778,1372,1352,2009,3220,1667,1943,1068,962,1906,2634,480,2111,522,2702,1546,1061,761,754,2648,1479,2078,1358,2633,2647,1216,18,910,2278,59,3106,1931,2712,1630,3222,1822,2507,1490,1727,1869,479,1529,894,802,3006,1264,1641,2337,2348,1017,244,2313,223,2896,3218,1733,516,85,2620,3193,1532,411,944,3027,855,2606,442,1345,1126,285,2440,1876,2998,1049,763,2127,3230,1322,3219,2079,1973,1120,2329,2524,476,1904,1645,2916,3001,920,2834,1793,2759,1690,2473,2692,1086,882,1739,755,892,1801,3226,477,162,1824,932,3151,140,1929,505,7,2147,1544,2580,812,1079,2933,2454,817,3115,2760,2579,1026,869,875,3179,2401,2710,444,689,2295,2457,2512,1085,211,217,1440,2376,2294,2050,506,2617,1833,1825,1073,898,2777,1807,1170,2790,209,2773,314,2614,874,2375,2629,806,2909,867,1178,1964,2771,229,2761,1981,1922,1211,1763,1804,1467,851,1327,3075,1910,29,2766,199,829,2037,1795,2551,811,1465,918,1024,3215,2644,1834,3107,2949,1037,253,243,53,671,1235,2767,758,2475,1569,845,2098,3127,35,3213,2779,760,1175,1514,2080,2320,969,1373,405,3057,880,524,3191,1786,1014,1776,2572,1217,1980,1886,2975,3054,2755,2613,1856,2943,2515,2552,39,1192,2928,2296,2947,333,673,2750,2619,1985,914,1056,1608,948,2176,2774,1762,2429,280,1104,904,2366,1011,1031,2970,953,3207,2410,161,2731,2137,1648,550,1365,3045,441,2027,779,2427,16,2946,1074,1888,2381,682,2945,263,1619,3048,1836,970,2610,2770,544,493,2733,472,1019,1329,780,3237,91,2932,308,104,3073,1730,2714,1629,2179,683,818,1587,2616,547,3200,478,3028,2570,1920,2618,40,1986,475,2976,327,256,173,25,2161,2113,1454,983,2120,2286,2623,2121,1457,2430,1991,2006,2185,1205,2102,1621,3192,27,773,2608,1671,965,94,1036,2737,1013,840,868,1054,896,2594,471,205,686,155,2143,2641,3138,3122,2331,1769,1545,1654,1177,2624,1105,2175,3129,2622,2428,364,959,3030,24,856,853,287,1511,1741,1974,1987,876,2506,1879,1553,900,839,3097,2593,800,2793,2591,2063,832,1109,870,2611,2913,2780,174,2612,3095,1779,1075,2096,2378,1045,1611,2038,1832,2676,530,605,1642,2745,2192,3071,1048,822,1589,861,470,864,1227,168,2639,2342,599,3241,808,3046,2448,982,2630,2705,242,785,884,2097,2367,2607,1956,1043,1588,2642,850,1005,151,3235,2021,2093,695,2416,3243,2674,2550,2655,1736,2592,2283,2343,2232,2141,2643,147,769,2662,2663,641,1548,3021,340,1012,2384,1099,2129,335,2163,2305,1960,1018,854,838,28,250,2566,886,221,1989,2518,1700,1771,309,2471,2290,2300,1111,1618,2015,2837,2735,2193,204,3128,1872,2135,82,2640,2395,647,2333,2824,2502,820,2969,3052,3020,2196,304,317,3102,844,2754,2974,1734,1318,2878,860,2177,2043,1744,134,701,3109,665,826,2052,2272,2871,2669,836,846,2495,2128,1062,1870,3022,719,1218,63,112,2340,274,902,2874,3194,2344,1042,2332,1559,2171,814,834,1752,517,2110,848,2345,1997,2153,1632,2008,2881,2978,833,2530,95,3116,2869,3011,351,888,704,1894,828,2886,3014,345,2990,1963,2884,2964,2312,841,2519,1917,2180,659,1742,202,862,342,2539,1992,2000,2195,2003,2747,1027,2533,2548,1020,842,2115,3180,128,1826,329,2569,288,328,2744,2189,926,924,1039,1968,2707,303,2328,347,2446,1732,1555,2414,2682,1081,272,26,1421,3018,2351,1456,339,3110,2649,355,2985,2369,1463,2532,2536,185,2972,473,536,2413,1996,2397,906,2685,2568,1881,1930,2183,1737,1843,284,1976,2701,1087,541,2716,2104,286,912,2894,380,971,1273,3043,518,611,1015,3105,2022,433,2424,23,3131,3170,2144,2004,1877,2412,635,74,2720,1050,2723,2387,2883,653,1021,1946,3139,2346,1583,2979,2724,1226,1837,2276,1093,2664,847,2700,2967,2988,1853,2604,2730,821,2522,294,2718,890,2486,1057,2757,2935,1957,258,2717,1038,3135,3123,278,593,1531,3133,3148,623,1880,2538,1117,1882,3036,301,1033,3117,1274,1260,1030,2160,1841,1196,3010,2527,1203,2370,1784,2002,374,2938,2187,1998,2713,2124,3172,2101,228,2462,859,2738,2528,324,1321,3202,2030,2398,2100,1731,617,878,2318,2739,2420,1990,1994,22,2138,1379,2703,629,2911,3062,2390,2173,275,17,2361,1938,310,2732,1873,553,1458,2734,1069,3145,2696,2505,980,1631,595,1129,1923,2679,3019,1517,216,226,2358,3146,908,2432,292,827,2699,2425,311,3238,297,2321,2983,1939,320,791,2876,261,2797,2415,2872,572,2041,307,1871,3044,1554,1443,2646,360,1890,2966,2309,2190,300,337,2284,271,1317,2666,2439,2986,1855,1535,1944,214,1975,57,2526,2995,3144,3244,2347,3141,305,2509,1809,1979,2459,2191,289,3125,2918,1942,2516,2273,666,295,2746,1051,1816,2546,2523,2621,1977,3157,1934,2281,76,2973,2464,1846,1303,1224,198,4,2322,302,1818,232,2379,312,2119,2833,596,2474,2421,2154,2031,1221,1032,354,1799,3038,3069,259,797,1612,1246,857,1891,2525,2279,1464,2423,1616,1063,2531,566,2169,2497,2181,2383,2386,2980,3185,206,1462,164,189,359,348,3132,3136,1901,974,1884,467,2921,2888,2545,2650,2385,2158,2016,3221,3024,1232,1954,2494,341,559,2675,2186,1999,293,3169,2706,1115,1919,3111,3061,319,2961,3034,2742,2661,1627,2741,2125,2660,265,1123,15,2668,809,1617,2182,54,2368,2388,2958,2667,1745,306,3098,2426,2722,385,3134,3142,1926,2905,803,3064,792,2882,1916,2046,2501,2956,1259,2937,2349,2563,336,1945,2951,3239,1796,2470,3086,2665,1927,2042,225,2926,1127,3002,1044,3240,1828,2748,2282,1883,296,208,3118,2394,2436,2651,1819,2743,331,269,2469,2681,1797,2438,1969,1902,3068,2508,2206,2487,72,1847,2517,3012,2460,2151,2287,2637,264,2609,2585,1844,1006,299,3023,1781,2721,815,1838,141,2461,3173,3209,191,3163,1498,323,1620,2408,270,3140,290,2280,558,3037,2510,1561,334,3087,2727,3060,584,2645,1895,1937,2054,3013,2372,3195,2402,432,60,2565,3166,2155,1949,1615,3000,2540,381,1162,2941,1848,594,2018,1296,1854,2419,551,3033,1212,2534,2542,2873,2521,2927,3059,330,1860,2870,2557,1993,3015,2500,2726,2036,298,2449,349,3032,810,1628,3025,1935,583,2556,1908,576,267,1785,1613,343,2356,2418,1740,2047,3147,2126,2879,1907,2164,2753,3063,3150,2991,2671,3080,2977,2835,1896,1914,2270,930,2511,2118,2359,589,2352,2433,2324,2159,2887,2584,1623,67,2380,2636,2389,3003,2360,690,2024,222,2564,2341,2805,2749,3092,2338,2103,2768,2400,2184,3158,2673,154,2904,1932,3100,1831,75,2053,2605,588,3096,569,73,171,872,3186,2498,587,2900,3190,563,2039,1983,3196,2968,2458,2960,119,2574,1746,2537,2431,2339,1913,3084,2117,291,266,19,2466,3234,2122,3164,2503,1817,88,2371,716,2377,2535,2472,111,672,2304,2167,1861,2059,2544,3049,2060,565,2488,279,539,2541,338,2391,2908,2589,1780,2123,548,3081,2989,3205,325,1758,2170,3088,2062,2939,972,2653,684,268,2450,2558,1783,1851,618,1958,220,2165,1950,2044,2463,2168,2327,1867,2314,273,1220,318,2288,2806,110,382,1436,1788,1297,1190,188,2529,2140,1625,260,2468,2114,2657,2396,2350,3056,2040,1198,2836,3050,1751,2758,61,2547,1331,3074,1849,564,2353,3101,2453,316,2602,1959,195,3201,1560,3189,1680,1889,2336,1911,3103,728,3183,3204,624,552,2880,3072,2971,1961,2325,1679,3035,350,135,1814,2308,2728,2992,2437,1921,3053,2482,2595,2403,3058,2374,3177,3188,1622,3026,1866,1682,2997,2455,1343,2026,2293,2139,3178,1681,2554,3076,2032,2150,1951,2409,1918,545,3119,1830,612,3067,2447,2492,1892,3108,2365,2725,2514,1925,2553,512,966,367,2134,2959,1614,1678,2465,56,852,2555,3055,3079,2156,1893,2422,2804,2493,1852,2965,3176,2499,2588,1850,2481,3181,3233,2444,2578,346,93,2157,2962,2480,3104,2174,2116,1340,2456,2573,2582,2393,3089,679,2922,207,2807,3093,2950,2443,816,1499,1738,6,1541,1199,2752,2315,36,2795,1820,2131,2812,3099,143,2373,2576,2362,1812,149,984,2355,1121,3031,2581,2045,1875,1008,2813,1504,1685,1924,2242,986,3187,2930,113,3114,1686,165,2323,3065,1533,233,2788,2823,2357,1827,2680,1669,2808,219,365,3184,858,1661,2162,2787,2822,2794,2467,2205,2740,1677,2559,2152,2549,2955,2785,2820,1684,2786,2821,1668,1670,332,123,1662,2796,1660,2719,2814,2504,2811,1689,1247,2213,740,2212,2211,159,2204,2203,2789,2210,2224,2202,2231,2201,2223,2200,2218,2230,2222,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,1947,2841,2023,2207,2784,2819,2250,2251,2252,2253,2254,2247,2248,2249,2209,2208,117,2239,2240,201,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2561,249,2590,2246,55,77,89,92,116,122,230,231,248,276,282,356,1773,2244,2245,1659,1610,786,1687,2496,1708,1713,1719,1691,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1720,1722,1723,1724,1725,1721,2571,1709,1710,1714,2810,3182,1704,2238,2993,2520,2704,1519,2596,3154,2815,3091,2233,2235,2236,2234,2237,1702,2583,2241,2729,2809,1128,1703,49,1688,1701,1683,2243,1811,2828,2863,2601,1699,678,2829,2864,2957,2803,1658,2490,2543,2830,2865,2575,2654,1122,2484,2567,3168,2831,2866,2825,2860,2434,1707,2095,2826,2861,3159,2827,2862,2577,1705,1706,2832,2867,196,2915,2435,3121,1766,1276,2847,2441,2783,2818,2491,322,2478,1808,2178,3047,37,2392,752,768,68,2711,2354,2996,2850,2848,2658,2698,2852,2851,2853,2923,2326,3160,1663,3143,2005,2857,1657,2856,2859,2013,2858,3066,2849,2854,344,326,2656,2736,3167,2842,2586,2781,2816,2802,2782,2817,1676,2686,105,3161,2843,69,20,129,546,1223,2855,581,3077,62,2019,2840,1197,2587,1995,2035,804,3175,2994,1656,83,756,3174,2489,3156,2844,3153,44,1823,2846,2560,3155,2001,1665,2034,3137,2011,1813,2982,1491,2635,2285,2638,2048,2133,1666,2925,2417,255,1905,798,774,3041,2330,2476,1655,2839,1225,2798,2033,528,2382,2845,2020,570,257,2479,2017,1336,3009,1899,48,2838,2936,3162,38,762,1636,2893,47,3165,2799,2562,2791,1840,3120,1743,153,1675,2953,2885,2659,1815,1728,1858,1962,2014,1810,866,213,31,3149,2801,2012,2800,2792,1782,1835,2924,2751,582,30,2952,1626,2652,2007,50,1674,43,2025,1672,1978,41,1673,3008,2762,2477,1972,32,1829,52,3017,2954,1794,46,1009,1966,45]
bad_iteration_list = []
elif dataset_name == "audio_balanced_std_org_vocsplt_nodrums_demucs":
csv_normal = "balanced_audio_final_std_org_vocsplt_nodrums_demucs_features.csv"
csv_annots = "balanced_audio_annotations.csv"
top_features = [1152,525,1747,1755,1166,2055,2889,1151,2897,507,927,1750,1441,2105,2091,2106,2092,945,361,10,1497,2892,133,529,1475,2056,13,1065,21,1089,909,1071,1077,1489,1765,1768,1550,772,407,1537,946,404,406,1455,1059,136,526,1753,2057,1574,3197,246,1760,1757,2085,2061,923,1053,109,917,3198,2907,753,1090,2910,776,2902,1469,1154,1748,2068,2903,1761,357,1603,121,770,2086,911,1764,252,1194,778,2899,9,247,2074,2906,891,897,2083,2597,2708,2709,2694,2695,2075,2895,1839,2890,1539,469,1604,497,2687,1078,1350,1594,958,2066,1609,893,1481,1096,2090,2087,2107,1485,236,3210,1406,1982,2069,1047,2603,1419,899,2289,2599,115,2277,2688,2136,1084,235,2299,466,784,1447,879,2142,66,885,8,521,2981,1427,905,438,3228,1874,2073,764,1101,1637,465,1887,2089,1650,2598,1652,11,1649,251,1353,1102,84,1928,3227,2302,1472,431,1590,1607,468,1153,3203,1506,1155,1072,1798,146,362,1364,3231,2071,2072,2084,928,782,887,1035,2081,358,766,513,464,2298,1735,1845,2064,1842,1407,2297,1581,1149,1470,3,3229,71,935,3216,3124,1487,434,681,2691,1378,2693,1486,881,2627,3211,3225,1483,1234,1643,1460,1644,790,1775,3199,1552,315,1952,1568,1791,503,1772,1640,2940,1582,3232,166,1756,1150,1634,1638,2109,3223,2877,1516,1596,3236,1635,1448,1231,2051,1023,1461,277,2625,2067,1435,86,2631,1066,1433,1434,1885,1653,2778,152,1777,2094,1108,80,1474,1468,1041,1444,3217,131,79,64,1161,3242,58,922,2058,281,2987,1412,767,1800,3206,2065,1264,692,2049,1770,1988,1647,1915,788,2764,2405,1595,1733,1641,2076,2082,1941,1451,669,1806,435,1518,1605,3208,2917,2274,916,437,527,2303,1538,418,1530,1802,2776,2070,1055,3070,1334,2775,873,2077,2875,3224,1029,1420,2689,975,2948,413,1357,1371,1440,1984,754,1767,321,793,2683,1107,2632,1929,3083,1569,1778,910,1428,2677,2306,1754,1774,2765,1940,697,130,2763,950,685,1422,964,794,956,2919,1349,2028,1803,1060,2770,2404,1639,408,1393,101,2319,417,2898,2292,2942,977,520,409,1953,3029,1125,446,3130,1664,1542,981,1189,2194,2600,240,1210,2130,1878,562,796,3016,1345,137,2310,2010,963,3085,3126,2268,775,1532,70,1356,1017,415,1416,867,3214,904,538,1170,1025,556,59,3226,2399,2909,1801,1529,2275,3027,140,3215,411,2009,2944,524,443,414,509,2307,1933,2145,2769,1645,1865,532,757,516,1646,855,363,2912,2697,671,440,898,2678,1648,3230,1377,763,1126,1981,3218,976,3152,941,7,1805,688,2626,3094,1549,892,2684,85,241,1476,1790,869,2317,2079,90,1980,3151,1931,2335,1080,1955,2311,412,2348,2771,1787,1454,2896,1365,2628,2088,2132,1467,1739,2920,1054,2050,3212,2137,442,2037,1690,2984,1372,1667,1079,474,2606,2772,1651,2710,416,3191,2761,3213,761,1876,1322,3005,447,439,1217,944,1216,448,874,550,3057,480,1763,3179,2363,250,2364,505,433,1587,1235,2427,2672,1886,2999,444,2127,1327,1553,1909,2759,1352,53,3207,779,2552,2551,1168,1026,2475,2712,2634,2111,802,2269,2411,2473,479,1358,547,2579,445,3220,1804,410,3193,2620,2648,2647,2633,1114,1482,2624,3237,2767,2021,2614,2623,2278,2428,162,1329,1985,2483,94,1479,2143,2108,829,2779,3082,2629,2524,1092,875,1178,2760,870,1514,755,2692,1734,920,1068,2591,2295,243,2670,880,2172,2063,352,530,2945,1061,1211,938,1987,1195,2175,405,2146,1863,851,2337,28,161,1965,242,1912,477,1786,2756,3243,223,817,683,760,2914,2038,2790,3200,773,689,1019,522,2916,2430,1825,285,493,3129,856,1633,2188,1056,682,1011,2774,769,800,2445,2027,2592,2943,1037,932,1619,3028,2381,2271,2933,886,2947,1903,1043,1457,1465,2098,811,1543,2015,1073,168,263,2313,3075,280,1205,605,3071,2766,1048,25,1085,1897,2416,1943,1191,1789,1989,2316,2286,2946,1546,1654,3030,1642,3222,850,35,1086,2457,3219,3127,2929,2296,1588,2113,1630,2570,1671,1105,1807,441,868,3192,1490,2580,2120,1974,2078,2166,1111,2121,1014,24,1075,2294,253,506,1727,1869,876,1822,2196,1986,1113,1888,155,953,2975,174,812,1589,40,673,962,2630,2334,2970,244,544,2192,2780,1769,1872,1119,914,2320,1373,1624,2442,2702,27,1545,959,2610,2185,2745,470,2179,1120,476,1013,26,1098,1621,599,471,2733,1632,818,2513,2949,2161,840,864,983,1726,475,2773,1762,1227,3107,2676,329,2777,1449,199,256,3073,758,2615,472,1792,845,832,806,2375,209,1736,2329,2485,104,1005,2735,1049,173,861,2874,327,1922,1904,969,91,888,2440,1967,2613,1910,308,2507,2932,2616,2195,229,1608,1104,2714,860,2594,2410,2928,3235,2141,2611,2135,2617,814,3122,39,2407,2290,2747,2193,1732,204,2384,3241,1074,2618,2700,1507,2043,3020,2868,862,841,3128,151,1045,820,2099,1793,1776,2452,1024,2096,1920,2622,134,1020,541,2754,1834,665,2429,2998,333,1868,351,826,2401,2176,2608,2149,611,3170,2612,2102,686,808,1963,2128,1880,1018,2110,617,1109,2744,839,185,2593,1879,926,902,2963,647,1036,340,2276,2366,2731,1784,1873,2506,2147,3054,2682,3001,1062,1629,3131,3004,63,1618,1175,287,2189,2643,314,1012,3123,1730,1877,2471,2191,226,1093,34,2973,2662,2663,1031,2701,2655,1742,838,2186,2644,847,2171,854,1744,317,2003,1997,2022,968,3097,309,1960,3157,2052,3040,1042,2153,2163,2340,719,2512,3102,1218,1511,2406,641,884,1508,2097,1843,623,1821,1442,1611,3172,2343,2129,3052,695,2793,1741,286,473,701,659,1321,18,2755,896,785,2737,2718,128,3095,1898,1559,82,982,2572,629,3194,566,478,2187,221,1099,3180,3021,3116,2566,2824,2232,2342,2986,2530,3018,517,635,2004,2177,2284,2886,1894,2448,112,254,3051,2387,3039,1027,3209,1129,2931,1841,833,3106,217,2080,844,836,2104,1882,2183,211,2328,797,274,846,960,1926,1051,704,2619,272,1837,2550,1844,1881,2723,2344,653,1832,1517,3069,205,2881,2502,970,2724,878,853,2008,2376,1555,1192,3110,335,595,2115,2985,2287,2913,2367,2720,2346,1273,2716,1826,16,1771,1318,1998,553,1531,259,2180,304,1779,2983,1968,842,301,2160,2533,2548,821,57,3113,2144,2522,1964,1833,2674,1203,2300,3238,2454,342,2979,1729,912,1554,2878,202,1917,1030,2964,3022,2730,2030,2331,2016,2446,1890,303,2607,1824,791,2750,3109,380,147,2523,265,3244,1544,3139,971,2318,3023,2869,3011,1081,1785,890,2413,297,23,1033,1752,2976,2911,2884,1177,2345,2871,1934,2741,3138,2138,1087,2974,536,294,341,288,3068,1853,1548,1855,2681,2398,311,2046,3062,1463,2557,848,1260,2518,2665,2894,3105,1057,2462,2668,572,1117,2967,2333,2739,1971,328,2569,1846,1069,908,355,1050,2432,22,1906,300,3144,882,3045,385,2451,2526,3145,1296,2173,1809,339,1458,2675,310,1991,2006,3046,2797,2531,2713,216,2707,2972,2182,2742,1956,258,2649,295,2158,2279,3169,1443,29,2420,2486,292,275,1977,3006,1946,2969,2641,1583,2305,374,2876,2757,929,596,2519,2154,2935,2667,1870,2395,3042,3112,2280,2100,1317,2412,2990,2685,1039,1883,1975,1226,3036,2717,1930,2664,2505,2934,95,74,1259,834,2883,359,780,298,284,214,1196,1303,1115,2093,347,1891,2122,2466,1900,1627,2568,2283,1944,305,1038,291,2705,827,2515,2181,208,3221,2312,593,2666,1996,2124,2956,2585,1828,3239,1622,2414,381,3202,2164,2469,307,3117,1862,2743,1745,3240,2472,2044,3010,141,2988,2281,3204,2321,2509,68,3038,1836,1379,1631,678,1421,2190,672,206,2938,2423,2332,323,2351,1781,2421,2495,228,2679,2461,559,3163,859,2379,3118,302,3185,296,2650,1456,2418,1032,2640,306,269,1021,2882,2642,198,17,1990,1994,1908,1737,3059,225,1927,2378,518,289,2439,2272,2155,3064,2539,299,2474,1464,3134,3142,2455,2459,337,2604,1970,3019,2119,293,2103,1462,980,3140,1731,2492,312,1907,164,2527,2926,290,1895,67,3158,2966,2660,2415,1274,2170,809,2464,1932,2347,2637,2905,2738,2389,3014,1044,584,2370,1246,319,2661,3205,2586,594,3032,2042,2206,828,1945,1896,1796,3115,1819,1973,1816,1814,2385,2341,2722,1612,3146,1857,3133,3148,2437,2391,2748,3034,2134,1006,2390,3048,1871,1939,2528,360,2545,154,320,191,2768,2468,1123,3132,3136,2834,1797,72,1783,2358,1617,1923,2595,3234,2563,88,2703,1795,1860,2669,2438,2041,2727,2588,334,76,1740,60,382,2980,2968,2054,2140,1854,188,1831,1221,539,2904,3061,331,278,2639,271,2532,2536,1623,2002,2732,261,3043,2460,2424,2927,2529,1614,1616,1758,569,1615,2433,1937,1838,1063,3033,273,2309,232,2397,2961,2887,1969,1856,267,2491,318,2978,2456,3044,3189,2576,2288,4,1851,563,2621,2951,1628,2349,324,15,1848,2501,3012,1812,2425,2918,1935,2546,2937,2157,2026,2139,1924,330,2872,336,1916,2031,467,2487,815,2510,2036,2059,135,2958,2538,2169,2721,1859,716,332,1818,2493,1224,2314,2350,2908,1938,2184,2582,1901,1799,2516,1992,2000,2322,270,2159,2525,3037,1343,264,2488,576,1535,2558,2609,2888,2728,2746,583,1830,1127,348,2753,2118,1636,3086,345,2282,1212,2489,1850,3141,3233,3087,2941,2408,2386,1921,1015,2060,1957,1949,894,2368,3007,2434,2503,3076,2534,2542,565,54,2388,1849,1919,3088,2419,1867,3063,2369,1892,3024,260,75,581,1976,2517,684,548,268,803,3166,3125,2463,326,325,2450,2431,3164,2167,1613,2273,2581,219,2394,165,2497,2125,2361,2706,551,588,2646,3013,3190,3196,1902,2711,3111,349,2995,558,1746,3089,2880,2636,73,1502,1682,61,1788,2101,2444,2293,3072,2436,2400,1780,279,3055,666,3035,2435,3056,2500,2651,3104,3184,972,2573,2383,2989,2359,2699,354,338,2039,2879,1232,207,1738,1914,3119,110,2372,19,1847,2605,343,2360,222,2494,1861,1498,2024,2574,1297,1766,1811,1681,1925,552,3015,857,2443,3060,2541,1499,589,3186,2426,1884,2377,2734,2921,2544,3188,3098,974,2565,2751,1817,2991,1893,1913,1162,2133,2504,2151,2578,2053,2939,189,171,2758,587,2470,2900,3100,3195,1751,2126,2362,2560,3135,1700,2117,2575,3026,2521,111,316,220,3101,2596,1840,266,618,1561,2671,918,2324,3003,1680,545,2380,564,1541,2338,3183,1864,1866,2168,2040,2165,367,2657,2449,3081,2365,2062,2749,2870,1918,2602,3000,3091,1190,1436,2422,954,2511,965,2482,3074,2997,3176,3031,822,1813,1560,1198,2018,2339,1331,2873,2356,2270,2537,2729,195,2308,2977,3079,56,2458,196,2047,3178,1504,364,3092,2922,2564,432,2352,1983,3201,3187,2508,83,2725,350,2353,3049,2833,3103,3025,3093,872,2589,1121,3177,2514,2357,3058,3080,2467,2326,322,1889,149,2409,624,3147,2152,2327,792,69,2480,1875,2960,612,1961,2925,1852,2584,113,2547,3096,2315,2336,2787,2822,924,119,2577,2114,1942,346,1979,2955,2786,2821,2540,1336,2162,1958,3065,1008,3067,2653,2638,2543,2673,810,1827,6,2680,2396,679,2481,3121,512,1220,2330,2590,2686,1999,2556,93,2374,2535,2048,2555,31,2156,2403,2393,1959,2740,1199,3050,986,2447,2562,2465,1676,143,2788,2823,2116,365,2453,3154,233,2752,3173,2696,1687,2131,36,1340,1533,2587,1954,62,1679,3053,1686,2736,984,2923,900,3114,2243,2837,2645,966,2571,1951,2789,728,2836,123,2304,582,2249,2248,2247,2246,2245,1672,3150,2785,2820,2783,2818,1688,2244,2782,2817,2261,906,2798,2915,2033,2262,2210,2214,2215,2216,2217,2218,1703,2233,1701,2250,2251,2252,2253,2254,117,2263,1658,2264,2035,2265,2266,2267,2234,2256,2255,2719,2402,2235,2236,2237,2238,1657,55,2809,1683,2197,2198,2199,2200,2201,2202,2203,2204,2239,1655,1656,77,89,92,116,122,230,231,248,276,282,356,2810,2811,2781,2816,1684,2219,2220,1677,2690,1773,2211,1685,1708,2221,2212,2285,2213,2225,2226,2228,2229,2227,2222,1606,2803,2230,2231,2223,740,1689,2323,1678,2224,3168,249,2240,1659,1722,1723,1724,1725,1711,1662,1709,1710,1712,1661,2242,1698,1694,1695,1696,1697,1699,2208,948,2209,1660,2207,930,3099,213,3041,2808,1247,2257,1519,1707,2804,1714,2930,1713,1704,1715,1693,2832,2867,858,2855,1720,852,2854,1691,1716,1717,1718,2812,1721,2856,1947,1702,2698,2835,2441,1706,1692,2559,2831,2866,1719,2857,2258,2259,2260,2802,2965,768,2830,2865,2859,255,1808,1276,2852,3084,2858,49,2659,2490,2846,1705,1620,2241,2829,2864,2123,2496,2325,2851,816,2828,2863,2845,762,1625,2815,3181,774,2095,1993,153,2982,37,2850,2561,2853,2174,2499,3167,1670,2827,2862,1820,3066,2005,2654,201,1128,2796,2971,2484,2382,2806,2498,2805,105,2936,2478,2034,2814,2841,2838,2601,2950,2813,2840,2842,2520,2826,2861,2023,2825,2860,3175,2371,2844,2807,2178,3077,2839,1610,1950,3108,1823,2795,1197,3008,2025,1491,257,2794,3002,2392,2583,690,2849,2843,2205,786,528,2993,1122,2554,1666,3165,1728,3155,2847,546,2658,798,3143,2549,1009,3161,2784,2819,2032,1669,1668,2567,129,159,1911,2726,2007,2656,2994,2848,3137,44,1962,2479,570,2635,2150,1794,756,1858,2553,2893,2996,30,1835,752,344,1663,38,2013,2992,2652,2355,50,3047,3182,804,48,2011,2045,3009,1665,2704,1995,1626,3159,2001,2417,1899,2799,1225,1223,2354,3160,2476,2019,1673,46,3156,2477,32,3120,1905,45,2020,2762,20,2962,1972,3153,2801,2792,2800,1743,3149,2014,2957,2791,1675,2954,1966,2959,1815,2952,2885,2012,3162,47,2373,41,1978,3174,2924,1782,1810,866,2017,1829,1674,52,2953,3017,43]
bad_iteration_list = []
##########################
## Standard + Original + Spleeter Vocals + Drums Demucs ##
##########################
elif dataset_name == "audio_full_std_org_vocsplt_drums_demucs":
csv_normal = "full_audio_std_org_vocsplt_drums_demucs_features.csv"
csv_annots = "full_audio_annotations.csv"
top_features = [1747,1755,1152,525,2055,1166,1151,3027,1750,507,3191,10,945,2091,2092,2105,2106,361,927,3192,1497,13,1441,2780,3028,3030,529,1089,2056,1475,2790,21,133,407,772,1765,1550,1071,1768,1065,909,1077,1537,526,404,1489,946,3194,1757,1760,406,136,2068,2085,2057,109,1059,2086,1753,2061,121,1090,1455,1154,2074,778,9,3179,1053,917,2075,776,923,753,2066,958,357,1574,911,2069,246,770,1194,1603,1748,1761,1469,2087,252,1764,2597,1839,891,2083,497,2107,1539,438,784,3193,2090,247,2299,469,1604,1419,1078,1652,1485,236,466,897,2073,1096,1982,1447,1637,2689,2081,1084,2302,1102,2691,2136,2277,235,11,1427,893,115,1649,2072,1609,1101,2599,1406,2142,1350,1483,1594,1047,2603,1842,468,2089,1798,2084,465,2071,1874,2289,1472,1607,905,8,521,1155,1845,1650,1481,431,2598,3180,764,766,1153,879,885,251,3,362,464,513,2065,1644,2064,887,434,2298,1887,1735,790,1353,782,1035,1643,1791,1407,2067,928,899,1772,1590,1486,1756,1364,2627,358,1487,503,315,1149,1072,1150,1634,1928,1775,84,1552,1988,1474,692,1635,1581,881,2076,66,1952,1640,2094,1802,2297,1800,2077,2109,1638,3181,1470,152,277,2082,166,1378,2070,2687,146,681,1161,935,1234,1516,1460,1434,2405,1435,1596,1653,754,1066,1448,1334,2625,2735,1984,1108,2274,408,281,435,1568,1647,131,1733,2404,1231,1915,2693,1433,2631,1412,1582,413,1595,2051,2028,2399,1023,767,1806,1055,1506,1444,922,2632,1468,1941,2268,1451,1641,796,2058,873,2049,79,1770,1605,321,1885,2303,1530,1518,964,1461,1041,1980,437,80,415,409,1790,64,1476,532,1778,1538,1529,788,793,130,1170,669,1777,1940,757,1264,1981,1805,2130,2088,1357,697,71,1803,1646,916,1878,2317,1865,418,2010,137,950,240,2683,86,1532,685,2306,2079,975,446,1801,1440,981,58,1017,1754,1371,1542,941,1639,1029,1482,2677,2319,1420,2194,1953,2335,2009,414,2684,527,363,2628,2310,956,90,2600,2678,794,910,562,855,2275,417,763,1774,1125,416,509,2307,2132,1767,1929,2672,2037,2475,1645,2137,1416,1025,892,1428,2899,1933,1648,1126,85,2629,2363,101,1107,2364,7,1931,1060,2626,516,1549,1467,1189,411,1327,1787,1955,867,976,443,1454,2606,1393,1909,2902,1569,1786,538,1863,2473,1322,2145,1080,1664,904,1763,1216,2292,1210,2893,2348,1329,1356,1349,410,412,1479,761,2551,556,2552,775,1345,1804,1422,2623,2269,2411,3070,963,944,869,2670,520,1217,2877,977,2634,2063,2483,2648,671,2647,688,898,2633,2727,1358,2457,1514,2078,433,3199,1092,2688,1876,1079,2889,2166,140,524,2579,2188,1054,2108,3244,1822,2892,2111,3238,59,2337,439,1727,1869,1235,2027,445,2278,1807,2175,2524,2427,3243,1056,875,2875,3237,1690,874,162,2172,2894,3197,444,480,1792,1912,1965,448,2050,1352,1985,2143,1377,2445,2295,440,2381,880,1651,1365,2038,241,1630,1114,168,2610,2868,505,94,2179,1633,250,474,1553,2271,2021,962,2416,1739,1587,1105,802,2192,1011,2098,886,1793,2915,2874,1372,2311,1989,856,829,1168,209,682,1897,1545,1667,2428,2146,760,2313,1178,1789,1026,2620,2334,1825,35,2127,1085,2320,1886,2734,2624,938,1019,470,1762,530,70,2375,1061,1619,1986,2630,1098,506,2570,3203,1734,1903,447,1642,547,932,769,2913,870,2401,2015,1726,3069,2704,161,1068,2296,442,2608,27,1073,1211,2611,2294,280,471,920,550,2329,1784,1987,2316,352,405,817,2591,2614,851,1834,605,953,2442,173,1086,2617,1546,477,104,1490,1195,1621,1449,53,755,1465,479,2485,2430,242,39,2121,2113,2120,683,818,868,1075,2616,811,476,1769,1191,2406,1910,959,544,253,2176,243,779,1868,876,2452,1880,812,3029,1049,800,223,1611,1014,1104,2580,2898,522,758,2153,1904,914,850,493,2471,1732,2513,806,2870,1373,1624,968,174,1922,2104,2096,2592,1872,2161,263,2912,1632,2102,2410,40,2195,1943,3026,204,888,1113,2911,1024,1967,28,1821,3094,3071,3051,1037,599,2615,2384,2003,2507,1974,329,773,2185,1205,2407,327,2171,2196,1321,969,1013,285,689,1920,1043,1111,475,2440,1629,63,340,2366,3236,472,2177,2286,2128,441,1109,2655,2890,686,2662,155,244,1119,308,1048,1543,2733,2663,3242,2163,2099,1589,3075,2612,2193,91,1218,2189,2328,832,2594,2004,2512,2043,2906,2903,983,2129,902,1548,226,541,1093,24,2676,185,1997,2276,2290,1964,2698,2340,1833,1873,287,665,1608,2454,1559,1654,2008,2429,1968,1730,1120,641,2149,1588,134,2343,838,2731,970,2387,1843,151,1736,1841,1844,845,3045,1031,635,2613,611,647,1898,860,25,1074,808,2506,1042,2187,2550,1671,673,3073,1062,3032,1888,478,2141,1879,2115,1877,2566,199,1020,1517,2593,2522,2376,309,1012,1729,1824,2724,814,2723,2716,2080,2622,286,1036,2895,256,2022,617,2097,333,3068,2725,34,18,2110,1018,623,2619,1457,2135,2191,1508,1511,2342,1531,2518,1175,1963,229,1971,2618,926,1837,2730,1881,112,26,1785,836,1776,2643,2557,57,2147,659,2644,2232,2100,1977,473,2333,2183,982,2180,2530,2533,2548,844,3200,595,2398,2569,1998,826,2451,1442,2186,854,1099,1742,342,23,1005,1087,629,2523,2346,1960,3057,861,2934,2682,314,1771,1033,128,2936,840,2345,2305,2448,1555,820,1826,1081,1227,1129,304,2284,259,2469,839,351,864,3182,1855,1991,2006,2607,1507,2502,1045,719,566,2674,2016,960,221,3083,272,274,653,1809,695,2896,2344,884,2994,2331,22,2052,848,3097,1853,1050,311,842,3000,1752,211,3010,833,2144,380,1883,2370,2462,1318,3012,841,1554,374,303,2519,3198,317,2572,1828,2103,254,60,1741,2367,2664,2122,216,2881,2998,1846,1051,3204,217,2349,1027,2695,2694,862,2395,2708,3052,2154,1870,2882,1781,2709,1832,1894,3095,1192,82,853,2138,2661,1926,553,1117,1882,275,1057,1862,385,908,2999,2318,809,1421,1616,294,202,1744,2869,3011,2351,2675,328,2432,2997,2666,2568,701,847,912,2420,2287,341,821,2660,205,2486,1779,2030,1906,896,3172,1618,2378,2459,2681,301,1783,2668,2413,2279,310,2312,517,1631,2181,572,536,1612,2641,2412,297,1203,1816,1622,2526,2529,2170,518,846,355,1177,3035,2685,2665,2505,1030,2679,2190,2300,228,1115,2347,2046,2309,2160,2527,2446,29,797,3085,2155,1544,2539,2280,2696,295,929,1836,258,971,1796,1930,882,2495,1917,827,1934,1456,1296,359,1946,1617,1737,1900,2173,2439,95,1039,704,3060,2332,1857,2164,2515,1970,3038,2468,1890,785,1627,335,2669,2093,2414,1973,878,1871,596,2464,1860,1969,1891,2158,1996,2650,16,2461,381,1623,288,2379,2604,2002,2509,67,1260,1932,2649,54,2182,1032,2455,1795,292,2963,307,1745,678,791,980,1613,306,300,147,323,198,2358,2281,2531,890,265,299,1317,1069,2563,2710,302,2472,1731,3063,2169,360,2283,1458,1990,1994,1975,1797,1303,296,1463,3176,1379,3173,1927,2460,337,3143,293,382,1856,2736,319,3108,324,17,2699,1443,1196,2119,208,3054,2415,339,593,2418,188,289,2369,206,2914,2935,2390,334,3064,2157,1221,1273,298,559,2528,1819,312,74,3137,2697,1226,1615,3036,1636,1849,2667,672,305,2423,859,1628,2314,1956,2640,2545,2546,1921,2965,2463,584,2124,1944,347,2397,2621,3114,1859,1583,1838,2558,2789,2044,1464,1038,1848,2184,291,2321,3039,1992,2000,225,1830,3024,2964,3141,467,1895,2400,336,2206,565,2431,3076,290,2516,1758,154,3235,273,3241,2421,2480,3178,1224,88,3107,1814,1788,2125,271,1560,3112,2517,834,2118,2385,2433,1780,214,2389,2456,207,1818,2466,3072,2361,3061,1884,828,1123,1740,1259,1976,2729,2642,2386,2581,974,2360,2636,2872,2595,803,278,2525,1923,2977,2326,1212,2474,1916,2377,3190,569,232,2437,2388,164,1274,2637,2728,2871,330,2272,2391,3005,135,2383,2487,345,3106,815,2026,1331,72,3034,2322,68,684,3113,576,2585,61,1896,284,2419,320,3184,2024,3006,331,2918,1854,2586,1246,2438,2950,3174,1127,270,1937,2036,2639,2042,2878,3135,2711,3132,3136,1935,2602,3062,267,2101,2510,3004,539,1850,2879,325,2521,2341,2492,594,1535,2501,2041,1939,3134,3142,3037,2532,2536,2117,3186,2500,2722,2059,348,338,2372,1945,716,269,1851,2491,2481,1908,2989,1831,222,3017,3177,2359,191,2425,2031,2436,589,1827,1918,2054,2408,3059,1861,2503,2282,972,548,2538,2609,318,1462,1738,76,3079,2167,2498,2703,2976,1006,2975,326,552,2134,2671,3175,2060,2497,2887,780,1502,2588,1044,2746,15,2897,1938,3046,2494,551,2288,2883,2605,2435,2424,2165,3187,1766,894,1919,1949,1021,316,2582,2426,1799,2159,2434,2540,1812,4,2380,1297,2992,3033,1746,2991,2576,2534,2542,2126,3056,2493,2745,1343,279,332,268,1893,1924,3119,2578,75,2573,3055,3048,2444,2738,141,2293,264,2589,2995,2350,1813,2544,1914,1232,2744,857,3118,2039,2273,2394,2327,3016,1847,110,2140,2564,2921,563,3077,1867,3201,2541,354,1892,2937,1907,1541,3058,2712,171,1063,2971,349,2488,3122,583,1015,3067,558,1561,2467,83,2907,1700,545,2876,1901,2910,266,2924,2489,1925,2651,2339,918,2470,1817,2362,2443,1913,2402,2957,1957,346,367,73,2018,19,1864,2720,1614,3196,581,1902,2368,2270,2590,2834,872,3091,261,111,2966,2938,3044,1121,3166,260,3133,3148,965,2584,2707,2047,3100,1950,1866,2114,1436,1951,2737,2601,3188,2352,2537,3165,219,1499,3087,3081,189,1498,2482,2967,2646,3147,3234,2922,2962,2338,3183,2575,2791,2884,165,2365,1875,1162,666,2952,3167,2168,3082,822,3025,954,2458,3074,1336,1979,2981,3096,343,2982,1504,31,3125,2535,3227,3205,2547,2960,2996,3124,3088,2330,2514,2959,3040,2792,2048,2993,3101,3225,3240,2357,3121,213,2409,2757,1811,2739,2499,2422,3102,2565,1852,432,588,3008,3093,1682,1999,2450,2794,1220,2304,3120,1008,2969,2680,587,2795,3202,3104,3105,2948,2979,2583,3226,2040,792,2951,3189,1961,2754,2793,2886,2796,564,2560,2511,322,2970,2374,1840,986,3103,2596,3110,2797,6,195,3149,810,3116,2556,2706,2717,3002,2324,3126,3221,2900,2308,2336,3007,2673,2508,350,3220,1625,364,2758,201,3157,220,2702,2447,93,1751,3169,679,2718,119,2653,2987,2657,2139,1889,1958,2742,143,924,3232,2940,582,113,2747,3214,2926,2955,3115,1198,3123,69,3019,2990,2748,3042,3014,2701,2116,1681,618,149,2504,1190,2520,2555,3219,3206,3215,2732,1728,3163,2978,2740,2692,1942,44,3001,3185,3213,2916,2156,2053,2713,2062,3151,3020,2824,2131,1954,2741,2984,2925,3129,2587,36,3130,2315,3023,2954,3208,365,3207,56,196,2919,3209,1199,3065,3086,3231,2779,2705,2638,2325,3092,2577,2449,2554,2356,2151,3159,3150,233,2941,2766,2152,2396,2888,1983,1858,852,3050,3022,2943,2768,1993,612,2654,2246,3161,153,1959,2759,2923,2753,2453,3158,2917,3168,2986,1835,2247,2248,2543,2953,2249,2980,2574,984,2751,3003,2465,2243,3145,3144,3015,3139,3084,2571,774,123,2873,2353,2133,1340,1701,3047,3127,900,1947,512,2847,2178,3131,2958,1672,2843,2988,2842,2250,2251,2162,2371,2252,2253,2254,3013,1703,2261,906,2242,2767,2835,2836,2837,2771,3021,2262,966,117,1683,1655,1656,1657,1677,2848,570,2686,1684,2263,1773,2764,2218,1658,1678,2213,1680,2852,2781,2782,2783,2784,2785,2786,2787,2788,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2808,2807,2806,2801,2802,2804,2805,2803,2800,2231,1685,2799,2212,2562,948,2230,55,2798,2851,2233,2856,1699,2857,2826,2827,2828,2829,2830,2831,2832,2858,2859,2861,2862,2863,2864,2865,2866,2867,77,89,92,116,122,230,231,248,276,282,356,1708,2265,2266,2267,2217,2225,2226,2227,2228,2229,2264,2949,2197,2198,2199,2200,2201,2202,2203,2204,2234,2855,2849,2850,2235,2236,2237,2238,2920,2239,2240,2825,2860,2932,2853,2854,2255,2211,2946,2770,2210,2947,2214,2215,2216,2245,2844,1820,249,2244,1714,2223,2224,2222,2221,2220,2219,1713,1709,2256,858,3138,2927,1662,1659,1710,2846,1715,2845,1661,1711,3109,1712,804,2841,1702,1660,2930,1719,2355,3146,930,2393,1606,1722,1723,1724,1725,1716,1717,1718,1704,1519,3018,1720,1276,2840,2839,2207,816,2209,1689,3043,3152,1691,2777,2973,2939,2208,2241,2561,1698,1694,1695,1696,1697,1721,2776,2968,1679,728,1128,2323,1688,1693,624,2880,1707,1692,3171,2257,2496,2035,2752,2765,2838,1687,2961,2174,255,2005,1706,3212,1197,3170,2553,3111,2905,2769,3160,762,3049,1705,2928,105,3230,2259,2260,2258,3218,2833,756,3156,3154,2944,2956,2985,2929,49,2933,3140,2285,3164,2373,2095,3153,2490,1686,2441,3080,344,2908,3155,1808,2714,3211,3224,3089,2931,740,2778,3117,37,3128,2743,2478,3229,528,2972,3223,30,2760,1911,1533,2659,2763,2755,3217,129,2559,2033,2775,2567,3162,2484,2762,3222,3210,2945,2700,2403,3228,2749,798,2719,2942,2658,3098,1676,3216,2549,2761,1610,2983,1491,1668,2417,3031,2885,786,1666,32,2715,2974,3233,257,2023,62,159,3009,1794,2635,50,1247,2773,1122,2774,1673,768,1823,3099,3239,2123,2025,2032,2750,2904,1620,2772,1972,2007,2354,2476,752,2909,2721,2479,1962,2392,3053,2014,1009,546,2045,2645,2656,1626,1225,1223,1905,690,2382,3066,1899,2726,2205,2019,2013,2756,1663,2001,2020,2150,46,1995,2034,1665,41,38,2477,1966,2652,2012,2011,1670,48,45,1743,866,1669,1675,1815,1978,47,20,1829,2017,1782,1810,1674,3195,43,52,3041]
bad_iteration_list = []
elif dataset_name == "bimodal_full_std_org_vocsplt_drums_demucs":
csv_normal = "full_bimodal_final_std_org_vocsplt_drums_demucs_features.csv"
csv_annots = "full_bimodal_annotations.csv"
top_features = [1755,1152,1747,525,1166,1151,3027,1750,945,1089,927,3191,1077,2790,507,10,1475,1497,1441,2780,3030,3192,3028,2092,2091,2105,2106,133,1065,2055,13,909,1071,946,923,1765,1090,1059,361,772,917,529,1768,407,1455,1489,2086,1537,1053,2075,1603,136,1753,3179,958,21,526,911,406,2068,3194,246,1481,1550,929,2074,1952,1096,1748,2085,1574,2061,2087,2069,1078,1772,109,1154,778,252,1940,2597,1604,1101,905,1757,404,247,1726,1102,2689,1652,1539,1760,9,1792,3193,776,1084,2691,2056,770,357,2598,1469,2066,121,2081,1761,2090,497,891,899,1637,1594,1764,1863,1609,2405,1839,1194,1649,1982,236,2073,2299,431,503,2089,251,784,1072,235,315,1650,2302,1350,1909,2083,3180,935,2277,897,1047,2076,1035,438,893,469,115,885,2289,1791,1643,1472,879,2072,1798,2268,2107,2064,2603,2599,2693,1108,1485,2071,1857,1607,8,1419,753,2404,2687,2136,2082,2057,2084,1066,509,1874,764,2334,1644,1447,2142,146,782,1055,669,11,1800,2297,1790,1483,277,1406,1845,1802,1756,1988,881,1448,790,1928,887,766,2627,131,84,1153,1842,1638,1965,1155,1862,1590,466,2298,1897,521,448,2065,1460,2070,2077,964,1506,1107,1149,2625,362,941,513,281,1806,1407,2088,152,2631,1568,960,2067,928,1189,1552,66,1474,468,1634,2094,1640,1023,1378,1635,1581,1821,1859,681,1775,465,1427,363,1353,1639,1787,413,1161,1041,2399,1516,1984,3,80,692,1647,2364,1767,3181,1518,321,2274,873,71,1470,767,1953,1789,1955,2028,418,2445,1150,2628,950,1641,1364,2672,956,464,796,358,922,2010,1805,1582,1393,1486,1461,166,1029,1487,1865,1653,1971,415,2735,2335,2451,2317,2600,417,1887,1912,2271,1596,963,1538,1646,434,1468,1900,1060,1915,1633,447,2303,1502,954,916,1770,1729,1941,2194,1530,1080,2363,1195,1433,1605,562,2670,2078,1777,1231,445,2688,2009,1834,1803,2269,2411,2109,1754,1114,2079,2108,1507,137,1451,1017,2319,1334,79,416,1168,2452,240,1508,408,446,2188,1422,2551,1645,1973,86,1967,2626,2051,532,2313,794,2507,2683,2407,1234,435,64,788,437,1449,2306,975,2454,2629,1025,1651,1435,2406,1778,556,2058,1864,2677,1444,2632,480,1980,412,1885,1970,1349,1943,527,1412,1549,2307,1878,414,910,1774,2401,2552,1822,2027,2310,474,410,892,2376,1833,58,1910,1648,1727,1869,2166,2049,2337,1476,101,1824,3199,962,2634,2172,2648,1529,2483,1345,2647,2292,757,1357,2633,409,1793,2348,2329,1428,1532,754,1735,2099,685,90,1733,697,223,443,1420,1898,476,1542,2524,1377,1876,1079,520,793,763,1630,1981,1056,130,2620,1903,85,2610,3045,2130,2570,1371,1482,2513,1216,411,2512,1098,1356,1664,1906,1836,1479,1763,1933,1434,1191,944,538,2684,2132,1068,976,2606,1092,1061,3029,1795,981,1210,1801,2678,1985,2442,1868,2617,140,1964,1804,1125,875,1264,1624,1170,918,1929,2550,1113,2063,254,869,2275,1073,2616,1595,1856,1807,439,1440,2615,2316,1543,2080,2311,2457,2630,1126,1352,3082,1514,2278,3197,867,761,894,1739,1786,2623,2192,444,688,1217,1690,1467,440,2611,479,477,968,938,2050,2037,1904,2475,442,1019,2624,7,2473,2176,285,775,874,1825,904,2727,1037,2145,70,2485,1416,241,2179,1931,3070,2331,2381,1085,1986,1546,1322,1049,2111,1569,280,1629,2614,2137,2734,1974,1119,522,1105,1667,882,2902,2102,2899,977,1327,209,2015,932,308,1120,1987,2410,59,2877,34,2320,1054,755,2506,2295,3094,2580,2021,898,2566,2189,802,2893,806,1011,1086,2375,493,2366,478,2440,1642,475,470,1026,2612,314,812,1031,1211,2515,1104,1048,1454,920,1886,2579,471,547,94,2294,1730,1587,2619,1619,1465,506,2378,1036,1621,217,1991,2006,516,352,2874,1358,244,2608,333,1544,229,199,1769,2127,25,1372,1024,2146,2618,524,53,505,2193,253,3203,2175,211,671,168,880,855,1771,1968,256,1989,1218,1734,2892,1235,2296,760,2180,1111,3032,2875,161,1075,673,2286,3244,1373,969,1329,3238,204,1490,2416,948,2161,1074,1997,886,2143,682,2915,1922,2384,35,1608,1776,818,287,758,104,2569,605,2185,2191,970,2622,1545,811,2641,1654,2003,1632,1837,876,817,1548,173,1099,29,550,2894,2533,2548,27,2038,1365,3237,2367,2427,1178,3243,829,2395,2448,1043,2644,2568,2340,327,2430,174,2177,2098,544,1013,2163,2096,914,1014,162,2195,2643,2913,309,2345,39,2414,2676,3200,1192,900,959,1888,780,1879,340,1093,2889,683,2343,3051,2428,2344,769,1920,1175,1872,980,2342,2704,2008,800,530,906,888,24,953,1843,1109,1671,2104,303,226,2572,2911,2043,1553,2613,870,2594,329,335,2093,851,1457,2471,2868,1762,1832,2333,2655,304,2662,405,2153,2663,2171,3068,1881,3069,155,3071,221,832,63,2518,26,2128,773,433,2870,205,2052,2522,1442,2387,2502,1784,250,472,2121,3026,2120,242,2539,243,40,1700,2129,2113,2332,779,1873,2519,868,91,3012,2110,2370,16,3085,1012,2682,1998,845,611,641,2305,599,2649,2196,1511,2115,2187,838,2183,1976,1588,1177,1589,3073,2300,2640,1062,2523,1018,2429,850,1611,294,1042,856,2530,2022,2898,2004,2912,2328,1877,665,2276,18,2592,1732,2312,2232,2347,3083,342,274,689,3010,2674,1421,1087,982,659,1205,2593,686,814,617,2346,286,2413,2890,2591,2607,926,2149,2669,853,861,844,1826,288,2724,1742,1736,821,2723,3075,1020,1005,1956,983,3236,151,317,896,441,647,2716,3242,2869,3011,2557,912,2725,1045,840,2290,826,1050,2415,2147,808,380,924,902,1030,3039,1979,2398,3198,345,1081,1555,623,364,2100,2639,566,1841,216,2446,310,328,1880,1960,28,2186,1779,2358,1752,263,839,2698,1977,2733,553,833,595,112,1846,848,1559,2412,820,302,1318,2144,1032,1946,1844,1039,2664,2016,2272,1033,1894,635,1975,324,1117,1884,185,341,473,301,147,272,1203,2138,1737,854,2527,1882,2351,2730,1741,295,2181,3052,57,3057,307,2531,596,629,2390,2903,2190,842,2906,3182,2604,541,719,134,2936,860,2141,785,1969,1321,2509,2675,2283,2101,1531,385,1618,347,1963,2665,884,60,572,653,202,2934,2135,2318,2650,2420,1129,695,2695,2280,2279,2694,2528,1883,1227,128,1996,2281,2361,864,1785,2397,297,2322,3000,1828,836,23,2998,704,1838,536,1617,2681,2546,1456,1930,2349,2119,2030,311,2538,827,2526,2505,339,2182,2994,2284,141,1855,1781,1027,1731,2710,2709,859,1303,2525,1992,2000,2708,2426,1745,2097,232,1870,2529,1796,289,2309,22,2462,862,3063,2999,2379,3097,82,1744,1860,1853,2439,2882,292,890,2731,1783,1616,2563,1871,1069,1463,3095,2545,518,54,2881,3046,2002,1038,974,593,2046,2124,2459,2469,3048,300,809,2997,2495,2679,3204,3036,1317,306,2895,2160,3035,1890,374,228,2287,1954,2125,2685,2696,2896,323,791,2184,1628,2154,1554,846,2385,2666,2169,1926,1816,908,3177,2935,1917,2425,1990,1994,1942,2532,2536,3038,847,259,1923,797,2421,1957,701,293,1809,1196,1517,214,2697,2369,1458,1622,2671,803,841,3064,2668,2516,1224,1057,971,3060,1379,1260,334,278,4,299,1927,2494,2565,3172,2173,2170,2386,1443,3176,2024,1583,271,559,2372,1123,2438,351,3096,1891,296,320,1627,2621,3054,2118,1221,2423,2273,1464,2455,2464,2729,1797,336,17,2702,2642,2103,2540,1916,2432,305,2419,1115,2383,67,2321,2486,1932,2418,1780,2699,1535,2517,878,1631,319,517,355,1623,337,2510,1226,1934,298,291,2636,1819,3037,95,1232,275,2460,381,1044,815,2651,672,828,2558,330,1831,1849,1273,2400,2703,2031,3058,1212,2359,1612,2270,834,1949,1613,2585,2501,2368,290,2389,1615,2388,2377,3034,331,3174,225,1021,1296,2521,1758,198,2282,2117,2424,2408,2122,312,467,2042,2036,666,3024,1063,2497,2661,1051,2500,1015,2155,2391,1848,88,1499,2564,2637,2394,2158,349,1799,583,2032,2736,1861,2026,2463,1818,3114,1274,2918,584,1740,2667,2547,258,164,284,3184,1944,1541,2461,3235,1896,2789,2327,2044,2534,2542,1921,3059,2609,2458,3062,2468,2535,2339,208,3042,382,2338,2722,1246,1462,3178,587,594,2206,1198,191,269,1895,2054,2834,2660,2487,15,338,2341,3241,539,2314,2589,3143,857,2646,1847,2992,3040,2045,2537,2039,3113,222,2326,1814,3201,325,678,1827,2872,1830,2114,1867,3108,3112,1738,2728,1889,1866,1938,2470,1854,1220,2466,2047,3017,1914,2431,2602,261,2474,1746,76,3137,2360,265,359,279,348,3107,1939,1919,2472,930,2422,264,2304,2712,1436,3061,2544,2965,2692,2041,432,2053,2126,2151,2352,2995,548,3055,343,2605,318,72,2914,1162,1812,111,3196,2456,986,569,1902,188,206,2653,2336,2164,1620,1918,1908,2977,3186,273,2059,189,3132,3136,972,1297,3106,3072,3050,3134,3142,3074,267,171,1999,2380,74,545,589,3033,2964,1006,2879,2584,1817,360,1331,576,2062,2492,3076,3135,135,3141,154,2123,1907,1901,2573,2950,872,2482,1911,2963,2402,2167,2711,3190,3089,1685,1498,2871,2503,1945,2447,684,3081,6,618,3044,266,2746,1682,2717,3187,2588,119,1561,1127,2887,2541,3049,1259,1788,2450,3093,2018,792,2921,2168,19,1190,1686,270,3091,3056,110,552,1851,3006,2575,326,1937,2324,2159,268,3173,2288,3004,1935,563,1913,354,2374,2701,565,3087,2744,1121,2976,2975,2991,61,2989,2657,822,2396,2040,2433,3092,2720,2745,2493,3016,2883,558,1892,2449,220,2508,1924,2453,2293,2673,2436,2791,2511,2116,316,2498,3067,2794,2897,2365,3079,1560,2393,2910,3031,2792,1625,1681,2795,1852,2437,2060,2907,2878,2738,3084,1687,73,2556,1893,1951,1950,2796,2140,346,350,2481,2793,1983,2134,2797,2465,2357,2325,2157,2350,68,2971,2555,612,3202,2488,2373,551,3005,2131,1688,2705,512,965,195,2737,2713,2554,716,1684,2514,3101,2900,2888,2409,3088,3100,3104,2480,2768,810,2758,581,165,624,2938,2754,2876,332,2742,2308,2841,564,3183,2576,36,2981,1680,1689,786,2970,2174,2739,2165,2969,149,2601,2759,2926,2766,2150,2582,2583,2840,207,2741,3077,2779,3122,2435,2586,1993,679,2884,2748,93,2839,2955,56,3126,2957,2924,3124,2152,2434,3025,69,2178,2353,2962,2323,2982,3175,3116,3120,2590,2767,588,2757,2315,2987,3110,1199,1008,2993,2156,1850,2578,2499,3166,1751,2922,159,113,2954,3019,1947,260,3133,3148,2967,2996,1875,2747,143,2937,1808,1679,3147,2948,3167,2403,1223,1811,3234,2162,3103,3125,2966,3119,3023,3105,3165,3144,2979,3102,2978,2960,984,2356,2048,2925,3157,2940,1728,3115,2952,804,2707,2986,3205,2680,3227,1247,2242,2581,2574,2553,3053,3149,2990,2949,858,3086,233,2714,3008,2905,2778,1858,2023,3118,1961,3240,365,2561,83,3225,852,2139,2951,2824,3130,3221,3129,1343,2917,1958,2777,2771,2543,3014,3226,3163,2832,2867,3232,3206,1340,3151,2827,2862,2920,2826,2861,2828,2863,3215,123,2831,2866,1661,2829,2864,1660,2740,3188,2732,3152,129,2830,2865,3171,3138,2953,2959,2567,3139,322,2753,3121,3145,2715,2765,3047,3169,3013,1678,3219,2930,3123,2749,3220,3214,3150,2213,2212,2769,2908,2211,2204,2203,2210,2224,3168,2202,2201,2231,2223,1925,2200,2218,2230,2222,2933,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,3208,3207,2941,2837,3003,2947,1683,2886,728,2261,2262,2263,2264,2265,2266,2267,2852,213,117,2851,2798,2836,2761,2847,2781,2782,2783,2784,2785,2786,2787,2788,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2848,2849,2850,55,2207,966,77,89,92,116,122,230,231,248,276,282,356,1773,1708,1713,2808,2520,2807,2806,2496,1662,2805,2943,2803,2804,2799,2800,2801,2802,2854,2209,2208,1225,3022,2825,2860,2904,2853,3146,2835,2239,2240,3189,249,2770,2587,1691,3109,3020,2927,3007,3021,2843,2844,2845,2846,2945,2760,2842,2763,2362,3164,2929,1709,1710,1714,1820,3231,1606,2249,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1722,1723,1724,1725,2932,2928,2571,2700,1721,2743,2718,2238,3213,1719,1128,3001,3170,2248,3230,2706,2764,3156,2916,2247,2233,2254,1704,816,2237,3212,2234,2491,2236,2235,2762,1701,2253,2490,2246,255,105,1720,219,3117,3158,3209,2984,2855,49,2776,2252,2980,2484,2923,3218,2371,2838,3211,2467,1614,2251,3111,2250,1276,2946,1699,2919,3127,2444,2255,2256,2257,2258,2259,2260,3131,3140,3216,3229,3224,2443,2942,2944,1636,3228,3217,2035,1659,2931,2856,2859,3159,1677,762,768,2857,2858,3018,2244,2645,2245,3043,3162,2654,2005,2638,2478,3223,1519,1813,1702,2972,1703,2577,367,2441,2656,2241,2243,2974,1504,3015,3210,2755,2958,2909,2773,2988,2095,2504,3154,3009,1533,3098,1610,3161,2751,3222,2774,37,774,2752,1122,2939,2968,2956,2775,1676,2719,2973,2559,582,866,2983,3185,3065,798,2635,2772,570,756,1766,2659,2489,3153,2961,3155,1835,2658,2595,3160,2985,2873,3128,2880,3080,2549,2833,1705,1658,3002,2392,20,153,690,1665,1491,740,3099,196,2596,528,2885,1666,201,3066,1707,2686,1336,1197,2205,2560,1706,2355,2354,75,1657,2330,62,1663,2750,344,2133,2013,752,1959,1670,2382,1656,2285,257,1905,3233,3239,2756,2014,1655,1668,2652,2033,2034,1669,1995,2019,1972,1840,1823,2417,44,2726,2001,2721,2011,1962,546,2476,2012,1899,47,2025,3195,1009,30,2562,1794,2479,48,31,41,2020,38,2007,1675,50,1978,1626,2477,32,1782,2017,1810,43,1815,3041,1743,1829,52,46,1674,1966,1672,1673,45]
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_std_org_vocsplt_drums_demucs":
csv_normal = "balanced_bimodal_final_std_org_vocsplt_drums_demucs_features.csv"
csv_annots = "balanced_bimodal_annotations.csv"
top_features = [1152,1755,1747,525,1166,3027,1151,3191,1750,361,507,2790,3192,2780,2092,2091,2105,927,3030,2106,945,1089,3028,133,10,1077,21,2055,1441,1475,1497,13,923,1603,1481,1537,772,1071,1726,407,3194,246,3179,1065,529,136,1765,909,252,1455,917,526,1753,946,1792,929,1489,1768,1550,1090,2061,1059,1952,2086,404,1757,1154,247,1604,2597,1053,406,1574,2689,1761,109,1760,9,1863,911,1764,958,2405,2299,1940,1539,1772,2085,1748,2598,2056,497,778,2404,2302,2075,2068,1101,2087,121,2069,2691,2074,905,235,1194,1096,1350,1609,3180,1652,1078,1469,770,2268,2289,3193,357,1857,251,1102,2090,2603,1909,115,776,1594,503,438,753,935,1862,431,1472,84,2277,1607,2334,1637,469,2081,2599,2298,2089,1084,1419,1448,899,891,236,509,1897,2066,1821,784,315,1839,1447,1153,363,1483,2627,879,2107,2083,1460,2297,1982,468,2073,146,448,66,2136,1756,2693,897,513,152,1035,1485,2064,80,3181,782,1072,131,1859,8,1155,2687,764,1189,885,1506,1406,1965,2625,2057,1791,466,893,1108,277,2317,2076,1590,669,1407,1581,1474,11,2303,2672,2142,1378,1650,941,1161,1047,1568,2072,881,1915,1971,2364,2399,2082,790,2071,71,1790,1649,281,521,1798,2084,766,1806,2271,2445,1865,2406,1643,681,413,2094,2451,1864,1874,1787,254,2600,1729,2631,1107,1775,1845,2363,465,887,1955,1364,1023,960,1900,1953,2306,362,1066,415,1334,964,1055,1449,767,1470,1868,2335,1502,1800,1507,1970,1149,796,2070,464,2108,1789,1777,692,2483,1516,1802,86,2628,950,1393,2077,447,58,2065,1596,1634,1582,434,1195,1605,321,79,1552,1770,1442,417,418,2313,1168,2670,1461,2269,2411,1644,1928,1988,1805,2407,1353,1468,2319,1842,1967,527,358,1041,1487,3,2088,2735,446,1833,1635,1638,928,445,1508,1639,1912,2109,2311,2457,1518,963,1427,956,2684,1624,2078,1080,2683,2307,1150,2401,873,1530,794,1941,1973,240,2678,2188,1754,1822,1433,2274,1774,757,416,2194,1727,1869,1646,2275,64,1231,1824,975,2310,1486,2132,2452,412,2099,435,2051,137,410,2010,1834,1114,1793,2166,2677,2634,1887,1803,1349,2688,2337,2028,1898,2648,2632,2130,2442,2626,954,3199,2633,2647,2067,1933,1444,408,2507,938,2172,439,2454,2473,562,409,968,2329,1856,443,1964,1420,1647,2485,1029,1357,101,1538,2292,1943,532,1795,2475,437,1984,2316,414,976,1422,2376,2375,130,1482,1098,2009,166,1234,922,697,754,1767,1435,1595,1542,2512,2620,2513,1903,1377,1476,1630,1490,1778,1371,480,1549,685,1640,2348,2551,1451,440,2552,2145,962,981,788,1906,1910,1633,2111,1216,1836,1885,70,2080,916,1068,556,520,2524,1479,223,1356,2629,1061,688,1651,3045,444,2146,1092,411,1322,1653,894,3197,474,85,1025,2615,2278,1017,1645,1125,1931,2440,1543,1416,2606,977,892,1113,1126,442,2049,352,2320,2295,90,241,34,538,1352,140,761,1358,1060,1735,2058,2619,1546,2079,2410,1073,1980,285,1929,1191,18,2727,763,1327,1664,755,793,1345,1733,1412,1904,1119,516,1641,2579,869,2037,2176,3070,932,1514,1428,2366,806,2610,1085,1079,1529,944,244,476,1372,2127,2294,1763,506,1532,1786,1981,758,1548,2617,812,2331,1210,2580,855,882,1056,479,1104,209,1922,1878,1049,59,2515,1086,1739,1434,1217,3082,7,775,2381,867,1170,802,898,875,1629,910,2893,2378,2027,2644,522,477,2734,1876,2471,1544,2572,1440,920,2506,2608,1667,2550,29,1801,161,280,1264,2395,2171,1329,2179,1120,2899,2902,1648,1024,2570,35,2614,211,1690,918,1804,1467,1026,880,2616,874,217,505,2296,1011,2518,1465,829,1545,1771,2877,1619,1373,3094,253,2098,1621,1365,1762,2622,2623,671,2641,1178,2050,1611,199,2121,2120,2113,39,1825,1211,2305,811,2630,173,3032,970,1218,1019,3203,914,2611,1175,2102,1807,229,314,2149,530,2192,1235,1192,969,2137,760,1920,2163,948,53,104,547,162,1105,1074,1031,478,2343,780,308,2566,263,2669,2345,1037,2892,2874,2161,471,524,1014,2448,2624,2128,287,405,1642,2429,25,1569,818,2894,333,673,27,1985,682,817,1177,2286,2427,2655,2063,2662,204,904,1454,475,2663,256,2416,327,2533,2548,1730,243,2096,2384,845,2189,3029,1036,544,1886,1553,851,2612,1608,605,1991,2006,2312,3069,2015,870,2367,1987,168,1062,2915,856,472,63,1776,2875,683,1870,1769,2175,1013,2038,2613,174,2704,3071,550,2300,1075,689,441,470,2147,3200,900,1205,2889,1974,1986,2340,94,2674,2193,2913,1048,2676,304,2177,800,2143,2129,40,2911,686,24,2180,155,3068,2568,16,1511,2333,3051,983,2618,1421,2093,1976,2639,868,1587,2232,2414,2519,2342,2569,205,1109,2430,1318,1888,1043,2868,2153,2640,1654,2428,2369,1054,2594,493,91,1555,3238,853,2332,286,773,3244,769,959,641,2870,876,2115,1559,1671,599,274,844,2290,953,1045,2898,848,902,2021,832,896,1012,242,2890,2344,23,2912,309,838,1741,2328,340,1039,2043,886,3237,1734,2502,2593,2358,965,1736,850,342,364,2695,2694,1457,2607,3243,982,1588,433,2104,1879,250,1956,1589,1832,2052,2413,2643,3198,1042,1700,2283,861,2370,1989,112,221,1779,3012,1837,151,1732,1111,2412,1005,1456,303,2276,2724,3085,2723,1099,1203,611,2398,2397,2709,2462,2349,2591,2604,2539,1321,3083,2708,345,2725,2716,2008,2185,2530,888,2110,2685,822,2272,2003,2195,1997,2679,1960,2387,3075,3026,1853,1018,3039,2731,2869,3011,1872,324,2650,2361,2141,2525,854,3063,695,329,860,22,147,2346,2682,665,779,839,2196,2097,3010,380,1968,317,1855,226,553,840,2710,864,335,185,1050,1877,926,2733,980,1894,2183,3073,28,2522,2592,1081,719,623,924,808,2649,134,1227,814,659,2906,1784,826,2698,617,2903,647,82,272,1752,1816,2390,2446,2124,2664,294,1033,2347,704,2318,2351,2135,1093,1618,1917,347,635,1117,1196,3204,1087,259,26,836,1946,2459,1871,2101,2439,2546,1979,536,906,2100,1880,846,2557,2415,2509,884,842,518,841,1260,2642,2495,328,1632,2030,2936,3000,1742,2486,2379,833,3236,2469,1881,629,1977,2464,2154,339,2004,3242,2998,216,1963,1843,307,912,1744,1992,2000,2322,1731,473,1923,288,2696,3182,820,1737,2538,60,3057,2383,2187,859,3052,1930,2505,1826,2528,1129,701,310,2388,1841,572,2697,2523,862,1957,2119,301,2420,785,2994,302,351,202,2125,2526,3172,374,2386,1032,827,2022,1809,2999,828,2702,1379,128,1020,2190,2881,1927,1631,275,1030,17,2191,271,2527,908,2636,2665,1954,974,2516,2730,1998,541,297,1828,803,1818,821,2279,292,1517,1781,890,2882,3096,2895,278,284,2935,2284,1942,595,141,1884,1819,1996,2281,2460,57,3048,3035,2385,1873,2321,1317,2309,2997,1612,653,2016,1975,341,1531,2181,295,228,2545,3046,1027,2896,2169,2424,385,2934,311,2532,2536,2160,2494,2426,1224,2432,1554,3060,2144,2666,2425,2002,1303,289,1069,517,1226,1916,2671,566,1882,2273,847,3038,1057,1583,2699,2421,2182,596,2461,1015,1463,1990,1994,2280,1848,2675,2419,232,355,337,2646,2621,2122,293,95,1221,1212,834,1938,1246,1617,1796,360,2359,2138,1969,3097,214,1274,381,1038,2563,3036,971,312,2173,306,2540,2703,1797,2531,2031,559,1846,1890,1464,1021,2041,4,2046,1860,2729,198,1780,2529,1799,1458,1627,1919,2668,791,300,2517,2661,1926,666,3054,878,3037,3177,593,54,1891,3064,1616,1883,2736,1051,1535,2170,1838,1232,2184,1844,1273,305,1999,2497,1783,467,1123,2521,3095,1613,2558,299,2651,2158,809,1561,815,2339,2408,2036,2438,2565,3062,2660,1622,3108,258,3137,1443,2681,1944,320,1115,3201,2722,334,2535,296,336,1758,2327,3058,2186,2470,792,2487,2338,2400,2423,3024,2463,1827,2534,2542,323,2042,1939,2155,354,2602,2270,2501,2103,2914,2118,3034,331,1615,2372,2368,2151,2918,2360,2541,2834,264,857,2282,2510,1623,74,261,1296,2117,3235,2341,1949,2872,3107,1620,330,797,1220,2537,2544,2789,3040,2047,2352,1921,1628,1934,2667,2032,290,2126,2547,2394,222,67,1785,269,1331,2712,359,2564,3174,2455,1854,3114,319,2589,2992,2287,3042,3143,2377,191,3241,3132,3136,298,1740,3017,164,2965,2474,225,15,2314,1745,2995,1902,1462,2653,2508,1297,265,2024,2468,3135,1861,1817,3178,2039,2498,2458,2472,3055,3106,2500,1901,1831,1063,2167,2637,2054,548,432,3176,584,2114,2977,2431,1044,1259,1162,3186,208,569,1945,382,348,325,2206,1198,267,111,1896,2380,1914,72,1932,3059,2436,3184,2692,2605,1911,1895,2373,1983,2963,349,2601,2964,2879,3113,2492,2921,2402,1127,2140,2746,2159,2466,2480,2018,2657,2418,930,583,3006,3050,3112,2374,565,2585,3044,19,291,2482,551,672,2609,1849,2887,2389,2738,2304,2336,2481,3196,972,1738,171,2871,2168,189,1541,2744,1993,2950,1436,1121,1935,3004,1950,1908,2711,3190,594,2040,589,3134,3142,2396,2350,2556,154,1190,2745,1913,539,88,3141,2026,2717,2391,2059,338,2673,618,1625,2045,1889,2123,273,2728,2989,1498,2325,1852,135,2991,684,2453,2044,188,1830,2584,2737,2449,872,2422,2720,2794,2791,2450,3084,1937,266,1867,1918,2493,2164,2792,1851,2150,3187,2795,2053,1560,6,2447,2739,587,3089,2134,110,119,2573,3056,1866,2465,2433,2511,206,2499,3016,552,2976,576,2324,2796,1788,61,2975,2326,2503,1961,367,2456,76,2793,2701,316,1907,3072,2797,3005,343,2757,2971,3049,2555,1951,1847,3091,2897,268,318,1958,3033,2393,2116,279,1006,2938,545,2365,220,1850,2357,1746,3104,2910,3061,3087,2488,3031,2553,2308,2957,2754,2131,2165,2907,2900,716,2742,2293,3053,350,3074,2970,612,1814,2969,3093,986,563,2060,2705,2960,1893,624,3100,2878,3101,3025,270,346,2156,2315,2741,2157,2740,2883,2748,2409,2926,690,2174,195,810,2062,558,2371,1223,2288,678,2323,326,2514,2752,2981,1499,3122,679,3126,1875,2888,2993,2982,512,2996,3081,2962,966,73,2876,2595,3166,2751,3202,3167,2924,2356,2990,1751,2884,3173,3125,93,3165,3022,2954,2139,2967,3110,3124,2841,1199,852,2987,2747,2955,2582,149,3116,1008,2886,984,3133,3148,2403,3103,2937,3189,2840,2948,2979,3115,1685,2645,2759,2966,2554,143,3147,1924,2922,2578,3188,2023,56,2949,2940,3019,3183,2925,2590,113,858,2839,2178,3149,2768,3023,207,2714,564,2753,3120,2543,3077,1491,3234,2758,3086,3088,365,3067,3144,588,3043,2779,233,2986,2952,728,2978,3129,2242,2549,1225,3092,1892,3105,2444,3102,1682,2951,1614,1661,1808,2766,3240,2824,3151,2437,2559,2959,2777,2771,2832,2867,3119,260,2827,2862,2561,2826,2861,3171,2930,2947,2920,2828,2863,3121,123,2831,2866,2917,2829,2864,1662,2984,2941,3109,1340,2830,2865,3157,3152,2953,2575,2574,2443,3130,3123,3008,2833,2767,2588,1812,3003,2520,2713,2213,3163,2750,3020,2212,2732,3150,2765,2211,2204,2203,2210,2224,2202,2201,2231,2223,2200,2218,2230,2222,2837,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,2362,3169,2749,1684,2908,1925,2250,2251,2252,2253,2247,2254,2248,2249,2933,3205,3146,3168,2905,2207,2945,2852,2836,1811,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,117,2209,2208,2798,2851,249,3138,2718,3145,2781,2782,2783,2784,2785,2786,2787,2788,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2244,2928,55,2929,77,89,92,116,122,230,231,248,276,282,356,1773,2162,2245,1708,1713,1719,2848,2849,2850,2847,2808,2246,2807,2806,2496,2805,2799,2800,2801,2802,2803,2804,2760,1691,2825,2860,2855,2853,2854,1686,2856,3021,2491,1709,1710,1714,2857,1128,2858,1721,2239,2240,2769,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1720,1722,1723,1724,1725,2835,3118,2152,2927,2859,1820,2707,2241,1704,2761,2778,3230,2844,2845,2843,2846,2762,165,3170,2842,36,1947,2243,2743,2567,2932,3139,3014,2238,1343,1660,1681,2770,1702,3007,1701,2942,1703,3212,3231,3001,2680,3216,2233,1680,3211,2237,2234,2236,2235,1699,159,2946,3164,3156,3228,49,3229,3218,2980,2571,3227,3111,2764,2923,3047,3065,3217,2763,2916,153,2943,75,2944,2489,3013,3224,1689,2490,2715,786,2755,1959,3140,2776,3117,1610,2838,2484,3154,68,3131,3127,3018,3185,332,3175,3159,1197,2467,3223,2441,20,2353,1276,3158,2654,2958,3210,768,2583,2931,3225,2919,3162,816,2974,2581,3076,1678,1247,1677,1679,3221,3002,37,1122,1519,3215,2880,2983,2774,3161,2773,322,2392,2095,2972,3226,3214,2956,3128,2658,2478,3098,3009,3232,3222,3015,756,2706,3206,2719,2772,3219,3220,804,1707,1766,3208,1504,3155,3079,2968,2961,2019,2775,2048,1705,3207,2904,2988,2504,1706,2435,2973,1683,2638,3213,3153,2873,2635,1659,219,2013,2577,3209,2985,344,1688,83,762,3160,1823,581,866,1636,740,1687,2355,1663,774,2939,129,2434,2700,2005,2587,196,752,105,201,2205,2035,2596,2656,1533,2576,2756,1670,2001,1995,3099,2560,2354,1658,3080,3066,213,2133,1669,570,2285,1668,798,582,2011,2686,528,2330,1665,62,3233,69,3239,2909,2586,1728,2721,1666,2659,1813,1657,1858,1905,2476,255,257,1336,1676,2885,2033,1962,2417,546,2382,2652,1656,2017,3195,2726,1810,2020,1743,2034,1835,44,2014,1655,2562,1899,1978,2479,2012,30,41,1840,1009,2025,38,1782,1829,31,2007,47,1626,1972,3041,1675,1815,1794,48,43,1674,32,1672,1673,1966,2477,50,52,46,45]
bad_iteration_list = []
elif dataset_name == "audio_balanced_std_org_vocsplt_drums_demucs":
csv_normal = "balanced_audio_final_std_org_vocsplt_drums_demucs_features.csv"
csv_annots = "balanced_audio_annotations.csv"
top_features = [525,1152,1747,1755,2055,1166,1151,3027,507,3191,10,361,1750,927,945,1497,1441,2091,2105,2092,2106,3030,2780,13,1475,3192,3028,133,21,529,2056,2790,1089,1065,407,772,1550,1071,1077,909,1489,1765,1768,1537,404,1760,1757,526,136,3194,946,1455,2057,406,2061,1059,2086,109,917,2068,2085,923,2074,753,1753,121,9,1154,1574,1053,778,1090,776,2075,3179,246,911,1481,2066,2597,1194,357,1603,252,1469,1539,1748,1761,770,958,2087,1764,247,2689,2069,891,3193,897,2083,469,2090,1839,2691,1078,2107,497,1604,2299,1350,438,1485,784,466,236,893,1609,1419,2277,2136,1406,2302,2603,2599,1652,11,115,1096,235,2073,1637,1447,2081,1982,1047,1472,1084,2142,1101,2089,1102,885,1607,2289,879,899,1594,2598,251,2072,1427,431,1483,905,1798,1842,3180,2084,521,8,1650,2071,887,1874,468,465,1845,764,1649,362,1035,766,928,513,782,2064,1155,1153,1887,434,2627,1149,1072,1791,1353,1772,1364,1928,66,2298,1756,1952,1506,881,464,790,3,1487,1581,277,1775,84,1634,2693,146,1407,2405,1590,1378,1735,2065,1644,503,358,1470,2297,1596,315,281,152,1486,2067,1552,2625,1448,3181,935,2404,1643,2094,1635,1640,166,2076,1150,1474,2399,681,1066,2082,2070,2735,1638,2109,1460,131,1568,1582,1800,1915,2631,1988,1161,80,1653,1516,692,1108,1231,1234,1802,2687,1023,435,2077,2051,2268,2632,1334,1055,1041,1647,2274,754,1941,922,1530,1435,1433,767,413,1518,1434,79,873,1451,1468,1461,1412,1777,2303,64,1605,1984,1538,1444,2049,1885,71,2058,1357,964,796,408,1646,86,1770,1595,1641,1940,1865,788,1806,669,418,437,321,2317,697,1805,2028,409,2319,950,1778,1733,916,415,1803,1790,58,2194,1542,1422,1953,1029,793,2130,1639,1017,1264,2088,1420,2628,2306,1933,1929,1440,532,363,1774,2672,757,2363,446,1371,1393,1107,981,2683,1767,1529,2037,527,2010,1189,2335,685,2600,794,137,1476,2275,2626,2684,417,509,2677,2310,2678,240,892,130,2137,2009,1878,956,975,1787,1532,910,101,1428,1931,1645,414,2132,2307,1349,140,2688,411,2629,763,1345,2475,1955,1416,1569,1356,85,2606,1125,1909,443,416,2364,2292,1170,1467,1863,1980,904,1549,520,2079,2348,516,1025,2552,1060,898,1216,941,963,1648,59,1479,2483,1754,2893,1981,562,867,2727,1080,1801,2188,410,1664,1126,448,2473,2269,2411,1482,2899,1210,412,1454,2877,556,2445,439,2902,2670,976,2620,671,3199,855,90,977,1763,2551,869,2108,1327,7,1217,480,2623,538,1079,1322,3244,2634,2648,2647,1651,433,1965,688,2143,3238,2633,2892,775,1822,1786,761,2166,445,2145,241,3197,2889,1514,474,1727,1869,886,1114,2278,1358,2337,2078,2271,2875,2457,1912,1061,3070,874,944,440,2734,1553,1377,1792,1807,1056,70,1726,444,2894,2063,442,1365,2401,1352,1804,3243,2313,2038,2630,2874,3237,1054,1019,2579,2334,2172,2610,1633,1329,1092,938,2295,1235,1630,162,2614,875,1690,2175,2050,1624,2027,2524,1789,524,1168,2442,2375,2111,2311,802,1739,1985,1876,1372,547,550,1897,1834,2868,250,94,2915,932,1011,506,2624,1068,1793,2381,2192,1667,870,505,2127,2316,1886,447,2179,1903,1545,1619,2320,1098,682,280,1073,2427,2021,2416,605,1546,2704,53,1587,2146,1490,1085,1642,1943,168,470,2098,530,1026,1987,2913,352,1195,35,755,1449,962,1734,812,920,760,3029,2485,405,2406,1967,1105,829,1178,479,769,1465,161,2608,880,856,2329,209,2617,3069,2410,1014,2513,1621,477,2570,1910,1868,1989,2440,1104,223,779,2428,758,1986,1211,1113,27,242,683,2452,850,522,2611,2120,2121,476,2113,2471,1086,204,876,2616,959,2870,2176,599,3203,1048,28,817,800,2407,3026,1825,1043,2161,2294,773,471,25,104,888,1974,243,868,1191,253,1629,851,2591,1075,914,2622,1762,2296,39,1821,493,1037,806,2512,953,155,2898,1611,1769,2615,2015,1013,1904,441,1922,2580,24,263,174,2507,1373,544,818,2430,3071,2286,173,2290,3051,329,2104,63,2698,2171,811,2911,1218,2153,1548,2102,327,1111,902,3094,2890,285,968,1920,1543,475,2099,40,3236,2366,3242,969,1833,1632,665,185,1671,1589,1784,1732,2096,1042,1024,673,256,2506,287,1654,472,983,2195,244,2193,2189,1880,1119,2128,1074,2676,611,647,18,2662,641,2655,3075,2912,286,1872,2663,2177,2613,1205,2276,1120,1964,1062,1321,689,2731,1049,2185,2043,3045,1588,2592,2384,686,1457,151,26,1736,1888,2163,845,1608,226,617,2340,659,134,1109,1877,635,308,2612,2376,2141,1837,1005,2619,808,1036,832,2328,340,1093,2129,2454,2196,2725,2906,2343,970,1898,1776,3073,2903,2566,926,1997,3200,478,623,3032,309,3068,2733,91,2448,1020,1517,1559,1824,1729,840,2135,2003,1012,861,2398,199,3085,1971,2342,541,229,1873,2644,2724,838,2080,2895,2387,1175,2723,2618,2593,1031,2429,2643,2518,333,2716,814,1771,1742,1508,1841,2345,317,1018,2594,1879,864,982,1045,34,1511,2149,304,473,2110,2533,2548,2004,1442,2451,3083,2052,860,1843,2550,2522,1507,1555,629,820,112,2305,1033,23,2569,844,653,2730,839,2232,2008,862,2183,1227,2097,2022,2284,826,254,2180,1855,854,1844,2557,2502,2607,2115,2187,2572,595,1894,960,303,2936,2934,2530,272,3057,1977,2191,57,2682,1752,1881,2344,1618,1963,1117,1828,314,221,553,1730,2144,1741,22,274,2462,1099,342,3052,2519,3198,1192,1081,2665,848,1027,1853,2100,896,1998,1785,2103,841,2147,2346,836,2395,82,695,566,380,2186,1087,1870,351,294,328,1050,2523,128,259,1030,536,1960,821,1809,2331,1926,1744,2994,2333,1129,719,2138,2469,216,217,211,2998,1177,912,2446,1531,1968,572,3095,3000,385,2318,2708,60,1832,310,2709,1882,2370,3097,2378,2999,2882,311,2694,2695,2896,1862,833,1554,2881,2679,3182,297,2016,2287,2413,2412,1781,374,1836,1779,853,809,1421,517,1826,2312,2160,884,2674,1318,842,1906,2030,1991,2006,2154,2279,3010,2685,301,2300,2664,341,846,2515,3012,2349,2367,2420,1890,797,704,1051,1544,882,275,2675,2122,205,2641,2997,2568,295,2669,16,2439,847,2351,2414,67,1883,2681,878,2046,2347,3035,2459,2181,2666,2640,791,2526,2650,1057,202,929,3038,2280,1816,2527,2505,1115,1612,2869,3011,1930,1032,1996,355,1970,908,2696,1846,1456,1203,1783,2432,147,1260,827,2668,2495,2472,980,258,1900,2539,335,3204,288,1622,1857,2604,2464,2486,292,701,1631,29,2332,1946,1917,890,1891,1039,785,1458,2190,141,1795,2649,2509,1973,2283,1934,381,1956,1583,2379,1627,1443,780,1226,2703,3054,2531,228,2529,2415,307,971,2358,2155,2173,1303,339,2170,3060,2158,2281,2660,2182,1990,1994,302,1927,1317,323,17,2421,1737,265,2710,300,1944,1871,596,296,3063,1932,2455,1069,2169,1379,2093,559,306,1856,298,1860,54,1975,1273,518,1221,2468,1296,1838,2460,2309,2697,1464,2385,3064,3176,324,2661,2736,859,2639,1745,2461,2699,198,299,2026,2002,2397,305,2466,2563,3024,2124,289,334,1628,1463,3143,188,291,359,2164,2914,2702,1617,3172,2044,3039,1884,1814,672,2423,1849,225,290,2729,2390,1859,1616,2789,3178,337,2041,1613,293,1758,1819,1780,2369,88,208,1895,214,347,1615,1196,2389,1259,1038,2321,3108,382,828,2963,1830,1224,3235,2935,2728,2119,1623,593,164,2314,678,312,1992,2000,1818,3241,95,74,2418,3173,319,2667,330,2322,2525,2463,3036,2517,1908,3114,336,1923,2642,2438,2528,2585,2042,2360,2341,2388,467,1976,1921,232,3141,834,2918,2545,1212,1796,1848,2621,154,2361,1797,191,584,1916,2184,68,1246,2059,1969,1274,2206,569,2637,1831,1731,206,3177,2636,271,3061,2492,2558,2386,2272,345,2391,331,135,2521,3137,2054,360,2722,2474,2400,2671,1945,3055,1123,2437,284,72,2965,1636,3112,2501,269,1740,1006,2060,1541,3107,2036,2433,539,273,2516,2872,2031,2456,803,1827,1896,1535,267,594,815,2546,1935,2125,2383,1799,2964,2586,3190,76,3113,3056,1854,2372,2408,2491,3059,2024,261,1861,1614,3184,1021,2977,1738,2157,318,320,684,1127,2377,2425,1850,974,2431,2950,61,2419,1462,3106,2532,2536,565,1560,2879,2039,1044,1063,716,894,2711,3072,2497,1949,2576,2897,589,2101,3017,2282,326,3134,3142,2609,2134,2487,278,2494,1918,972,268,3005,3034,3132,3136,1331,3037,2359,2871,2118,338,1924,1939,3006,2588,576,1907,1893,2878,2602,548,270,552,264,348,1766,563,551,1851,3062,2424,2510,1892,3135,2326,2573,2288,2534,2542,2887,1937,2503,3174,2541,2140,1938,325,1902,2992,3004,1957,1901,3046,2426,3016,1232,15,349,2883,2488,2581,2500,3201,1919,2167,1502,3048,2989,2976,2394,2712,2595,279,4,1297,583,2544,2159,2493,2975,2605,3186,2538,110,1812,1343,1817,207,1788,2434,2436,2646,2995,2745,558,3044,2470,3076,354,545,1746,2480,2537,2746,2582,3175,2293,2565,2651,3096,2047,1700,3033,1561,2489,1867,2910,918,2907,2458,2991,111,332,1914,3067,2744,165,222,666,2350,2482,73,2339,171,3187,316,367,2273,2117,1499,581,2380,2834,2564,2040,1889,1015,219,75,2707,2575,1847,587,3058,2738,1498,3081,3074,2126,260,857,2578,2921,2720,2540,19,2481,2971,2357,2435,1864,2924,2018,1436,1162,2327,2165,1220,346,1913,1190,822,2701,2876,3040,2791,220,3093,2444,3196,2705,2422,2692,189,2338,2365,3100,872,2589,1875,3122,2680,618,1682,2450,2498,3087,3079,2168,2308,343,69,266,2374,1811,954,3133,3148,2900,2938,2048,1961,2560,2409,3202,2706,2547,2884,2922,2362,2792,3050,2584,1751,3119,1999,2352,3049,2937,2324,3082,2794,1925,965,1121,2368,3118,2657,3234,2114,588,2270,3025,3147,1979,1008,2795,1951,3166,350,3205,2962,2957,2336,2713,2514,3165,2304,1625,2139,2796,6,195,432,2793,2952,83,2754,3225,3042,2601,3227,986,2981,2797,1813,3240,1852,322,3124,2116,3226,1198,2948,3077,1950,1336,2504,3126,364,2993,3086,2996,2443,3167,810,3101,2982,3183,2969,3092,2508,564,1866,2467,2951,2156,119,3116,2970,2960,2555,2535,2447,3047,2717,113,3214,792,2653,3221,2053,3220,924,3125,2511,2152,2966,2886,56,2330,3104,2151,2742,2926,2967,3091,149,679,213,3103,2987,2748,2979,3115,143,2905,3232,2737,2747,3123,2739,3215,3019,2596,2954,3206,3149,2732,3120,3007,2959,612,2955,2888,2315,1983,2131,1954,3159,3208,3185,3219,2543,3014,2590,2940,3213,1942,3209,2925,2162,3207,3151,3002,3102,1840,3098,2718,2916,93,2758,3110,2757,2499,365,2741,3161,2556,3121,3008,582,3231,1958,1199,2587,3157,3150,3105,2990,31,2325,196,153,1681,2062,2574,2824,3169,2986,2577,2753,3188,2978,3003,233,2919,1993,2453,36,3130,2759,2133,2771,2396,3144,2941,2465,3158,1808,984,2953,3001,2673,3168,2917,512,62,3139,2779,2943,2949,2927,2449,2562,2249,2248,2247,2246,2243,2777,1959,201,2923,2770,900,123,3020,2930,3138,774,2583,3084,2980,2353,2700,1701,906,1672,3129,2764,2843,2847,2842,2984,3152,3163,2768,2402,2261,624,2571,2920,3145,2835,2836,2837,2765,2245,2776,3131,2262,117,2848,2285,2214,2215,2216,2217,2218,2263,3160,2256,966,2264,2714,2798,2250,2251,2252,2253,2254,2265,2266,2267,2233,1699,2255,2210,2686,2740,2219,1683,2211,2212,2220,2213,1655,1657,1656,2234,2781,2782,2783,2784,2785,2786,2787,2788,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2852,2808,2221,1684,2807,1504,2806,2799,2800,2801,2802,55,2805,2804,2803,2235,2236,2237,2238,2239,2222,2225,2226,2227,2228,2229,2856,2857,2826,2827,2828,2829,2830,2831,2832,2858,2859,2861,2862,2863,2864,2865,2866,2867,77,89,92,116,122,230,231,248,276,282,356,1708,1773,1658,2230,2223,2231,2932,1677,2224,3013,1685,2851,2855,1703,2240,2825,2860,2849,2850,2853,2854,3127,1340,2244,2947,2197,2198,2199,2200,2201,2202,2203,2204,1678,249,3189,2946,3170,2844,2178,948,1709,2766,1714,2561,2973,1713,3023,1710,1662,1820,2323,1711,1715,1712,3088,2242,1661,1659,858,2846,2841,1660,3021,2207,1689,2845,2209,2208,1947,852,1687,1606,1719,3140,1716,2928,2638,1717,1718,1704,2393,1702,930,1688,2840,3018,2839,1722,1723,1724,1725,2769,1720,1691,3146,2833,1519,2929,3099,2257,2939,3111,3212,1128,1276,1698,1694,1695,1696,1697,2520,1721,3230,1693,3022,3218,3154,3156,1707,1692,2838,2944,2767,3015,816,3171,3117,2559,2258,2259,2260,255,1706,2496,2241,3109,2174,1686,2778,1705,2988,2095,105,2880,762,2490,2958,2908,1247,3224,2775,2933,3128,1197,3164,49,2371,2743,3065,2968,1679,2715,728,3211,786,2654,2032,3153,1680,2931,1728,2763,2956,37,2441,3155,2553,3229,3217,1610,3089,2873,1911,3210,2961,3053,3080,2356,2755,3216,546,2945,3162,2942,3222,2760,1533,2751,798,2972,570,2749,2484,3228,2659,1620,2567,2033,804,2762,3223,2985,2478,756,2983,528,2761,3043,30,2774,44,2719,1823,2373,2974,2005,2773,2658,2554,2772,768,2752,1491,257,2549,1835,129,740,1858,1009,2645,2023,3009,159,1676,1794,2885,2025,1668,1962,2403,344,3233,2635,3031,2721,2123,2909,2035,3239,1223,1122,2007,2904,2150,2013,1225,2045,2417,2205,2656,752,2382,2392,2011,1626,2001,2019,1905,1995,1899,1666,2014,1663,690,2354,32,2355,50,3066,1670,2034,2750,1972,1669,2020,1673,2756,41,2652,46,1966,1743,38,2476,2012,20,866,2726,2479,48,45,1665,1815,1978,1829,47,1810,2017,1675,1782,2477,3195,1674,52,3041,43]
bad_iteration_list = []
##########################
## All ##
##########################
elif dataset_name == "audio_full_all":
csv_normal = "full_audio_all_features.csv"
csv_annots = "full_audio_annotations.csv"
top_features = [1152,1755,1747,525,2055,3803,2889,1166,1151,2897,10,3810,1750,3804,507,3585,1441,1497,945,13,3749,927,2091,133,2092,2105,2106,2892,3807,529,772,406,407,361,3813,1765,2056,1768,1550,526,1489,1089,3750,946,1537,21,1475,3586,3588,1065,3338,9,136,3348,109,909,1071,1077,3811,3197,2057,1469,246,778,357,121,2068,3198,2907,753,1455,1059,1574,2085,1753,1090,776,404,3737,3752,2061,2910,770,1194,2074,958,4279,2086,1053,3805,4275,247,2895,2597,4182,1154,1757,4525,2075,2903,1760,469,917,891,2066,1603,1761,2906,923,2687,2902,2890,236,1748,1839,784,2695,2694,497,2708,2709,1764,2069,2899,3210,2083,438,1419,911,2087,1447,2688,1078,4276,1485,1604,1084,897,1539,1096,4519,4176,893,3751,1609,2107,466,1427,252,11,3228,1652,2277,1594,2136,766,251,1649,1982,2142,115,2090,2289,2072,8,3831,468,2071,4130,362,2599,1637,4272,1887,1406,4150,1102,3203,2073,764,3829,4571,1650,521,513,1552,879,2598,885,3819,4234,928,4361,3,1350,358,1874,235,2299,4469,3227,465,4145,1047,4383,2603,790,2081,3216,431,1353,2084,3738,4242,4236,4243,1644,887,2693,905,4179,1486,2302,4032,1798,2981,4522,1153,1470,1842,1101,4246,4249,1364,4232,1035,782,1928,2089,3825,4323,1607,1072,464,3229,1487,4295,166,4079,3921,3249,2627,3232,3848,3211,1735,2298,1845,2064,4237,1155,1643,4148,2065,3247,2877,4367,881,899,3843,66,1590,3919,4231,2940,1516,434,2778,2297,1638,4363,1468,3124,1472,3242,4271,4385,1568,1791,1150,2691,1474,2051,4317,1988,1653,1407,3206,1460,3236,1434,3217,2067,413,84,4389,503,4339,3225,1635,692,1435,4301,3199,1448,1634,3231,4320,3251,1066,1231,2082,2948,2764,3223,1952,2109,1885,1234,2625,1483,1775,1640,3897,3739,4163,3208,4184,4422,408,4258,146,1581,1733,1149,1378,922,681,2049,2070,4527,4142,3224,1538,1806,1518,435,2076,1647,873,1023,1984,1433,131,3293,1444,4319,315,2405,1596,2077,2631,1161,4346,4341,3029,3070,4315,796,3900,415,1412,3828,1595,4136,3959,130,1461,4162,532,2274,2775,1915,4140,1641,4273,1800,3841,2058,2776,4311,754,793,3245,1582,2987,4297,1108,1530,1334,1529,2763,1041,409,1481,1772,1506,562,79,916,935,1532,418,2765,3214,1777,1802,3212,4364,2404,4306,1770,2028,2094,414,4337,4368,1264,101,538,1549,2689,1941,767,4386,2632,2944,2130,3816,669,137,437,1605,685,1029,2769,2770,2399,1980,2268,417,1756,4312,2919,2303,788,4345,3822,950,2875,3215,910,240,1754,4137,956,4520,1055,1017,867,4268,1878,80,4298,152,4280,4180,2677,2909,2771,277,4316,2310,3016,4177,2683,1451,981,3226,411,4523,2917,1170,975,520,1778,2317,1801,3130,321,416,3867,4133,2137,556,697,2307,2275,1774,2194,3126,4199,2010,86,1420,3207,964,2319,7,2684,3847,2942,4542,1803,1125,1940,4302,4570,1639,1664,64,1645,1953,4293,4132,2629,1646,281,527,904,4155,3840,1416,1569,3846,1060,775,3027,1767,2600,71,2079,2678,2009,1467,1357,4338,1981,2896,3094,58,1440,4377,4360,3152,1428,4374,4324,3903,4303,944,3823,2132,2628,2779,3005,412,2306,90,3230,140,3151,977,3193,446,794,1210,2335,1217,1542,3218,2348,855,2626,4286,869,1371,757,1476,443,4333,3213,4381,2761,2999,2088,1805,1790,3191,3757,439,4397,1454,3913,4355,1933,2606,1648,3857,2192,2710,1955,763,410,2912,1054,2037,2364,2363,976,1393,1929,4347,1349,4281,1025,3237,2767,1763,2623,516,4382,4352,4289,85,880,892,4359,2145,3292,4379,4267,941,241,3220,4235,547,1876,3628,1329,4342,1107,3179,2916,874,2427,1216,4264,4313,1195,2483,2759,2579,2143,550,761,363,440,509,2898,480,1804,2614,875,1514,671,250,524,4310,4141,898,3451,2551,3755,2269,2411,2050,2984,1126,1322,1931,3083,2175,474,3285,3457,2692,1865,1345,1327,1080,162,1667,2670,2475,1422,1189,1690,688,4147,433,470,2552,4369,886,3817,2381,1786,4134,2292,3460,4350,2428,2672,3057,1651,4139,70,59,3243,1358,3435,35,2790,2337,4294,2920,4334,760,445,2524,1356,3450,4353,4227,1011,938,1739,2473,2127,1482,3861,3082,1989,2416,963,1019,1105,2063,2624,4330,2772,2445,2610,4233,2634,1886,2591,3802,920,479,2697,868,2648,2947,2027,2647,2311,2172,1633,1985,2630,870,4372,2633,2179,1365,1092,477,4259,2943,2278,3796,2933,4262,2773,1235,1352,506,2756,1449,3262,2766,2166,3452,209,962,3761,856,1377,3863,3447,1863,1553,3801,3627,471,2620,1762,2712,1630,2616,1787,3795,1909,544,2296,1079,3071,2271,1545,405,1465,242,2774,4152,829,2430,2146,3219,444,4290,2320,1056,2294,4284,448,2098,1178,2777,476,932,2313,4335,1987,3652,475,3824,4375,2946,2760,817,802,522,1587,174,155,3246,2570,4540,168,682,4308,199,4197,2078,4153,1825,4007,447,2457,1075,2038,2375,2316,1734,505,493,2113,4291,2120,2121,2949,2617,2021,223,3426,2592,3433,530,151,4437,4569,1191,2975,3075,1026,779,605,1543,442,2945,2108,4388,876,3609,161,2188,4366,2932,1372,243,253,1986,2189,2196,40,1068,3432,2485,39,4131,914,472,4328,3832,4185,3222,173,851,3028,2195,2334,94,1211,4223,3289,1037,2611,1168,2929,800,2580,1897,4567,758,27,352,2615,1822,769,1965,2733,1479,2928,4528,3128,2329,3129,4357,2185,1114,4143,3587,541,2295,2429,2401,3633,3127,888,53,2874,1727,1869,755,4138,2176,4418,4292,244,3473,2608,2153,226,2442,34,3818,1792,4287,1085,2193,2015,3603,4266,3852,2340,2507,4210,3471,1014,1912,1807,2868,3097,3837,4531,2593,2111,850,280,2161,2128,4188,1619,1086,2731,818,185,3122,4331,3854,2970,1218,1098,4384,4358,2914,1061,3879,2594,204,1490,811,2406,4278,1621,2735,3192,4439,1784,441,4356,2191,1769,4565,599,263,2286,4362,983,1789,2513,1732,2366,4325,902,2452,2177,1048,2410,1872,4553,478,134,4376,2998,2384,1922,3851,1205,2407,4378,63,812,3073,1546,1020,3040,2613,3209,24,3020,28,3875,864,4354,4129,1632,4380,2129,683,3200,2003,1024,3834,2747,635,2618,773,3631,2963,3018,3469,1726,1005,3456,641,1903,953,1111,2745,3590,285,3004,861,3927,3095,1531,3626,1642,1013,1033,3869,3001,3470,3911,1511,1036,3464,845,3461,1654,1880,3291,3107,1943,1793,3655,1049,673,2328,1031,1920,2171,2141,1629,1671,1119,647,3170,2163,2440,3235,959,2550,2612,1611,3241,25,832,91,1868,2702,229,104,1043,2104,4288,3951,1844,2522,1018,1373,1012,969,4265,1321,1888,1109,3131,3629,686,1073,3653,1588,3157,1997,2506,1589,926,2180,1042,2755,665,611,4336,3256,1736,1873,3428,2343,2149,2780,473,57,4566,4178,4314,2276,3740,1910,1559,23,2737,595,1045,1960,2096,2518,2471,4224,2387,1113,2744,840,1608,1457,4521,2714,202,2566,2135,2502,806,629,2655,2004,329,968,689,2342,2662,2187,211,2619,1093,1967,340,566,1104,2663,3106,1841,1027,1963,1877,2008,2533,2548,2102,3448,1442,2346,862,2676,3814,1834,1624,1192,3030,1904,221,2454,1508,1227,3283,1821,2512,3172,860,4269,4309,3895,1517,2793,659,1968,3794,308,3800,3615,205,1120,2754,2376,623,3758,3039,836,3453,4156,1730,1062,3584,2186,309,2530,1548,2043,1776,2232,617,2569,2344,2022,3102,884,4209,2290,4296,4222,1081,4194,217,351,3123,2183,4300,2557,2913,1771,1555,26,1879,2869,3011,814,653,2333,2964,3641,2622,380,112,1974,256,2367,1051,3180,4144,2643,4537,1881,838,2931,2097,1898,820,3051,2345,2824,3021,808,2284,2080,1837,4552,1742,2871,2115,2881,1057,3054,2147,2976,3866,2099,2398,2607,2973,3835,960,841,286,4477,982,333,29,1998,3022,1074,2523,1099,908,826,2154,3282,3281,3238,1964,2144,3610,3116,2519,3454,2052,3274,3494,1843,342,287,2448,1991,2006,970,2986,1087,1833,854,22,896,1785,1729,3113,4168,4049,839,3492,3252,2905,3253,2279,327,833,1507,1554,374,2644,2717,890,2720,3266,3267,1741,3244,314,1318,3570,1129,2138,2164,2682,3558,2718,3052,678,1616,3762,2505,1824,2432,2974,848,3912,2674,3870,2280,2451,1030,2122,1946,847,2894,2700,2723,2967,1890,4174,2462,1926,2983,3568,2420,2757,2016,2181,1622,128,2886,2724,385,3023,553,2539,878,3221,2990,853,1421,2110,1826,844,2309,3036,2664,2414,60,2934,2100,82,3730,846,882,1175,3830,259,2413,1744,4270,4274,3019,1050,2660,4157,2716,2287,1882,4340,821,1456,3556,3085,1894,2318,2666,4318,3109,304,2969,2979,2730,67,272,216,2661,1544,3194,2531,3062,842,2876,3042,517,3849,1779,1737,2526,4543,2878,2741,1917,2707,4536,3169,317,2935,2160,1930,704,1846,2395,3756,4200,275,719,4154,912,3552,2170,2370,2173,3427,3569,1752,1177,2331,274,2469,1934,4181,1260,303,2572,2884,2351,3105,2305,3110,4524,3006,3010,1617,3288,2300,254,18,4322,3557,2349,3204,2568,4332,1932,559,2701,1458,2911,4193,4146,1971,2529,2030,3286,2739,1781,2985,2665,3643,2182,572,2190,2332,3593,3268,1226,1443,1039,2446,3068,3069,2418,3833,701,2679,2988,1623,355,1032,4023,1870,2527,1038,2750,1631,827,359,337,1891,2459,785,1203,2545,1832,3112,95,2495,797,1855,1783,2281,1273,2675,2468,695,3202,3596,4189,596,2378,4087,2103,2528,297,3014,518,3555,1809,2412,1745,2641,301,1853,2486,2516,2681,2155,311,2668,1977,2347,381,341,3440,2621,2312,4228,3612,1996,2119,3923,2546,2046,4529,2649,2705,1862,1796,3158,258,3860,593,3024,4421,791,54,3521,4186,3032,2966,3439,1906,2685,4532,3701,2509,2423,339,1860,2461,3254,3594,2379,2880,328,971,1627,2206,1463,3139,1069,214,2713,2742,2604,3855,1612,2563,809,265,1883,382,4413,1758,4344,3862,2464,1969,2169,536,198,4202,2669,1900,3045,3731,3904,2972,2515,2460,929,2439,3472,3734,3666,4545,2558,1117,565,2390,3523,2002,1464,3887,3294,4533,4149,584,2283,2732,2538,1956,2415,3046,294,2157,4047,4226,3618,319,1618,323,2703,1196,3871,302,1816,2532,2536,3864,288,16,3144,3347,4240,306,2158,2358,4190,360,3732,2727,3034,3145,2118,3672,3695,3117,300,2883,3115,3622,1613,3493,2517,310,208,1836,2455,3205,2738,2501,2882,68,2184,298,291,74,1927,225,1583,2421,2503,1848,2743,4277,3522,3163,147,1970,1246,228,2500,88,3037,1973,672,4229,292,2388,3287,2433,2124,2879,2466,17,72,2938,1296,2369,1923,3535,3257,3745,3429,299,2797,2510,1115,834,1731,347,1021,2640,3699,4365,1795,3185,1857,3064,1615,2525,1379,1990,1994,4387,2093,2834,1871,335,3063,3038,2978,4135,3138,2360,206,2872,2768,3597,1274,3619,3059,2650,3736,2321,3595,2968,307,539,3670,3868,4028,1259,3748,3582,2397,4534,3033,2961,2272,3196,980,3665,2926,2361,3255,1788,859,296,3592,1944,2958,4191,4238,2472,135,2937,324,312,1127,1740,2386,2044,4564,1636,4031,3012,295,3935,2585,1895,1221,4221,3140,2059,191,3564,1303,2435,2041,716,2431,2408,2385,2706,154,188,4216,2282,2425,1921,4299,2456,2419,3634,1814,61,270,3563,2581,1939,1212,4559,2400,15,1317,3621,2054,164,2391,1797,4204,1916,548,815,2389,2487,3562,320,273,3799,3035,2980,3820,222,1896,1856,2322,3664,284,4041,1015,232,3591,1123,4343,2438,2165,293,2671,290,1975,2609,3118,467,331,2636,2900,1628,2605,3048,1828,3793,2908,2341,1819,1535,1992,2000,3061,271,594,3086,2667,2125,4530,2314,2474,2995,2424,3620,305,4187,2639,2463,289,3240,3304,4547,2377,1859,2436,4169,3671,684,2595,3043,1945,3744,3693,2042,2026,3476,3007,1884,2480,3508,3189,3436,3630,2748,3072,2326,3013,1854,3134,3142,3234,2642,2711,3649,2887,3547,3733,3617,1224,2582,974,2540,2753,2167,2541,2024,1560,334,3735,1044,2031,330,3575,3692,3700,4203,4015,1006,2481,2383,803,2941,1738,3430,3015,1849,2060,1938,4282,2437,1838,1331,3742,2443,2927,3087,576,3269,3303,2586,2960,569,2497,2036,269,4546,1976,278,3637,3550,1949,3856,267,3533,2564,1766,1937,3690,3694,2534,2542,3549,3604,2956,3676,2991,3677,3195,3553,2350,1812,3132,3136,2434,2918,551,3534,589,3166,1908,4326,336,3146,279,2288,3280,2588,2168,1924,3838,3044,3441,2746,31,338,141,4025,345,2359,3164,1504,2751,3302,2521,2637,1919,348,3296,207,3844,2273,3445,3437,19,3141,2544,75,3133,3148,3261,4055,2159,2573,3928,2126,76,3495,3606,563,972,3026,828,367,872,318,1502,268,3089,1851,2602,2494,780,3646,3680,2904,2352,2368,1462,2758,3076,1957,4158,2470,583,1935,3186,2578,3808,261,2492,1918,552,3091,3515,3295,3270,3088,1799,2426,3625,1746,2293,3190,2491,1818,4173,3060,2921,3479,2488,2339,1850,1297,1681,325,2018,1232,2117,4539,2576,1893,3482,1343,2651,2324,3183,2394,3092,264,2939,3529,2589,4453,4196,3654,1682,3239,2590,3658,2134,3635,894,2101,1892,2722,2372,4192,3025,3754,110,4348,1867,4535,3640,4166,4039,2444,3434,1436,3496,2402,588,3616,1914,326,3074,2327,1813,3853,3188,1925,1861,3574,4415,3524,2888,4183,3746,4431,2498,3525,3098,2951,4,1913,1907,3842,3065,2734,189,2356,1680,1541,4201,3510,4544,1780,3518,4526,3520,1901,3691,3706,3111,3480,3918,3349,316,2721,4429,2511,2493,3297,2535,3442,266,3031,2547,332,3350,2140,69,2749,3724,1902,2422,196,2380,3614,581,3645,1831,2357,4220,3455,918,4563,4170,1961,2537,3639,171,73,4056,4370,3315,1499,3659,3080,219,343,666,2873,3103,3613,2270,3678,1063,3119,3759,3602,3679,3352,1614,2362,2325,4445,3741,3353,3125,3517,3723,213,564,3093,2467,3351,3705,220,3392,3058,3354,3177,3079,3540,1864,3662,2699,954,2997,3081,1830,3560,3355,4040,260,3826,2039,3278,1162,44,545,1811,3509,3583,2338,2489,2514,2543,4558,3836,2365,3632,2450,83,3100,2575,3661,2556,3683,1498,4159,3316,354,1700,3747,965,4213,2728,2355,3527,2053,3506,3932,3725,4215,3178,3660,2584,3298,1999,3566,4217,2499,2601,1889,4446,3539,1847,4436,2482,3763,349,4556,2725,1336,432,4260,2304,3554,587,1561,857,2330,3474,3201,3465,3663,3682,3551,3444,1958,3181,1875,4560,2930,2554,2989,3468,3760,3528,582,1817,4059,3815,822,1951,558,3743,1220,3312,2062,2560,2596,3184,3099,195,3668,1751,3104,3565,2152,2565,2680,2114,2653,3477,3785,3300,3548,679,3715,2458,93,3309,4449,3783,3306,3792,3176,1008,3049,2508,4172,3096,3707,4206,1866,111,4562,3839,4046,3581,113,2786,2821,3537,3271,1728,4538,4161,4549,3608,2785,2820,3674,1950,3784,3275,3458,3727,2504,2409,3326,3101,3250,3317,2574,2156,2520,3260,3310,2040,2646,1198,2336,2139,1840,3721,810,3559,3684,3511,3638,4195,2673,3779,3324,3798,3305,2323,3578,3577,792,924,4551,4208,3673,2151,1947,2729,3147,6,3778,3391,364,149,3545,2048,3337,4219,1190,2315,1959,2308,3598,3681,512,350,3572,1858,3056,3481,1199,3498,2993,1942,3484,143,2131,2449,2562,4561,3446,4218,2870,3688,4171,2971,4455,3003,2174,3066,4063,2116,3055,3000,3265,3542,3651,3709,2657,1979,4441,3382,2996,3233,2787,2822,2371,3858,4541,2977,4151,4198,3937,618,322,3687,119,3325,2396,3777,2806,1983,365,3607,3667,2162,3772,3135,2465,3299,2373,2047,3443,4060,3536,2833,1954,346,3263,4065,3401,3944,233,2243,3580,3513,36,2123,986,2453,3499,2587,3483,3400,3642,3173,3463,3719,3516,3717,3657,3771,3790,3544,2555,2393,3114,2808,2447,3276,3488,2246,4164,2922,2788,2823,56,3773,2654,3789,2583,4554,4211,4430,1666,2247,1835,2784,2819,2248,2249,2638,2936,3475,3405,3053,2837,2476,1121,32,3716,3264,2374,3478,3512,1679,2035,3708,3600,3507,165,3766,4405,3497,2244,2133,2242,3311,984,2836,3531,3605,2752,2719,3767,3168,3764,3290,2798,3685,2807,3406,2245,123,3765,2696,612,1340,3726,3084,3431,1672,3821,3501,3538,966,3812,2783,2818,3647,2250,2251,3402,3505,3393,3394,3395,3322,1701,3485,3650,3697,4450,1852,2252,2253,2254,2915,4205,2261,2241,1683,1655,1656,1657,2262,2811,1677,2782,2817,2781,2816,1684,1678,2263,3410,1658,117,2804,2810,3409,3359,3360,2218,1533,3358,3363,3487,3362,3364,2809,3486,3365,3361,3366,948,728,3407,3408,3339,3340,3341,3342,3343,3344,3345,3346,3367,3368,3369,3370,3371,3372,3373,3374,3375,3376,3377,3378,3379,3380,3381,3357,2803,3328,2955,1773,1703,2213,1685,2265,2266,2267,2255,2264,55,858,2197,2198,2199,2200,2201,2202,2203,2204,3414,3415,3384,3385,3386,3387,3388,3389,3390,3416,3417,3419,3420,3421,3422,3423,3424,3425,77,89,92,116,122,230,231,248,276,282,356,1708,1659,2233,2234,2239,3413,2235,2236,2237,2238,2994,2256,2240,3356,2231,2230,2225,2226,2227,2228,2229,2212,3383,3418,3411,852,3412,2417,2217,3703,1699,2559,1714,1713,906,1715,3404,2690,3336,1709,3576,3050,2825,2838,2842,2847,2860,1276,3041,1710,3403,1711,3579,1712,249,3067,3519,2211,4003,2686,2923,3308,1827,3329,2214,2215,2216,2257,3167,1722,1723,1724,1725,1716,3571,1662,1993,3711,3710,1698,1694,1695,1696,1697,3573,1717,1718,1691,1606,2210,816,1720,2839,1719,2354,3504,1704,4447,2223,2222,2224,2221,2219,1693,2220,2848,1661,624,4042,3399,3929,4057,930,3334,3689,1721,1660,3704,3702,2258,2259,2260,1689,1692,3502,3490,2571,3696,740,3398,3397,1702,900,2826,2861,3546,3077,2207,3845,2209,4548,756,1688,2208,2832,2867,2005,3543,1707,3327,2835,1519,4067,762,4165,1687,4457,2843,3335,2831,2866,3589,3396,1706,2853,4212,2925,201,4555,1128,3729,2855,2852,4459,3931,4263,4351,2856,1705,3623,3939,2846,4160,2830,2865,4327,3713,3722,2854,4456,2736,3698,3438,49,2740,3491,3259,3718,1686,3323,2285,2857,2851,3301,3466,4051,1625,3611,255,2382,1676,2859,3121,4305,3770,3712,2858,3656,3669,804,2698,1820,3489,4069,2353,3150,3561,2561,3788,3714,2845,4066,2812,2496,3859,3728,2829,2864,4371,3601,2828,2863,3686,4349,3776,3806,1197,570,3541,2850,3321,2794,3333,3273,3165,2095,2033,3769,1247,3526,3272,2549,3782,1808,4207,3530,4550,2815,153,4460,3175,2827,2862,1668,3938,3781,2965,3914,3787,3780,2840,3775,2893,2441,4304,3940,4283,752,2490,2813,2484,3514,3307,37,4321,257,3500,4068,4458,344,3277,3768,3809,3313,3318,1673,2814,2553,3786,2841,3941,50,3774,3720,2805,3644,1626,3567,2659,4070,3791,129,2726,1491,2789,2658,2392,30,3503,1794,774,3320,3182,3108,62,2023,2844,2014,2479,2577,3532,3161,2567,3155,3675,4214,2025,4557,2799,1663,3797,4167,2478,3319,3154,2007,3187,3827,1122,2849,3143,3331,4261,2150,528,2178,2992,3624,105,1823,2950,2800,3137,3314,3332,768,2802,2801,3865,159,3284,2957,786,3330,3467,2045,2403,2205,798,3258,1620,2959,3160,1670,2020,2032,2012,1009,3159,3002,4239,546,1610,3009,4045,3047,1665,2635,3462,2762,1962,3149,1675,1899,2013,45,1911,1669,2011,3008,2652,2656,3917,2477,46,4462,1905,2795,2001,1966,1972,2034,2019,38,2796,3279,3120,1223,48,2982,1225,2704,1995,1978,4072,4432,2645,690,2962,866,3153,3162,1743,2792,4393,3942,1674,41,4435,20,3156,3599,3017,2952,47,3174,1829,2885,2791,2017,1815,3753,1782,2924,43,1810,2954,52,2953]
bad_iteration_list = []
elif dataset_name == "bimodal_full_all":
csv_normal = "full_bimodal_final_all_features.csv"
csv_annots = "full_bimodal_annotations.csv"
top_features = top_features = [1755,1152,1747,525,2889,3803,2897,1166,1151,3810,1750,3804,3585,2892,945,1441,927,1497,1089,3749,10,133,3807,1077,3348,507,1765,3813,772,13,1065,3588,2055,1475,3750,4279,2092,2091,1768,3586,3338,2105,406,946,2106,909,529,1059,407,1071,1489,1090,136,526,1537,1455,246,3805,923,917,4276,361,3737,247,1603,1053,1550,1574,958,21,4275,2075,3811,1753,1469,109,2086,1096,911,9,3752,2907,1078,778,2068,2085,770,2597,1604,2074,1748,357,2910,1154,776,1952,2061,2087,251,905,4519,236,2903,252,1084,4176,4182,3751,1102,1652,2906,1594,4272,929,4525,2069,404,1940,891,2598,2890,1101,4145,3228,1609,2056,1539,2895,121,2687,899,784,2066,1194,431,3210,1072,497,1761,2090,1650,3247,2695,2694,1637,1839,2709,2289,2708,4150,1982,469,1772,897,3249,4571,893,1764,1649,4234,1481,1757,2081,8,503,3216,3738,4323,764,3921,2083,2089,3211,1035,885,1760,235,438,2073,1726,4242,4236,4243,2277,2072,4148,3229,2405,766,1350,4246,879,4249,753,3251,2071,4032,3198,4383,115,1066,3005,1047,4130,1792,4232,4320,1643,4361,2297,2902,2688,2899,2064,315,669,521,2107,4422,11,3223,2057,1485,1552,3227,3224,782,4079,3124,2603,1419,2599,3831,4363,2136,4469,2299,2076,4385,4295,4367,935,4258,3919,4231,1460,3829,1447,1928,131,3082,4317,790,1863,4301,4389,1470,3217,1798,3232,4339,1568,3197,1644,2142,2778,3819,1607,513,1874,2084,1153,362,1791,928,1448,4237,881,1590,4315,2268,4346,2940,1406,2693,146,1988,4570,2082,2302,3897,2981,3206,3825,4311,468,1055,1472,2065,509,1353,4345,3245,2868,1108,2627,1518,1638,4368,1516,1506,4267,2764,413,887,956,2298,4184,1407,1800,66,1806,2404,4377,4527,4162,4337,4142,466,1538,1427,1909,4273,1195,3,1474,84,3203,1041,3231,681,922,166,3843,448,4179,2631,1845,358,4522,1887,1468,2334,465,4364,4333,4297,1155,418,1461,4298,4312,3828,2070,873,1802,4355,1023,2765,1635,4136,1378,941,4386,3094,2625,1842,3739,1364,1640,1150,2077,1653,1647,4319,1953,4280,1857,4342,916,1487,1984,4271,1641,4137,562,1965,3212,4289,3208,415,3004,1393,4341,1790,1029,2445,1149,1581,1486,417,2775,1634,796,1767,464,3293,2028,1955,2600,950,1639,1107,1530,960,1775,2010,532,1161,2942,692,2088,4347,2067,1596,1060,80,4324,4140,2944,4180,1231,1189,4139,2914,1897,71,964,277,4281,4360,4523,2364,1483,4306,137,1941,2194,3900,3070,4293,3029,4381,3130,1549,4133,2399,1756,2274,408,152,2051,2776,3903,1449,3959,1633,3230,4302,4316,767,910,240,2697,447,954,1582,281,1915,1646,2691,4163,3848,79,1433,363,416,2094,4382,3236,1777,2009,3039,3225,414,101,3016,1862,1234,2451,3040,476,2929,1770,3126,1859,2771,2628,3218,4155,4132,4338,3242,2271,2363,1885,4359,1651,2987,556,2769,321,3841,4259,1805,3603,788,1532,1754,3913,1821,2677,1508,3214,2877,445,2335,2917,4369,4199,4542,480,2109,1543,4303,1507,2303,1017,1444,3875,1787,2683,2317,2770,3220,434,3042,2049,4520,794,1080,4310,1605,2079,2948,4334,1529,3083,4353,2551,2999,963,1803,4294,4268,538,3113,86,3215,412,520,2307,4177,2672,975,2310,962,2058,435,3085,64,3207,58,2269,2411,3816,2452,3822,2689,223,437,130,1422,1789,474,2319,3112,685,2507,2629,1664,1774,1735,793,2376,944,1451,1168,2166,1943,4286,1435,1412,2407,446,3857,4197,3640,1645,3757,410,4540,1865,3246,2632,2692,3863,2933,2919,4374,2172,3840,3051,2763,1428,2898,3867,2670,4397,3222,1878,3152,2984,1980,1349,1971,2027,1900,1334,2483,4350,2626,1114,2454,2963,1912,2313,2078,4262,867,2348,2779,2710,527,411,3587,440,2875,874,1025,2552,1264,1420,1125,4134,981,409,2772,2306,2192,2570,1967,2912,1037,4264,1217,2909,479,477,4375,1434,1191,2130,4352,1733,1876,4290,977,2934,2292,199,3151,4330,3292,3226,1778,2767,140,875,4325,1763,1377,4284,2337,7,3652,2188,1985,439,1981,1729,763,892,4227,4567,869,1216,1502,757,2108,1648,1933,904,241,2442,775,1595,443,522,1210,2513,4437,4569,2606,3007,2931,478,2406,1371,2761,1467,2311,754,2759,2524,3006,90,2634,4233,2401,3755,2920,3027,2773,3106,1801,2896,1092,4147,4331,1056,2648,918,1834,1345,1476,3001,1739,2633,2512,4152,2550,2647,2777,697,2614,475,2132,2616,1804,2615,1542,2620,4141,3219,70,2329,4379,3847,3193,85,2610,2137,2932,1068,2712,217,2275,3628,1079,1973,1929,4378,1357,1690,1630,254,2617,2684,3846,976,229,1667,1019,938,2756,493,3823,1098,4531,1825,4313,2099,34,2050,688,211,547,4188,1514,2630,2624,1105,2145,1170,1986,2063,761,4366,2678,3285,2485,470,1569,898,3199,4372,3213,1054,920,1061,2970,4566,1352,444,4328,2947,882,2189,1465,4356,1910,1440,4235,3179,209,1822,2766,2381,1126,2774,1824,2316,1113,1356,1075,932,2611,244,1727,1869,1416,2193,4287,1544,1036,880,2021,1898,1987,1119,1864,2440,4138,2618,1011,2080,2278,2623,2294,2146,2579,4224,4308,894,471,59,760,2143,1886,442,2580,1931,4439,4418,1031,2015,1546,3107,1793,2790,174,1624,1192,3191,1906,253,4131,1970,1903,4388,2296,3590,550,1629,3460,2179,3609,3457,1482,968,2943,2755,1807,2127,2176,2366,1322,3435,2180,285,35,524,544,671,3097,1868,1026,2506,2457,1085,1218,2375,3761,855,2037,2410,1833,1974,1327,3824,29,1991,2006,1964,806,2566,2175,3115,506,1989,755,2760,1049,1024,162,605,3237,2731,1836,2945,4185,2949,3861,1771,2475,2612,2515,516,3127,1073,1048,1786,1479,1372,1211,1086,4223,155,2473,812,1997,948,4007,1795,2378,3758,3095,802,333,4194,1587,2185,876,2702,308,161,673,886,205,1235,2191,4129,2320,817,3451,1776,1014,2331,1856,914,2998,4278,2916,3432,3122,3911,4265,1454,1922,352,2340,4537,204,1621,221,505,2834,829,1730,280,27,256,3627,900,226,2430,2946,2569,3243,1968,25,3626,1358,682,4528,4357,1545,3832,1120,3200,2427,2416,800,4153,758,2533,2548,3450,1178,3643,3028,2102,53,1904,2780,4288,314,1619,1013,4291,3128,2619,168,4143,2976,94,250,3852,1111,2295,2161,39,4335,173,811,2448,2969,243,2384,3879,3262,151,1608,1632,2003,1511,3075,2539,1734,969,870,3818,2286,845,3631,3071,4300,2195,1642,3837,3817,2344,851,1442,1329,1837,40,4413,1457,3433,3057,818,1365,2129,4266,3192,3641,405,840,906,1099,3452,2975,472,2641,1093,2111,2613,868,1490,1654,1769,1888,2928,2177,2428,983,1373,3802,861,2608,309,1005,104,1109,2502,683,3021,1042,1104,3796,2643,2429,242,1879,2098,2008,2662,2655,2663,4344,24,530,4314,2733,780,3469,1548,2745,3633,1033,2128,3073,566,2568,1881,3834,1043,1553,832,3473,2367,3020,2622,3854,779,1018,1671,1872,3030,2113,2342,2121,340,2120,641,4552,2644,3054,3471,4209,1920,4380,2974,888,2414,4565,3912,2714,3170,659,3110,769,3045,3116,3048,3129,4292,1205,2594,611,3447,2196,2345,1074,1177,2038,953,3844,63,1832,3018,599,2913,2163,1012,4336,2096,665,2591,2022,2522,1020,1045,2343,2387,3830,2104,2640,1873,856,970,3951,3795,850,2153,2300,3801,1998,2572,3022,2518,287,2649,1700,2149,26,2713,853,912,617,2593,924,1960,2676,595,433,4358,2333,982,1421,864,773,91,2874,926,2093,4376,3194,4168,342,4477,4156,1062,2519,1762,303,647,2395,2052,4023,3426,826,2171,4354,1843,896,1956,1175,3597,3740,3629,686,4384,3428,2346,2523,3157,1784,541,980,4210,2607,1030,629,3123,2592,441,3456,635,2754,623,327,2043,4144,3289,3610,884,1589,2115,3851,2747,3866,4322,1531,3283,2639,304,3019,2793,2705,202,902,4553,2183,2370,4146,2990,3131,3870,2187,838,3241,3570,839,1732,1946,1877,1227,1736,959,1588,821,2232,814,2905,2881,3653,4362,2347,2328,3470,1081,808,4532,3180,335,2186,3814,1032,2413,329,3235,473,572,2332,2147,2141,2737,4049,3209,833,1027,3655,2446,1087,2750,593,2735,3109,3584,2135,2972,1555,4296,4174,3615,4189,2004,2471,286,689,1038,3139,2530,288,134,2964,1737,2415,28,846,2978,2871,2985,4269,345,2305,3927,3138,317,2016,1779,2531,3046,2276,3855,2280,2869,3011,653,2911,4536,4228,3291,862,2979,232,3282,890,1826,1846,3052,820,2181,4193,16,1039,3281,4047,4226,2744,3808,596,2279,2674,1996,1963,3568,263,3274,3756,1742,2983,1456,2557,2527,4202,385,4524,1844,1745,848,553,2718,3835,4545,2973,2144,4181,2986,2988,2682,842,1611,1930,23,844,2538,216,3606,2110,3256,57,2716,4533,3169,60,112,274,1969,1894,380,3448,141,3221,2669,2723,364,2664,847,2290,214,2724,1458,3014,2967,2665,3464,3762,1880,294,3461,3036,3252,2398,3253,185,4190,836,2824,3604,3133,3148,2119,1752,3145,4309,2412,3427,3569,2100,1841,2420,2509,1050,2287,1318,1884,2272,2604,302,4087,2528,2138,2720,1559,3594,1443,341,2532,2536,854,82,2390,2281,3494,3268,339,2717,3267,1976,4178,785,18,860,2495,3794,147,3887,3266,3593,3800,2878,4521,1616,2529,1463,54,2505,1975,2160,301,2097,2312,1617,1890,3202,4025,3732,3010,1917,272,328,1226,2190,2397,4015,2935,347,2283,1321,2318,2884,3895,2284,559,3117,4332,3172,4274,1273,2546,2426,3492,1741,1883,22,3068,1069,1057,3062,1785,1923,1117,2351,2425,1992,2000,3454,2730,2358,3288,310,3869,719,3556,3871,2182,3558,2525,1979,1855,1583,1758,2545,3612,2309,3102,3254,324,1882,4326,859,827,2675,4154,1260,2876,128,2124,2349,1990,1994,2516,1622,3833,1618,2732,3849,3595,1838,374,704,2385,2926,2046,320,2421,3453,878,3654,3557,2768,2462,1744,2894,67,1303,228,1129,2666,2101,3158,2154,1535,2118,3820,1554,1021,3596,2423,2322,2030,791,1464,2379,971,695,2173,1015,1926,2679,2621,908,3038,3552,1891,2439,1796,536,2681,4135,3023,2169,3622,1517,3024,4318,2685,2703,295,351,3592,2701,2886,1977,307,2966,3287,2651,2002,1731,3868,1317,3730,1954,1628,3735,297,2438,3734,337,841,2872,3238,3860,1203,2372,2661,2517,1870,3255,2879,3286,4157,1932,2668,1860,1957,4270,701,2540,2660,809,834,3163,1224,2500,3185,2734,3111,1783,299,2739,293,3140,4222,3146,2361,2418,3069,2501,815,2743,2459,797,3864,2432,2526,2585,3043,2650,3092,3621,2419,517,3493,4,2757,3439,2707,1916,275,311,1942,2170,1274,2563,1781,2696,3015,4529,4215,2494,3244,2887,4405,4186,518,4534,2671,2464,4558,2497,95,1816,3347,3260,319,15,4191,3440,1871,300,3072,2980,584,278,3555,292,2388,803,2700,3105,3923,2958,2125,3166,1623,3064,306,3257,2510,2321,2938,4240,1379,2699,3862,2883,4282,2424,1949,1221,4421,3132,3136,4299,2558,1631,355,2408,2386,1051,3150,3205,3616,261,259,2122,1044,2565,587,3118,2184,2391,2961,2155,2547,3294,3618,4028,3144,1934,974,88,2103,672,4221,4564,4277,2469,1123,225,1927,289,3084,3063,323,330,2486,2470,2369,666,2797,2937,4229,4340,2882,1499,2273,3672,4149,583,3098,2609,1627,1246,222,3856,2742,1063,3096,1809,2466,2024,381,3261,4238,2927,678,4543,4200,2282,334,2059,1296,1849,2721,1232,298,2888,2636,3025,1212,1853,4321,3026,382,2880,3745,3032,4365,1944,2042,2206,1895,1196,2041,2394,2722,1828,271,2908,3598,3080,3088,1740,2389,164,3135,432,828,336,1462,189,1819,4003,2991,1746,2164,2535,2400,1848,2270,2117,3164,1938,258,3240,208,291,2460,3649,3617,2746,4387,3012,3076,72,2377,3582,3013,331,312,17,3280,3701,2642,2738,1541,1198,4192,1682,3838,3666,338,3620,198,2995,4535,4203,3000,3744,3904,3591,1799,284,1436,3600,2368,3670,2383,2758,279,2026,3196,2474,4546,4415,1115,3472,3079,3619,2870,1919,594,1738,2468,4348,2741,1006,3476,2360,3002,2044,3044,2589,2039,2749,1812,1921,2458,2968,1939,2521,2352,2564,857,19,2534,2542,3671,3731,3270,3091,1831,3034,3003,3060,1127,3695,2054,3736,3033,1867,1854,2455,930,76,3134,3142,2359,2304,3093,3125,2541,359,3186,3523,1896,191,2727,2503,2158,2706,3928,2637,1847,3632,1613,1797,3647,2977,3089,2989,2168,2537,3608,872,2588,3665,290,2461,2556,348,3613,3195,3141,270,3304,2031,2573,1615,1681,1945,2921,305,3630,3759,3037,1780,1908,2047,3742,265,3634,467,135,1918,4056,3842,3754,2653,1889,318,563,1220,74,4445,2422,2327,2960,3303,1907,3239,1620,2646,2036,2918,3646,343,2114,589,3602,1866,3188,2511,3173,264,2341,4055,4370,1498,3114,3234,3575,3250,296,3550,2151,3748,2487,3430,2032,2605,206,3664,539,3392,2060,3061,2971,3793,3302,1259,3087,4201,2554,2431,360,3147,3607,4544,2126,3935,3692,3700,2288,269,3690,3694,2728,588,2045,220,4031,2324,558,2667,3035,2544,3296,3799,1914,1814,2450,3437,3553,3295,3081,1902,3204,2436,2062,1818,2904,2941,3275,3693,3349,2472,1297,1612,2463,3350,3699,3637,3352,1162,325,349,3086,4343,273,3059,3353,3269,154,3645,3354,3351,3535,2575,2018,2336,69,2748,551,3355,972,3639,2873,569,268,3625,4187,4530,3508,2339,548,1680,61,1901,684,2582,6,1686,2488,3521,3564,266,3529,2123,3074,2956,3479,3589,2314,267,2293,618,1861,2433,1331,1788,3614,2053,3522,3445,110,1950,3177,3562,2167,2584,3297,2402,2040,1685,2435,2326,3190,2437,3271,576,1935,1190,2165,3839,4216,2602,2456,2453,1687,2465,1851,3650,2380,4204,2833,3278,2356,3119,1892,2482,2325,1951,2396,716,3944,2498,2157,3189,1817,2393,3733,73,2508,1999,3259,4559,4183,4169,2574,3429,4260,1688,119,36,4526,4446,2150,3651,986,2357,792,3611,3315,4455,1924,822,1937,1961,68,3178,3937,3574,2159,3201,2673,4547,612,3533,3549,3659,4453,3527,3031,2350,2449,2447,3099,4173,2726,1247,1679,565,3058,2805,2939,2586,1893,3317,3642,2900,2492,171,3741,4220,111,3528,1561,3547,3635,1689,2116,3662,1913,2753,3534,564,3100,3316,512,3298,3326,1830,3458,4196,2338,3056,3563,1199,3658,93,1121,3300,4563,2152,3103,1560,350,3324,624,2578,2922,2315,2576,3337,2514,810,1983,316,1852,2140,679,4539,984,2590,260,3446,3263,2711,965,2704,2323,552,3053,4541,4151,4198,188,2131,2657,2373,3760,3312,2365,354,3826,2493,3496,3309,2134,545,3310,149,3680,1911,2162,3548,195,3325,3540,4217,1678,2555,2806,3399,3049,3441,3299,3436,4065,3067,2787,2822,3845,1958,2499,4560,3306,2434,3539,2786,2821,1625,3683,3168,2174,3484,1684,852,2048,3657,4059,113,3398,2997,2951,3743,1875,3747,2957,1343,3746,3815,4063,3468,56,3305,3515,4170,143,2807,3668,3682,1925,3581,219,4456,3397,1504,2785,2820,3583,2725,3715,3465,332,3678,3434,4066,2242,213,3482,3272,3183,2443,3918,2543,3724,2959,2751,2156,1947,1993,2808,3525,3513,2965,2409,3691,3706,3577,4041,3638,1008,3684,3233,3510,581,3506,3551,3512,2308,3705,3273,2784,2819,2481,3661,3050,1533,2788,2823,3336,3812,3554,367,1811,3545,233,20,4171,3104,3480,4218,4561,2601,3258,786,3938,2491,3455,3601,4158,3727,3566,3660,365,3687,3674,3520,3495,3516,3442,2587,3483,2139,3707,3663,1751,3507,3688,3605,3524,3723,3763,3077,3725,3384,3419,3644,3537,3729,3726,3385,3420,326,2374,3498,3390,3425,3709,2371,4046,3386,3421,3536,4393,1728,3677,3308,3518,3387,3422,2581,3389,3424,3463,3301,3388,3423,2783,2818,3509,3697,1677,3335,1660,1808,196,3676,2553,3785,1340,346,1820,4441,1676,2583,123,4538,2804,3696,1661,3710,3329,3519,3181,3327,3307,2781,2816,3779,4195,3708,3499,3466,1223,3784,3673,3783,3323,2213,2719,2212,3491,2211,2204,2203,3444,2210,2224,2202,2231,2201,2223,3488,2200,2218,2230,2222,2549,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,3702,2261,2262,2263,2264,2265,2266,2267,1858,3311,1850,966,3055,3410,3511,4431,3409,3356,117,3565,322,3406,3407,3408,3362,3361,3357,3358,3359,3360,3363,3364,3365,3366,3858,3339,3340,3341,3342,3343,3344,3345,3346,3367,3368,3369,3370,3371,3372,3373,3374,3375,3376,3377,3378,3379,3380,3381,2782,2817,55,3485,1662,77,89,92,116,122,230,231,248,276,282,356,1773,3405,2207,1708,1713,2209,2208,3395,3667,3321,3578,3544,3383,3418,3721,3411,2249,3571,2239,2240,3572,3681,3108,3685,3679,3394,2248,3412,2504,1691,3176,2247,3065,2254,3403,3393,3404,3728,3402,2690,2520,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1722,1723,1724,1725,1709,1710,1714,3401,1721,249,3931,1719,1606,2253,3382,3328,2571,3559,159,3821,2238,3400,2561,2246,3579,1704,2252,2496,1683,2355,3154,3490,2467,2251,3322,3766,3290,2250,2233,2237,2255,2256,2257,2258,2259,2260,2234,816,2236,2235,1720,3486,3505,3517,1128,3474,1701,3789,4057,3478,4447,2680,3929,49,3477,3334,728,3669,3413,1659,2915,3318,4305,4349,3501,3121,3475,83,4371,2567,3319,3777,1813,2362,2244,2245,3542,804,3066,4069,3487,3396,2490,1699,1276,3561,3773,4070,3788,3265,3580,2832,2867,3778,2855,3502,3320,3417,3765,2854,3414,4304,3416,2441,3415,3722,2856,582,2243,2241,2484,3689,3698,255,3276,2802,3770,2837,3769,2595,3853,3489,4283,3704,1827,2857,3787,4213,4067,3775,3500,4327,3786,3764,3481,3772,4556,4457,3776,3790,3703,3714,3939,2923,2831,2866,3774,1519,3503,3782,2858,2852,2023,3716,3781,4459,3624,3546,3771,2035,129,2859,3573,4211,4554,3504,4164,4165,4557,4214,3160,2829,2864,4555,4212,2828,2863,3313,3768,752,3560,3277,3541,1702,3576,2830,2865,1703,1766,3531,2178,3767,2478,3530,3940,4449,4458,4068,207,2815,3497,3538,2992,3567,1959,2814,1636,2851,2827,2862,2698,2803,4436,62,3780,3543,2846,2853,3941,3675,2095,2845,4167,3806,3514,3184,2033,3333,3792,2382,3720,858,2354,3532,2813,2654,2596,3711,3859,3526,2205,1225,2403,3047,3101,1614,3332,3719,3717,2559,4172,2850,2656,2809,3712,4159,1658,2950,3264,75,3438,3431,2353,4042,37,3656,3167,2936,4562,4219,2826,2861,2930,3713,3686,2812,3331,3182,3623,4161,2729,756,2736,3462,740,2825,2860,2444,1705,3175,4206,3330,2489,4261,3798,1665,2842,4166,4549,2658,2925,2480,2645,1610,2841,4551,1670,4208,1666,4051,2847,1707,2838,3467,3917,3391,2994,3161,1122,2993,3932,165,3041,1491,2839,3143,1706,2840,2844,2810,2330,2836,3809,2034,3155,866,3718,1663,2005,2843,768,3187,4045,762,570,2849,2638,2133,2848,2635,2392,344,2811,1197,2835,105,3009,3443,798,2686,774,2417,2476,2013,2659,3137,1657,3914,4429,4460,4450,44,546,3314,2740,1669,690,2962,528,1835,2798,3836,2996,2652,1668,1336,4040,2955,2577,2014,2285,3159,257,1905,153,2560,201,2799,2789,2752,3174,2801,1656,3865,2011,2012,1655,4039,4430,3008,4060,3153,4072,4435,4205,2800,2001,31,2794,3942,2795,3284,1840,2019,3156,1995,2762,4160,4548,3165,3791,4550,3797,3162,4207,3599,2025,1675,1899,4462,1962,47,48,2982,4239,2796,2562,3017,1823,3120,2479,4432,2791,3827,3753,30,2893,32,38,3149,1794,43,2020,2885,1978,50,3279,1009,1626,2924,1972,1674,2007,2792,1672,1782,41,1673,2477,1743,2952,52,2953,46,1815,2017,1810,1966,1829,2954,45]
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_all":
csv_normal = "balanced_bimodal_final_all_features.csv"
csv_annots = "balanced_bimodal_annotations.csv"
top_features = [1152,1755,1747,1166,525,2889,3803,3810,3804,2897,1151,3585,1750,2892,3807,3749,133,3813,1441,507,3750,927,945,1497,361,2091,2092,10,3588,3348,2105,2106,3586,3338,1089,1077,772,21,246,13,1765,2055,4279,526,247,1603,407,136,1537,529,406,1768,3805,1475,1489,3737,4519,1065,3752,1071,4176,909,923,1550,3811,1455,946,4276,1059,1574,1604,4275,917,109,9,2903,1753,2906,252,2687,1469,1154,1090,2597,778,2061,1053,1952,1761,770,2695,2694,1748,2907,2895,2709,2708,251,1764,911,404,4571,1726,929,958,2086,2289,2598,4182,4234,2910,4525,357,1609,1481,497,2890,3247,235,2056,2085,4315,1194,1940,4363,4150,1539,1096,121,1078,236,3738,1792,2075,4272,4385,3005,4236,4242,4243,2068,1101,2405,776,2688,1350,753,905,1757,1594,4249,4246,1863,469,2299,438,2074,1652,3751,2087,4145,4312,3249,503,431,1102,3198,2404,1760,1772,784,115,1460,891,3228,2069,2090,2297,1448,1084,4337,2902,1607,8,764,2603,3921,3831,4323,2302,1153,4079,1637,468,2868,2899,3829,2298,4148,2277,513,899,2268,4130,4317,4258,1419,4361,4383,2066,84,1447,4297,4469,3082,3197,766,1982,893,131,897,4389,2089,1839,2136,3251,4367,879,782,3825,2599,4320,4346,935,4570,4032,1568,4232,66,2083,1072,11,669,2081,1470,1035,2107,1857,4368,4301,3227,885,4293,2627,1485,4381,790,4339,1650,146,509,521,3819,1506,3919,4231,1195,2142,2334,1472,2057,4237,3739,1406,4319,4360,4295,2064,448,3210,1474,3004,4345,2072,1449,681,466,315,4179,4341,1552,4136,881,1407,3216,3203,3232,1378,4522,1909,3229,4422,4162,4273,1590,2071,2693,1806,4364,413,1897,4271,2073,4359,1862,3828,363,3211,3124,1915,1442,4267,4386,362,4142,1649,2625,4377,4382,4184,3245,1108,2445,4180,4311,4298,1155,1364,80,3206,941,4527,2778,1353,4523,1821,1066,2600,4137,4342,1189,4347,3223,3897,887,2999,4280,1516,1874,1581,1643,1965,71,1161,2940,1953,1047,3224,2082,1468,4334,1461,1791,465,254,2076,3843,2303,1777,415,1887,2631,4286,4316,1955,2084,3,2981,2919,1023,1928,4374,1798,796,358,2317,3094,3029,4281,1055,1596,4133,2364,1483,956,3848,4355,1393,4140,418,1487,4139,4294,928,1518,1538,2917,2691,1859,58,2914,2271,152,2672,2483,4259,1770,2065,1427,4333,2363,3867,464,3231,1107,4290,2451,1775,4132,4338,2051,1507,2399,1988,532,2307,417,3900,86,447,4264,4289,2070,4352,4268,79,3841,950,1041,2677,4324,2683,101,960,2310,4353,1605,4369,3217,1845,562,2406,2194,4302,3913,3236,240,1800,1150,1790,2963,2311,3112,2929,1231,1971,2306,4306,1530,1508,692,1486,3903,1543,3293,873,1334,3039,1941,1549,1756,1865,1644,1774,2166,137,964,1168,1635,3875,2010,1149,2335,408,4378,166,64,922,277,794,2877,3242,2772,3847,3051,1638,2094,1802,2898,975,2689,1582,3846,1900,281,3816,2109,4397,2269,2411,3083,1729,1433,4197,977,2407,2077,1634,3863,1639,1080,4540,414,2764,2684,2934,445,1444,3085,3113,130,3857,938,527,1885,439,1868,3007,2275,416,3040,446,321,434,4356,1864,1234,3959,1754,4375,3603,2942,3822,2697,2319,2130,767,916,2628,4520,3840,2485,2442,2313,2948,1029,3106,2172,963,435,412,1967,4330,4155,4350,4134,2912,4262,1646,1842,3212,4310,2678,2108,1624,2049,3042,3225,410,4303,440,954,4542,4177,1805,3070,2028,3757,4163,1787,3208,4199,2009,3006,1933,538,2088,981,1653,962,4379,1803,2145,2944,1420,520,1789,1060,1664,1984,1651,2132,685,2146,1595,480,1422,2765,1943,2452,2670,34,1647,2274,4325,2188,2920,70,2756,1349,1435,409,1125,788,476,2998,223,3246,2376,2632,241,1970,1767,3130,443,2626,1502,3220,556,4141,2401,3001,2457,4284,2454,2337,976,2292,4308,3214,437,2348,1371,2078,944,2615,757,1098,1114,968,2507,2875,1092,1735,2440,1357,4152,2931,3755,199,2629,1633,7,2316,3222,4147,3193,2099,140,411,1822,1824,2712,2763,688,1640,3628,3640,2775,2769,2776,474,1727,1869,2058,2473,2513,869,932,2579,4313,2634,867,4566,1544,4185,2987,3126,2067,2375,910,1973,1912,1667,3179,244,793,2512,2552,3230,3027,3218,920,3152,2551,2648,2710,1641,2633,1529,2475,2620,2692,1377,2647,1490,1833,211,2731,1451,3652,2329,1793,1630,2294,3016,1412,1733,1434,697,2524,754,4418,1017,1532,2916,479,1476,4233,1898,1542,1191,1428,3823,3292,217,1216,2606,4372,1358,1964,4528,1645,1025,2278,1778,3219,352,855,3199,1217,4328,1372,2759,1068,4265,1931,1834,2933,29,775,2790,4235,763,444,229,2773,2779,2771,3107,477,1264,892,1482,1126,522,1856,1119,1416,1795,1322,1467,3861,894,874,4223,4331,4287,59,516,758,1980,3285,4531,1061,1192,2127,2896,35,2080,4437,4569,4188,882,755,1546,880,2570,90,1922,2616,4131,1327,1465,3207,3115,478,2975,442,2079,1514,806,3226,2755,1763,85,1113,209,2580,3151,761,1929,4007,2410,2027,2614,506,2050,1210,2619,1981,2037,875,2366,1352,2984,1085,1903,3191,4227,2320,2733,4138,1878,1079,3075,2429,4366,162,1825,1739,3097,2381,2617,3057,1906,1690,2149,4291,845,671,4357,898,1801,1037,1024,2296,2610,1479,1014,3590,2750,505,1876,1771,285,1056,2295,812,253,2928,1910,547,760,3215,1026,39,1011,2909,2761,2777,1086,1205,2834,1836,3911,2378,2111,918,2176,2949,1049,1356,1548,2770,4129,2932,243,829,1345,2947,3460,2767,2572,3457,1985,161,2644,914,2515,983,1545,471,1178,1629,2137,2702,1886,948,3761,1019,2976,1218,802,4388,155,475,2550,1105,1804,3073,3095,263,544,3824,2113,2189,1440,817,1073,1511,2943,3609,3451,2970,4288,1075,18,470,605,1031,4143,3627,2120,3879,851,3127,2630,2121,1329,1170,1235,2300,2506,2192,205,1177,3237,3587,550,1036,2641,4194,2128,3435,40,2518,1621,2760,4567,405,280,3071,811,174,2913,2179,870,4537,1569,1120,3626,3289,151,2143,2427,53,3054,2737,1104,493,4335,530,1365,1786,333,3452,2618,1920,27,1648,3262,904,1730,1619,2193,2471,673,840,2340,2331,2098,2655,3450,3213,2624,2662,524,2663,2766,2774,3818,2129,2171,1013,682,1986,1991,2006,204,2305,23,2946,2611,4278,3830,2945,472,1211,1553,1904,4344,868,1762,3817,2448,441,2608,780,1776,2147,1005,3758,2613,2175,2623,800,3912,3832,2622,3243,1421,314,308,2533,2548,2395,2639,3951,2343,856,3432,683,2416,3122,25,1045,2793,686,969,1608,3834,1062,1373,970,1987,982,3852,4314,1175,3200,4532,3837,864,3192,2015,2161,861,2286,3028,1888,24,4153,2593,2566,818,4439,4189,3643,2735,250,3871,4565,3469,4380,599,2640,221,2344,1456,1611,2569,3633,641,1054,2384,2669,104,2180,173,2342,846,2969,2021,689,4552,3045,256,1227,1671,900,902,3629,2163,2430,4209,63,853,242,2714,3854,4300,1454,896,2871,3641,2063,876,3433,2102,168,3128,2345,2519,832,2038,2612,4376,1654,2177,1837,1960,4266,4354,4477,3631,91,3447,1109,1043,1807,3235,886,1012,1074,2754,4224,4413,2974,2096,1555,3869,2428,3109,3456,2591,3048,327,2869,3011,2607,3241,287,4336,2333,2232,1042,1989,850,2964,3471,2978,2153,3844,665,2717,4292,4358,839,1974,4049,3814,3253,3252,1033,1769,3597,2141,1018,611,2780,2367,1736,1870,659,1779,1956,953,848,4210,2539,4384,2003,3866,1642,2283,3470,1039,309,3473,1457,94,1559,3138,304,2093,1587,1048,226,3428,884,3870,3129,2745,2874,836,4553,1879,4524,345,2716,1946,134,2052,2135,3267,1997,2185,2594,2115,1741,2502,926,2332,2990,888,2568,4322,2643,3762,3426,4181,635,965,3851,3802,769,3116,3052,3266,2674,3796,16,773,1226,3021,342,1872,1968,2905,826,623,822,779,1318,2346,2723,3283,3030,924,3268,274,2676,2724,3855,3194,4362,838,2387,1260,2312,364,2097,2008,647,3740,340,2413,854,617,2369,4296,1832,4228,2196,2328,629,2370,2195,2272,844,1894,3464,2604,3808,82,2290,4144,1700,541,1111,2837,2495,833,2414,1099,22,1734,28,2705,2824,4168,1976,1015,1732,3010,3570,286,4174,3461,3610,3756,860,2397,112,2878,2530,3180,2881,3036,3062,3448,1917,2462,4087,1458,2713,1855,1020,959,2685,1930,3110,1877,303,3014,2720,202,3133,3148,2679,2412,1881,3927,1963,2276,2043,820,3291,4545,912,4202,890,3615,517,2734,351,2538,2104,3282,4405,3655,3281,4023,433,3022,2730,3274,2592,2935,3795,3801,3256,2649,572,4309,2557,842,3102,2525,3606,1087,1443,862,1996,595,1093,3019,1737,1274,1321,2747,1589,1273,2664,214,814,2279,2522,808,2884,1021,2732,1081,3654,906,147,3730,3494,2022,2398,3895,3046,2744,1588,339,3653,1816,4274,329,2546,2886,2183,473,3568,3887,2358,3123,4015,2191,4332,2986,834,3427,3569,695,980,2420,1752,1583,1758,3254,2516,566,3020,2347,2390,2966,553,2718,2349,3131,1923,2961,2509,347,2124,1531,1992,2000,653,2459,185,2979,57,2523,3117,4047,4226,272,2154,3593,2972,2388,141,2642,26,2351,2531,2532,2536,3604,3139,2041,2446,1027,2967,841,2280,3558,3584,275,60,847,2883,1890,3172,2004,317,1032,301,288,2983,1464,380,2988,2439,2707,2160,2415,2030,2527,2318,3202,385,2528,2309,2985,3732,3170,1731,1632,1050,1057,4156,2464,828,3556,3157,785,859,704,2110,1203,1938,2386,232,593,1618,2757,2738,1517,3255,2181,4269,1871,1744,335,2361,1038,1998,3018,1880,1246,1742,1554,4529,4270,2958,3453,719,2119,2281,3835,1117,2995,4533,4186,2660,3454,2379,2505,701,3621,4299,2187,4157,2486,3260,4135,324,878,536,1954,518,2661,360,1826,827,2682,261,2432,1784,908,3594,1957,4146,3557,2621,2739,2100,2470,1069,2424,2016,2497,2284,2322,2190,328,2144,821,4222,2665,3244,4190,1463,559,3868,2494,374,2894,1916,1843,3596,2545,1379,1969,1841,1853,278,2169,3043,3612,1631,1030,259,3238,4536,1927,2876,216,2701,2101,3833,1990,1994,4154,3287,355,3294,4193,596,54,294,1129,2385,3145,1196,1819,302,4277,3552,2706,2703,3595,3860,1535,2872,3493,3064,3820,3257,3105,2425,2650,1979,1873,2911,2517,1882,2501,2419,2122,95,284,1224,4025,1884,1942,3864,2173,2558,258,1919,2383,3794,337,2699,2696,1846,228,3492,3024,2666,2973,2138,3135,2002,307,320,3800,3015,803,299,2651,2540,4365,2421,1848,3261,2273,4318,3068,2937,2321,293,271,971,3080,3439,3622,1844,310,2671,3069,1939,3144,2460,2182,2700,2529,128,1891,3472,2426,3347,1977,1051,3125,666,3440,4387,4,2125,2636,3141,2469,3286,3618,2668,2879,1317,815,3555,1944,1975,297,2287,4240,1221,3592,3147,2423,292,2046,341,2526,1616,17,3111,2541,4028,2646,3196,3038,3195,3862,3025,4282,3060,1123,1818,4530,4178,1799,4187,3098,1617,2155,2372,974,3280,1932,1745,2118,1926,74,4326,3012,3221,2938,3146,2743,3034,3013,3666,3598,2742,3185,311,2991,1796,3616,2882,2408,3838,3169,4521,1838,2921,3032,3735,2563,809,4238,3209,4564,3072,3063,2727,1883,198,2746,4149,791,2474,312,4221,3904,1127,1949,1212,3087,1612,3096,1860,1232,1622,2461,1623,2980,3002,3304,3620,381,2438,3288,1620,3923,857,2282,2170,222,2360,3132,3136,1781,1303,1854,2908,3744,3084,295,2521,2556,432,2534,2542,3086,2500,2535,3734,2158,3759,1063,4003,3296,3240,1627,3672,1259,359,2186,2508,3033,3092,3044,2510,2585,2675,189,3745,1809,3023,2797,2960,3695,2888,1934,3150,319,2151,331,3118,3303,4340,67,2206,3295,2042,2039,1945,2184,3302,3140,2589,3582,4421,2327,2436,2741,15,2926,3701,330,264,2565,797,792,336,2270,300,3476,1999,3270,4229,4321,3166,72,2304,3523,225,2400,1462,1783,2609,3665,298,2352,1220,1044,1895,3736,164,2544,289,2726,3600,3037,584,2941,2564,2537,2468,2959,3158,2054,2168,1785,2880,3061,2653,1613,1950,2918,306,3649,2833,4260,3163,3297,2722,2117,1436,1921,2394,382,2047,2126,4201,2359,4031,1740,3671,1296,872,2487,4348,305,2341,3849,4544,1797,2547,334,3430,3234,3613,3392,3748,1628,2418,3602,3608,2373,2059,270,3239,2887,208,2904,2768,467,2368,2031,2488,1198,3647,3928,2498,4343,354,3134,3142,2466,2458,2018,1115,2103,2167,3664,1561,19,3670,3856,1828,1615,4215,3617,3690,3694,269,2164,3026,265,4558,551,3000,4200,3173,2721,1297,2377,4543,3575,3315,2977,348,930,2391,589,672,3059,3550,3003,3693,323,3793,1780,2873,3553,563,2356,1817,3350,191,1866,1951,2431,279,3352,4370,3349,3935,2681,1889,2472,1498,135,3353,3309,2605,3081,2040,3479,1162,587,3298,3310,2380,88,2402,220,3354,2339,4056,4534,3351,3437,3799,1331,3250,1831,1541,1901,3355,2165,1908,3611,267,3269,367,2667,2728,2159,4191,4445,2114,3591,1006,583,3529,338,2997,2032,3619,2036,2325,594,296,1902,3564,3630,4055,290,2150,2637,2749,3186,266,3521,2835,3049,4204,1961,3692,3700,2463,2433,684,588,2060,1918,1907,3754,2554,3731,3275,2511,1993,2870,2024,3944,3535,2971,2389,3445,3562,2927,1190,2968,2044,972,2573,2503,3508,1983,1738,154,1867,2900,2453,3035,2357,3589,3699,3522,1746,2324,61,268,3164,206,565,3093,3607,2455,4203,2465,1849,273,291,76,3632,1958,558,3645,716,1896,4547,2584,1935,3278,618,3839,3642,2602,2673,2951,3201,2748,4546,3458,3079,2482,2336,3088,4158,548,3053,3190,1852,2314,539,2422,1914,3527,3308,1851,2140,110,3646,325,2396,3188,3050,4216,2758,4169,3100,569,2288,3742,3204,2371,3528,612,2956,2553,2374,349,4041,3205,3746,3429,2836,3662,2450,171,119,2338,4559,3178,1788,318,512,1913,4455,2449,3937,2026,3114,2315,2588,2601,3659,3747,3574,2499,3547,3300,3183,3563,1499,3076,2492,3074,2293,3496,1861,3842,3189,4415,1682,2657,1937,3067,624,3549,2062,2157,3177,2753,2156,2574,4173,316,2805,4220,4453,4446,2350,2045,3312,810,3614,1247,343,1625,1911,6,1560,1121,2393,2481,3259,1847,3733,1199,4541,4151,4198,1850,3548,1681,2116,3533,3515,260,93,2308,2711,984,2326,2595,2992,4563,3299,1925,679,1751,2493,3119,576,3743,3306,3625,2174,3056,1680,2922,2053,2123,2409,2134,2131,2555,3658,3680,75,3317,3651,111,3534,2578,2365,2590,2965,2806,1893,2437,3099,966,4217,3263,852,678,3583,4560,2355,3639,3650,3031,195,188,1875,2549,3601,4535,2456,2323,56,3484,4063,3065,3635,2514,2939,4192,564,3058,4205,3540,690,2447,1814,4170,1959,73,350,3815,3446,3724,4065,2807,1504,3741,3683,3551,2957,2582,1892,3518,2443,3103,2808,3305,3539,4183,3668,3554,36,3525,4526,4456,3091,143,4196,3233,149,2989,3845,2788,2823,113,68,3512,3436,4066,3399,2930,4059,3181,3682,1008,1820,3687,4548,3468,4393,1679,3316,3537,3723,2725,3725,2994,2162,3337,4539,3684,2719,3691,3706,3089,3398,2152,4171,3760,4218,4561,3705,2139,2491,233,2787,2822,3326,2950,2480,1678,3324,3524,365,3826,3581,3678,3513,3434,552,2242,1685,3311,3506,3397,3465,3482,1812,2435,3707,3463,3516,3384,3419,2543,3441,3729,545,3545,3580,2786,2821,2645,3385,3420,3390,3425,3455,1827,3661,1661,3386,3421,3483,986,3566,2362,3657,3644,3709,1223,3387,3422,2993,3325,3389,3424,3715,2785,2820,3301,3495,3812,3634,3727,3442,3388,3423,2680,2704,3726,3510,20,4431,3673,3577,3674,3507,3520,1662,3391,1924,123,3307,3536,3444,3108,3667,3688,3335,3272,3480,4046,3660,3710,3708,3182,3466,1677,3542,3273,2213,2575,2962,3605,3491,2212,3329,2804,3696,3663,2211,3519,3681,3498,2204,2203,2210,2224,1686,2202,1660,2201,2231,2223,3101,2200,3104,2218,2230,2222,3327,2199,2197,2198,2214,2215,2216,2217,2219,2220,2221,2225,2226,2227,2228,2229,219,1340,2915,728,326,196,3410,2250,2251,2252,2253,2254,2247,2248,2249,2559,3409,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,3395,3685,3356,117,3406,3407,3408,2244,2209,2208,2207,2841,249,3357,3358,3359,3360,3361,3362,3363,3364,2245,3365,55,3366,77,89,92,116,122,230,231,248,276,282,356,1773,3405,3339,3340,3341,3342,3343,3344,3345,3346,3367,3368,3369,3370,3371,3372,3373,3374,3375,3376,3377,3378,3379,3380,3381,2246,3697,3323,1708,1713,1719,2467,3383,3418,3938,3411,3394,3679,3413,3414,3415,1691,3416,3412,2239,2240,3417,3858,69,1709,1710,1714,3488,1692,1693,1694,1695,1696,1697,1698,1711,1712,1715,1716,1717,1718,1720,1722,1723,1724,1725,3485,2496,3403,3918,1721,3404,3402,1684,3393,2729,3401,2241,2996,1704,3509,3499,3728,3578,3561,2784,2819,3821,2243,3271,3721,3400,3318,3047,2561,3637,1689,3565,1128,4304,4211,4554,3336,4164,4165,2238,4070,1702,1830,2828,2863,4555,4212,3677,3544,4057,3763,4447,3929,1703,3579,2571,3320,4305,3490,3328,816,3676,1701,3066,4349,1670,3511,2829,2864,2233,3321,3669,3788,2237,4371,2234,2236,2235,1699,3623,3559,3571,4069,3505,3319,3789,49,2520,1614,3702,3853,3396,2441,3786,3322,3560,346,2830,2865,3334,3382,3517,1669,2490,2444,3502,3500,344,3770,3769,1533,3931,3313,3486,3276,3774,1659,3787,752,2751,1276,4213,2586,3160,3055,3478,3775,3698,2825,2860,3290,3168,2831,2866,4556,3689,2826,2861,2827,2862,3776,3572,3475,4441,3487,3538,4327,4283,3541,3704,2587,2812,3176,2484,3489,2832,2867,3077,1610,3768,2403,3782,3576,4459,2178,3785,3714,3781,3504,4042,2847,858,1668,3438,1707,1808,1343,3277,1519,3184,3501,2740,4457,4067,3638,3939,3567,3474,3258,2354,2504,322,3722,1688,2205,3159,1811,1705,3940,1225,2048,3477,2658,3314,3792,4458,4068,3779,3573,1706,3783,3716,4161,3530,4261,3503,1197,2417,2783,2818,2434,3806,3784,4557,4214,1687,4436,3546,3941,2567,1683,3481,2850,2815,2848,3859,2814,3332,2851,2852,3703,3780,2813,1663,2698,3531,3514,2478,2654,4538,3497,2023,3766,2095,2853,1766,3333,3865,2803,3798,3532,3143,4172,2859,1491,3719,2857,2596,3121,2013,2856,2858,3167,3675,3624,3153,4551,3720,2581,37,4208,3543,3656,3773,3041,3712,4562,4219,3717,1658,4449,2811,3331,4195,2854,2752,3917,2583,3686,1947,2849,3777,3526,62,3765,4429,3772,3330,3778,2789,786,3711,2842,3431,2392,3265,4167,4159,2923,332,207,153,3137,756,3771,3713,4051,2782,2817,2019,2576,2809,3161,213,3187,2843,3767,740,3155,2798,4206,2855,3764,2736,4166,3790,2810,4549,2781,2816,4045,2489,1995,2476,2001,83,2011,2802,2840,3462,3154,1657,2285,3264,2033,804,2844,581,2846,1122,2799,2795,3718,2686,4040,2656,2005,3809,1823,2794,3175,129,1676,2382,3914,4039,2034,546,4460,3932,2635,2330,2560,2133,2936,2638,2955,159,3836,3599,3162,2353,4450,2035,1636,1656,44,582,2839,768,2845,1665,1905,762,2652,1813,4430,2577,3009,866,257,1666,774,1655,1743,2800,2801,3443,255,2893,3467,2838,2562,3753,3156,2796,105,165,1728,4435,2014,2020,4072,31,570,2012,2885,3942,798,1858,3791,3797,3165,4060,528,2925,3284,2762,3149,3017,3174,3120,1962,1899,2659,4160,201,1978,1675,2479,4462,4432,4550,4239,30,4207,3008,3279,2791,2017,43,2025,1835,2924,38,2007,2982,1672,1840,1674,1336,1673,3827,1810,1626,41,1782,1815,32,47,48,1829,2792,2953,1794,1009,2952,1966,46,2477,52,50,1972,45,2954]
bad_iteration_list = []
elif dataset_name == "audio_balanced_all":
csv_normal = "balanced_audio_final_all_features.csv"
csv_annots = "balanced_audio_annotations.csv"
top_features = [1152,525,1755,2055,1747,1166,3803,2889,1151,2897,10,3810,3804,3585,1441,1497,1750,507,13,133,927,945,3749,361,2892,2091,2092,2105,2106,406,772,3807,1475,529,407,1765,2056,1550,1489,1768,3813,1065,3588,3750,526,21,3586,1537,3338,946,1089,136,3348,1071,9,909,1077,109,2057,1455,1469,3197,246,3811,753,1574,1059,778,3198,404,4279,2061,121,357,3805,2085,2907,3752,247,776,3737,1753,2068,4275,1194,2597,2910,2074,2086,1757,1090,923,917,1760,770,1053,4182,469,1154,2075,891,4525,2903,958,1761,236,1603,2906,2902,2066,2708,2709,2695,2694,1539,1764,897,911,2687,1748,2895,2899,893,4276,2890,497,3210,1078,784,2087,3751,2083,252,1485,1609,1839,4519,4176,466,2688,1604,1419,438,4150,2069,1096,1350,251,1447,11,2277,4272,2289,2107,2090,2136,2599,1406,4571,1594,1084,879,3228,4234,885,115,2142,8,928,1427,4130,766,2603,1982,3831,2598,1887,3829,3247,362,513,1650,764,468,4361,2299,1047,2072,521,1652,1637,2071,3249,1481,4383,3738,431,899,3819,4236,4243,4242,235,2073,1552,4179,3203,3227,887,4145,4522,1470,1102,1035,4469,358,465,2081,1874,1928,3825,1072,3216,2302,2693,4246,1353,4249,1364,1649,905,2089,1607,790,2084,1101,3,166,4079,1153,2981,782,66,1798,1472,2064,3251,2627,4295,2297,3229,881,4237,1842,1486,1487,2298,4232,3211,4032,464,1952,434,4323,4339,3921,3848,4271,1644,4184,4142,1845,1568,1791,4527,1506,4367,4148,3199,3897,84,3843,146,1590,2877,1448,1735,503,1231,4363,2051,3232,1066,1155,1378,1460,2065,3293,1516,1468,1638,1474,2778,4385,1538,2625,3231,2405,3739,4301,3223,1407,922,3124,3225,1149,4162,3208,1596,1775,3206,1653,3919,4231,1634,413,2691,1581,4422,1643,1518,4389,681,1023,3217,2082,2940,4258,1635,1150,3236,4319,3828,131,1885,4320,4163,2631,435,3242,873,1461,1988,1640,4317,2109,1530,4346,4140,1434,4520,2764,1647,2049,2067,4273,4341,1041,1483,4315,2070,2076,1435,80,4177,1915,1433,315,1161,3070,2058,1444,1772,1777,1234,916,1582,2399,418,3029,935,3224,2404,796,692,2987,408,3959,1941,79,2632,1806,1412,4136,4337,415,3841,2077,3900,1108,1800,793,2094,4297,532,2274,4345,277,2919,4306,2917,1770,3083,1334,1641,4368,669,3245,754,101,1549,2776,2948,86,281,152,409,2268,4364,4137,437,4268,1029,130,1984,1595,1055,2763,4311,3816,1532,1733,4386,2303,3214,562,520,64,1953,788,950,910,867,1605,2775,4312,417,2130,685,767,3867,1756,2689,4316,1767,2310,4133,1017,1529,1802,538,414,3822,1451,4199,2194,4374,956,981,58,137,2765,4155,4293,4542,1357,140,1646,71,1774,4280,527,2875,1940,1639,2677,2307,3094,2275,411,4298,1420,556,4570,2319,3085,904,2683,1778,3913,1264,2317,1803,3130,2629,1416,2770,4286,1569,3840,4180,2028,321,1393,4381,1428,2942,3212,1664,1933,240,2137,1422,3847,1060,1467,2944,3226,4523,3292,697,1955,975,3215,3005,4379,964,2909,1878,4132,794,1645,2628,1754,1542,2600,3016,2626,2999,2010,3218,412,3846,2306,2684,4338,1125,2771,4264,1217,2132,4324,1371,4352,2606,2009,2348,3903,416,3126,977,446,1929,3027,2769,1349,1440,4377,4360,547,1805,4342,2363,4302,4359,1210,2335,7,3857,1107,2678,439,4333,2614,869,3757,3230,1865,3207,440,898,3152,550,85,757,763,410,2037,775,4397,3220,480,1801,2552,443,1195,1980,509,474,2710,1189,892,1790,2088,1454,3193,671,2364,2898,363,3151,4227,516,2483,4355,241,1170,3451,1345,4139,1216,2079,59,874,3285,2143,2551,1025,3191,2620,886,3823,4141,70,1476,2772,4235,2761,4281,2292,2269,2411,3237,1651,1763,3755,855,4267,1931,2192,2920,4134,1648,162,1054,3435,4382,2623,2445,2672,2896,2912,3179,4289,4347,4303,1019,944,1981,250,4350,2692,4313,4334,1514,3082,963,1356,3628,3243,4330,3213,3246,2779,688,4153,976,448,433,875,941,2984,2670,3057,3863,880,3450,870,2624,2050,1126,4353,2313,4291,3457,442,445,3802,1080,1553,2630,2579,524,938,2337,1667,2475,90,3460,1787,3796,3817,2175,4310,2759,1011,1322,2427,1876,1327,2610,506,920,1739,2145,1377,2524,3861,1909,2767,4294,2634,2381,2166,35,3262,4290,761,155,2127,2271,1690,2648,1352,2647,1804,1886,3627,1985,2633,932,1863,1358,2172,2916,4262,1365,2697,2311,1987,3801,4147,174,4233,605,1329,2790,2756,1449,470,2975,405,3452,3795,2712,2375,4372,2473,4369,760,2188,4007,2278,2442,868,479,3447,4152,476,2616,1786,3433,3222,477,1056,1633,4375,2416,2063,447,1465,242,1079,1105,4138,1061,4259,3432,2027,3071,3075,2316,4357,2179,4131,1545,2947,2401,2113,2120,1092,475,2121,2320,3587,151,1075,2334,1482,493,223,1630,4366,2773,522,2428,444,1965,2294,4284,3219,779,3652,1543,1168,3609,1734,1479,1068,2570,2774,4197,2933,4540,2078,4335,802,2457,4308,2108,1037,2591,876,962,2296,829,914,2021,758,3426,1372,2038,25,2617,2146,199,817,544,1989,2945,243,2760,1114,1235,2189,4210,4437,4569,2098,4388,1178,4188,755,1587,1897,682,4567,168,1822,4328,1026,1005,888,2733,4531,4565,530,2295,856,4358,53,161,505,3473,4185,209,864,2943,1218,3289,3761,40,800,2440,2777,599,471,2929,1727,1869,2430,4223,2766,3824,2928,2731,352,1490,1726,39,2485,1048,2735,280,4380,27,2946,1211,2868,4528,253,1912,4553,94,4356,3471,441,3603,1943,2193,2615,2970,1986,1792,1546,1014,3832,861,3028,2949,2329,4378,769,204,4129,812,28,3852,3129,2507,1191,2611,3927,2513,2407,773,3851,3200,2410,2914,3127,1789,2998,683,3875,4439,3097,472,1619,4287,3854,1825,226,2406,3818,1762,2580,641,24,983,4384,1807,2176,3633,1621,244,3192,263,2161,1043,851,4266,850,2185,902,635,3128,3256,2963,4362,2618,1624,840,673,3590,647,2592,3626,2874,1013,185,2286,3911,2195,1671,2608,2111,1098,1073,173,2932,4278,3004,3428,34,862,3040,1903,3469,2613,2745,2366,2622,4354,134,2340,2452,4331,63,665,3629,1457,611,1967,1111,1922,2128,4292,541,3107,2129,3837,1868,3456,1020,2780,3001,2755,3631,1974,1036,3643,1629,2015,2429,1793,2196,3073,1085,229,1086,1042,3095,2153,4265,4376,818,1024,2506,1642,2593,23,1033,845,1511,3235,1769,811,285,1654,926,2512,2177,4209,1632,4336,4288,959,806,3834,478,659,4224,4325,1113,1834,1910,1062,1119,2747,953,1872,1888,1920,2141,3464,3814,473,2754,1045,3641,3879,629,3461,2191,3030,1205,1589,26,1771,1373,3951,617,1227,3584,3241,1776,4552,1736,2384,3653,4156,1104,3470,2171,1027,2655,2662,1192,2342,2612,1588,3448,104,2663,623,4168,3758,329,2135,1732,4566,1031,4143,2163,2619,1018,1109,1821,1012,2290,2096,1877,2376,2566,3869,1508,2913,1321,2343,3122,2104,832,653,3794,3800,969,4477,256,1442,3655,2471,4418,1548,1880,3283,2550,1611,1049,689,2003,1555,2744,3020,221,3051,2737,2448,3106,2502,2533,2548,686,286,1608,1904,4314,3054,2328,2676,3039,4296,2180,595,2643,1559,566,2522,2276,1093,3895,3131,2986,3157,1784,1517,309,1742,1997,91,2345,2714,1507,3866,3170,4194,1120,3615,2398,2702,2594,2387,4269,1074,211,333,2964,890,3209,2518,4300,3453,2569,2043,4309,1837,3291,839,3021,1960,4537,2454,2869,3011,4222,4049,57,1844,287,217,968,1873,3740,2102,2149,2344,2052,884,1963,3610,896,2973,960,2871,814,1841,4178,820,1894,2080,3052,826,1898,340,982,4174,317,4521,308,205,2346,1531,2824,1833,3835,2976,2183,3180,202,3870,2793,841,2723,380,3194,3912,351,553,4543,1081,2557,3018,2004,3102,2530,3172,2724,2099,4270,2607,1051,1890,2008,1030,327,4200,2022,112,2931,22,2232,2665,1729,4154,2115,3123,838,808,4532,2097,2716,1964,2462,2451,2154,1824,4144,2886,67,1926,1879,3282,1741,821,847,2644,2969,1881,3281,1744,2284,2531,2881,2279,2144,4189,836,2187,3022,3274,1057,1226,254,1099,82,2700,846,1554,2186,2519,304,3113,3116,3036,3244,1843,2750,29,2333,860,2110,1752,1421,3266,2572,2884,2720,3267,3252,3253,1730,2160,374,18,2934,833,2147,2300,3849,853,2539,2413,1779,2318,2983,1946,2523,2446,878,3494,1175,882,60,3454,2280,1458,1998,385,3109,1177,3062,912,2878,2367,1882,2717,848,2395,3238,1544,572,2030,2505,1443,2287,2718,4157,517,908,704,1260,3006,3042,854,3923,314,2682,3756,4524,2974,1917,1456,2432,216,1855,2420,4274,2122,3010,2138,1032,3492,3286,3019,2701,2935,1618,3558,1971,844,2664,3762,272,1991,2006,3552,1087,4181,1968,1930,4340,3023,303,342,2911,4023,3593,2905,3068,2414,2679,3570,274,141,3556,719,3069,2305,297,970,1050,1853,1870,3871,1785,2730,1129,2370,2713,4228,275,4318,3288,2378,1832,2016,4322,3110,536,3568,3596,2967,2331,128,259,559,3612,3169,1932,1318,1039,3557,1891,2876,3112,2707,2164,2741,2894,797,2103,1273,3139,2181,301,4545,2666,4202,842,2412,1038,2757,3860,1583,1622,3830,2439,791,3221,1956,2988,2046,1826,2649,1737,1846,2979,695,2674,1934,2526,785,4344,2100,2990,2173,3555,2515,1977,2966,3268,1781,2466,2347,1809,1996,3105,1758,341,4533,2495,3440,827,339,2660,2415,2182,2529,2568,2685,3427,3569,2312,4413,3862,1069,355,4087,678,3145,3833,2351,2640,2985,3032,4190,294,2349,2972,3254,2739,2332,2469,328,3202,1862,2190,2668,2464,3864,701,4332,2641,3439,3144,1203,4536,1906,2170,1464,3594,2675,2281,3904,809,3887,265,337,2527,3855,929,4240,214,2509,16,1783,2283,2604,2669,3261,4146,1463,1117,3730,2459,4277,2423,596,310,292,4193,3045,2681,2155,288,2532,2536,323,147,2418,3260,1627,2124,1900,1883,1836,1745,3204,3158,2486,2528,311,2460,780,3287,381,2169,3618,3347,298,2119,4365,1816,258,3046,3622,971,3138,2390,4387,2309,4529,3734,2358,4149,2661,2880,302,3472,3868,1246,1944,1631,1860,2041,2883,3294,2727,2461,2421,1927,2545,672,88,3014,2472,2742,2379,593,3701,3024,1021,4186,4564,3666,2388,3038,54,2738,4221,2385,2397,1923,2206,2501,1612,2621,306,3034,3115,2882,300,225,1970,3059,4135,2879,1617,291,2650,359,319,2887,518,2705,2639,2743,1795,2797,2026,2585,3033,584,2538,68,382,2059,2468,1848,1990,1994,2732,1895,2525,3731,2044,198,2158,859,1259,3255,1973,335,3597,1616,3257,1975,3189,2908,1857,4229,2961,3163,191,17,3064,4238,2563,1623,3672,834,2093,3185,3133,3148,1379,3621,2517,3595,1221,4343,2978,1115,2958,980,72,2054,307,1212,3117,299,3736,295,4203,1196,2937,3140,2360,4421,4047,4226,1916,2926,2503,3240,1274,1871,135,3234,1908,1303,324,4546,208,3582,3205,2455,3118,3012,2516,1814,3935,2341,1945,2558,2546,1006,1828,2369,2361,4204,2438,3063,3521,1969,2834,164,2703,539,2042,3619,3732,3523,228,1317,2002,95,3037,2321,232,3695,74,3820,154,2118,3617,3072,312,1535,290,2711,2956,2060,1856,1884,2671,2322,2184,3748,2419,3592,2995,4534,347,3699,2424,1296,1819,4547,2968,2706,261,2872,3493,3061,296,2768,1628,2510,1854,1015,1127,4025,1044,2157,2980,1796,2938,716,2991,3132,3136,61,1613,4191,1896,815,1615,1224,330,4041,3799,3035,289,2433,2391,3239,3007,2541,3089,3665,3048,3146,320,284,305,3087,3670,1838,15,2609,269,3088,2408,1731,1859,4216,2386,594,3793,2272,563,2425,3591,1738,565,1740,2918,334,1541,293,3535,3745,3735,1976,4559,3844,2500,188,3134,3142,1921,4282,3043,2941,3013,2314,1949,467,271,3476,1123,2282,360,1907,3196,2436,2456,4055,2400,270,2746,2437,331,3664,3856,1957,3522,3015,2031,2474,548,3838,4173,1766,4326,1924,3742,684,1939,2470,1851,569,803,318,551,2024,1462,4028,3091,267,3429,1799,2588,1992,2000,2888,1849,3654,3808,2636,2586,2036,2497,1850,76,2389,1831,3141,3086,2637,2168,1919,2576,4415,3092,4169,4299,3671,3928,2487,206,273,2492,828,1614,2921,268,1812,1232,2642,2748,3613,1938,2582,3076,583,2667,3280,3564,2488,3575,2377,1797,367,3270,4031,2651,2167,3044,2494,3630,3166,1682,345,2435,2431,2491,336,2573,3604,2463,3606,264,2288,2372,3430,3195,1893,2722,338,2350,3620,3060,3190,3437,3563,4453,3649,3269,3693,3692,3700,278,3508,2927,1818,1892,3436,2751,4544,3550,4201,894,2426,19,2605,3733,589,3303,4563,2521,3744,1502,2951,3562,1636,1063,2383,1788,3026,1935,4220,279,3098,4015,972,2595,588,2394,3445,4539,3690,3694,2753,3625,3304,2900,4431,587,3177,2434,3441,2165,2359,220,1902,4196,2293,3553,3634,3080,2960,1961,576,1746,3065,2039,69,222,2547,1901,1780,2540,2904,4348,1889,2125,3608,2534,2542,2101,3031,4056,110,3482,3164,2134,1861,3614,2564,3534,666,219,2273,3574,1867,2537,3547,4429,2581,4445,3759,3549,3533,348,3853,3186,3081,325,3529,3632,3842,974,3637,1297,1331,2159,3754,1918,3188,3302,1937,552,2324,1681,1560,332,189,4158,1436,3104,3074,4,2422,1914,581,4187,1913,2699,1499,1343,3640,326,3455,3093,4530,2140,3349,872,3607,3119,2126,4370,3658,3111,3602,4166,1817,2544,2368,75,4558,3932,2728,3183,4446,3645,3635,2339,3350,918,4039,1811,2602,2443,4215,3296,3263,2575,2734,349,2352,2040,3480,1875,343,2357,3352,73,2018,2758,4040,2721,2939,1498,2578,3639,1700,4159,4535,2458,1830,3353,3616,3176,3392,3479,4192,2873,3680,266,3178,2117,2543,3354,260,3351,3025,2489,1162,3510,354,3355,3125,2482,3434,3646,3250,2997,2493,3184,2326,2565,558,4183,2749,954,1220,1190,2589,3233,3278,3496,2304,2560,3691,3706,196,4526,3741,3058,1504,3000,1561,1864,3815,2511,3676,3836,1847,3465,4260,3515,1680,545,3442,3003,3760,2680,2362,1198,3103,564,3271,2062,3468,1958,2870,2053,1751,4217,1999,2977,4560,2139,3677,618,2535,3527,3495,2729,3509,2152,2308,822,1925,3295,3079,3520,2450,3458,2048,2365,111,3506,3598,3474,3099,2590,316,3056,432,2325,4206,3705,2338,4172,2047,3659,3100,2380,2270,965,3661,3918,4549,2514,3682,207,3539,4562,2971,3518,2151,2584,3540,4170,2481,195,171,3463,2327,4213,4161,4455,3662,3259,3316,1008,2646,3265,1813,3096,3528,3201,2653,582,3583,3560,2336,2374,31,2444,3724,3135,3477,3312,2508,2725,113,2989,4556,3937,2156,3763,350,3683,4551,3317,4208,3297,2574,3839,213,3067,3391,3826,1983,679,4063,2114,2480,4561,3275,4003,3511,3101,1852,4219,4171,4060,2315,3684,3306,4218,3600,3723,3577,2556,3444,3715,56,3565,3300,3746,3743,364,3525,3792,4059,924,3548,3747,3638,3651,6,2356,3264,2116,3785,857,2162,3055,2922,3657,810,3783,3147,3678,3668,1979,3605,3315,1951,3517,2562,1199,3524,3566,3674,149,1336,4046,3673,2930,2596,3681,1959,3305,3446,2833,3798,2786,2821,3784,93,512,3326,2131,3337,4538,3656,1866,4065,3707,83,2498,143,792,3725,3481,4449,2330,2504,322,2787,2822,3537,1942,4541,4151,4198,3484,2601,3554,165,4430,1679,2950,3545,2465,2409,3551,3572,3324,4195,4450,1954,2499,62,3858,2587,2453,365,612,3717,3719,2323,3709,3779,36,2657,119,3679,3559,3298,3173,3498,2555,3778,233,3401,3650,3688,3299,3660,3727,3400,2467,2133,2174,2243,3513,1840,3187,2788,2823,3483,4164,3512,3114,3542,2396,3329,984,3667,3708,3325,986,4554,4211,3488,1947,2808,3382,1625,3499,3944,2994,2559,2936,3405,3772,3721,2402,2837,624,2245,3049,1950,2993,3611,2740,3581,2244,3276,3642,3053,4321,2923,3812,2249,2248,2785,2820,2247,2246,3777,3663,1827,3536,3726,3789,3710,3336,3716,3697,3507,2373,3322,3485,1672,2783,2818,2836,1533,2798,1247,3406,3505,3335,123,2371,3687,3328,3578,346,2696,2393,3544,2782,2817,1728,44,3644,4436,858,3290,3766,966,2925,2242,3478,2719,1701,2752,3821,3402,4042,2261,3497,3393,3394,3395,3334,3309,3487,3311,2686,3538,3323,3084,2449,2554,2262,3486,117,2214,2215,2216,2217,2218,3410,3696,2250,2251,2252,2253,2254,2263,3356,3409,4160,1773,2264,2809,1657,1683,1656,1655,2265,2266,2267,2810,3771,2233,1684,2811,2781,2816,1677,1685,2915,3407,3408,1658,2256,3357,3358,3359,3360,3501,3475,1678,2803,3363,3364,3365,3366,3362,906,3531,2255,2219,3361,2234,3339,3340,3341,3342,3343,3344,3345,3346,3367,3368,3369,3370,3371,3372,3373,3374,3375,3376,3377,3378,3379,3380,3381,2210,2235,2236,2237,2238,2220,1699,2211,2239,2212,55,2213,3790,2736,3414,3415,3384,3385,3386,3387,3388,3389,3390,3416,3417,3419,3420,3421,3422,3423,3424,3425,77,89,92,116,122,230,231,248,276,282,356,1708,2221,3413,3773,2225,2226,2227,2228,2229,2222,2240,2230,2223,2231,3411,3383,3418,2197,2198,2199,2200,2201,2202,2203,2204,3150,3580,2224,3412,1703,3685,4067,4457,3273,948,1714,1713,3764,1709,1659,1687,2447,1710,1715,1711,1712,3168,3327,3767,3647,3728,3404,1340,249,3765,2690,3403,1716,1662,1717,1718,1722,1723,1724,1725,3121,3041,4441,3939,2209,2208,2150,1691,3516,2257,1720,3310,1719,3443,2207,1276,1689,1698,1694,1695,1696,1697,1704,1661,1721,1688,1606,1693,2241,3490,4205,1660,1692,3258,3181,3576,3711,4456,3502,3399,3702,2258,2673,2955,2259,2260,2804,4447,900,3929,2996,4165,4057,3845,1702,930,2571,3398,1993,3397,1707,816,3301,2835,2832,2867,2285,1128,3571,852,3704,3504,3573,762,4405,3914,4212,1519,1686,4555,3669,3770,2831,2866,1706,3729,3396,3589,2854,3561,3788,3698,4263,4351,2855,3689,3167,1705,1808,3776,153,2856,4459,546,3712,1121,2852,3066,3718,2830,2865,4207,2520,3579,3333,1858,4550,2726,4051,3272,2846,4327,2857,4066,49,3491,3466,3722,4548,3714,255,2698,2851,2859,3713,2812,3543,2858,2496,1676,4305,3321,4069,3782,2441,2549,2095,3703,2829,2864,2561,2828,2863,3519,2845,3489,3541,1197,2965,3686,2654,2807,3769,3931,3546,2853,2850,3938,4371,4349,3780,3175,3806,1820,2827,2862,2033,2806,3050,570,728,3526,3500,3940,3787,3307,3775,3768,756,2805,3859,2490,3438,2815,3774,2417,4068,4458,37,4460,2484,2794,3514,2784,2819,3313,1835,2638,2355,3277,3318,3786,2353,257,1620,3165,2123,2841,3781,2838,3532,3431,4283,3530,2825,2860,2577,1491,1668,2826,2861,3108,2005,201,4304,3720,3503,3675,2840,2842,4167,2382,3320,3002,740,1823,2844,2839,2814,4214,3941,4557,3567,2802,3917,2023,774,1009,3319,2025,4070,804,2659,1794,2843,2658,3331,2583,2478,3161,3791,3155,2849,2553,2847,3077,2813,752,1626,3332,3623,2035,3143,4261,768,344,3809,1962,3330,2392,3601,2205,2032,3467,105,3154,786,1610,3797,1666,2795,2789,30,3624,2045,3137,2957,2007,528,129,2567,2848,3827,3160,2011,2959,2013,798,3308,2178,3865,2992,2893,1122,3159,2476,159,1663,1670,2403,2762,1669,2354,1911,32,4239,2001,4045,1899,3047,2796,3462,50,2982,2704,2799,2800,3009,2014,1673,2652,2019,2801,2656,3120,2635,3153,3182,1995,1905,1223,2034,3314,1225,4393,2012,2020,3008,4435,2479,3149,1966,3162,4432,38,3279,46,20,3284,1665,2962,1978,690,48,4462,1743,1675,866,2645,45,2885,4072,3942,3156,1972,3174,2952,3599,2792,1829,41,3017,47,1815,1674,2791,2477,2017,2924,3753,1810,1782,2954,52,43,2953]
bad_iteration_list = []
elif dataset_name == "taffc_all":
csv_normal = "taffc_final_all_features.csv"
csv_annots = "taffc_annotations.csv"
top_features = [4150,2892,3804,3585,3810,2889,3749,3803,3338,3348,3588,3586,3750,3737,2897,4133,3752,3807,3813,2687,4134,2934,4136,4519,3811,4176,3198,4145,4142,4140,3228,2890,3805,3751,2709,2708,4139,4242,4236,4243,2694,2695,3738,3831,4237,4249,4246,4148,3232,3211,3216,2975,4571,2868,3010,2963,4234,3220,4138,3229,3224,2999,3085,3829,3005,3351,3217,3197,3223,2949,3739,3210,3206,3082,2869,3011,2895,2769,4279,3106,2976,3004,2871,3219,4524,4181,2763,4540,3083,3227,4129,2906,2964,4197,4315,2688,3094,4523,2778,4232,3847,4180,2697,3208,2776,2903,3846,2917,4312,3006,3222,2937,3001,2935,3251,2966,2902,4276,2764,3900,2940,3113,3107,2898,2907,2899,3225,2775,2978,2920,3247,2998,2942,3814,3207,3828,3209,2910,4319,3112,4131,3249,3832,2944,2773,4337,3293,3203,2981,3848,2929,3875,2765,2710,2928,3042,4341,3230,3260,4381,4525,3057,2770,3292,4182,3218,4363,3214,3012,4032,3857,3226,2933,4297,2712,3921,4385,3755,3866,4359,3870,4130,4339,2932,2877,3819,3109,4316,2759,2947,3212,4334,2984,4273,3903,3126,4293,3040,4275,2714,3913,2693,2779,2987,4185,2691,3868,4528,4141,2771,2761,3016,4317,3911,2756,4132,3073,3587,4383,2760,3231,3245,2945,4290,3130,2914,3897,4360,4378,3246,4356,4338,3285,3590,4272,2711,3051,3861,4271,4530,3867,4294,3919,4231,4187,2919,4278,3757,4079,4361,3263,4189,4382,4183,3254,4323,3808,3822,3115,3825,3172,3124,3860,4526,3851,3447,4345,3023,3255,4258,2896,3199,4388,4520,4306,3450,4532,4366,3862,3841,3020,4031,3864,3075,2774,3215,4163,3959,4177,2875,4295,3097,3070,3039,3045,3593,4227,4240,3213,4522,2745,4184,4179,3054,4527,2689,2960,4147,2995,3869,4421,3013,2969,2909,2931,4469,4379,2767,3609,4268,4301,3471,4344,4303,4422,3257,3758,2747,2755,4346,4418,4320,2703,4529,3840,3018,4342,2905,2951,4565,4291,4357,4367,3629,3250,3761,2737,4311,2916,4186,4389,4162,3951,4298,3457,4233,2912,4386,4137,3640,3843,2834,4347,4155,3628,2970,4178,3460,4259,4521,2700,3592,4364,3064,4570,3627,2702,3095,3274,4335,4313,4308,3256,3282,3456,3652,3048,3281,3452,4300,4222,4281,3603,4028,3350,2913,4368,4380,3817,4372,4224,3261,3262,3259,3242,2750,2766,3461,3816,3451,4318,3833,2990,2768,3655,2961,3179,2707,4280,3464,3119,4358,3426,3288,3912,3469,2772,3046,3283,2943,4143,3596,3241,3235,4369,2874,2701,2911,4350,3152,4302,4007,4135,3473,4264,4566,2692,3118,4535,4192,3291,4324,3470,4322,3454,3205,4238,4384,2706,3626,3653,3151,4397,2948,4531,2941,4284,3062,4188,4235,4567,4270,3221,4352,3756,3007,3584,3895,4362,3021,4262,4333,4286,3837,2713,2983,2739,4477,4210,3448,4553,4374,2958,3253,3252,3740,3121,3139,3730,3071,3243,3612,2974,3236,3193,2777,2997,3029,4439,4340,3267,3855,2742,2705,4152,3591,4267,3266,3244,3917,3433,4330,2887,3796,3428,3102,4415,3238,2744,4153,3823,3795,3432,3237,4310,3052,4328,3589,3131,3904,4274,3802,4292,4041,4314,3185,4336,3621,3116,3026,3069,2918,3435,3594,3854,2743,3801,3824,3871,3794,2876,3276,4353,3852,3879,3646,3595,4325,4157,3597,4296,3617,2882,4552,3610,3800,4154,3607,4437,4569,2986,4269,4199,4542,4538,3150,3815,3140,4209,3132,3136,2936,2749,3159,2304,4332,2985,3268,4431,3830,3849,4168,4195,3863,4266,3269,3634,2967,2753,3472,3060,2946,2957,2751,2699,3063,3637,4039,2886,3191,2956,509,3604,3122,2748,1087,3631,4156,4194,2720,3602,2973,3844,4537,3127,3234,2780,4149,3455,3117,3110,4288,3170,2757,4413,3927,2988,3270,2718,4377,4289,2824,4025,3154,4174,3086,3643,2888,2754,3061,3019,3033,2730,3570,3606,4049,3641,3932,2733,1109,3440,3187,4221,361,3649,3633,3101,4223,3133,3148,2593,3022,4375,3820,3258,2735,3632,2881,4309,4564,2638,3189,1420,3615,3134,3142,3754,2921,3439,3128,3568,2971,3427,3569,4355,3468,3074,4023,3096,2741,4003,2752,3835,3465,2732,3014,2925,3818,3105,2793,3731,3027,2156,3619,3181,4558,503,4543,875,1929,3024,4277,4215,3923,1790,3599,4387,1541,467,3067,2972,2894,4365,4200,4287,3744,884,3157,4201,3355,3030,3036,4545,1589,2657,4202,792,2726,3178,2872,3239,3935,1621,3129,3746,1550,77,3233,3635,3289,3552,4544,1712,3834,3123,4343,3453,3286,4354,2950,3025,1588,3280,1838,2717,1616,3616,851,3734,3201,834,2790,1582,4228,2724,4229,2716,3618,1791,292,2723,3204,2487,1032,3695,2923,4040,84,2731,3287,1762,3084,2679,1767,2878,3666,3038,4203,3169,2643,3853,4376,2685,3125,3535,2738,3240,3186,3168,304,1073,2884,4265,4045,4546,1872,3622,1127,3555,2680,2979,2835,841,3009,3059,2965,2922,3162,2297,2587,406,4429,4055,1642,2927,975,2307,1918,2003,873,3066,405,3347,2883,2310,513,838,2722,3753,2436,3799,593,121,3017,2993,1049,1980,3732,3093,3701,4173,2873,72,9,3608,2455,2635,3088,2064,809,2989,2474,1847,3520,27,3793,3735,1911,252,3630,911,349,1630,2144,443,2429,3144,3194,101,860,3647,2309,684,1611,1117,3441,2528,256,2992,3188,3153,123,1769,2758,1617,3918,4445,1627,4190,1629,3278,854,2904,2481,2189,74,3661,3034,1924,3678,3856,2464,2324,1876,3642,3598,546,1421,339,1805,497,3624,75,335,4282,3620,1318,1177,3111,3098,1568,86,2056,1841,3826,3055,1640,810,477,2727,1803,2337,4046,3645,1764,791,3562,1455,4144,3430,2836,4087,2193,1017,3564,1468,1837,1889,4533,317,1916,3103,3202,3092,2292,165,3680,2959,1625,2198,3065,1703,3665,1125,3600,2154,2792,1111,2150,2686,3437,2289,1849,272,4059,242,4563,3540,962,3533,2797,2930,3549,4158,300,2600,3056,520,4450,302,2908,241,3517,908,3664,3654,1988,2596,1613,2151,1910,204,3434,3736,3563,572,3141,4220,2510,1652,4196,1448,3670,847,2900,1296,2071,189,1331,3492,2968,3436,3290,1093,3838,2373,4539,3180,3087,1912,359,2338,3138,1761,3683,3668,4436,3676,305,248,3160,2162,2203,2589,840,34,3658,2664,719,833,3523,3183,527,2335,3693,2475,3031,2618,1433,1224,2590,1191,1628,980,798,1894,2893,3644,3762,3482,4047,4226,4331,3525,3072,2171,2397,1465,2473,3028,754,1873,3496,2435,3743,3763,122,522,4166,1890,1997,932,4299,1984,3015,2938,3445,876,240,35,2128,2525,1891,982,4146,914,3699,2296,3463,1802,3663,3660,1365,174,1619,1045,1457,1026,4435,3671,1651,3444,54,336,80,1056,295,3682,76,29,3688,1914,1168,4213,2671,3691,3706,3158,4204,1935,2791,3265,866,2646,228,2205,2926,3601,3429,3639,1120,1697,1538,4556,1539,119,2015,2204,3745,4453,1068,3721,3192,880,1560,3547,2472,965,1782,2480,3614,225,4547,1153,3312,2721,3300,565,3382,1043,595,1909,1800,1920,246,3163,796,3493,475,3495,1899,385,2163,1327,1653,2456,4169,2088,3104,411,3431,1622,3184,3100,1893,3442,2578,3858,279,2059,1487,2939,1175,3521,538,2980,4161,1638,135,4548,1555,821,40,506,222,4393,2833,755,3135,4160,976,3613,1842,2652,4207,2483,2465,623,688,3931,1946,4550,909,3446,1483,3674,4205,3306,1546,3032,253,1115,1227,4321,1695,282,147,3565,3887,1416,1378,351,3508,249,290,811,91,2994,2417,1531,2595,1704,3839,3043,3717,1060,3534,3114,2138,1799,110,1938,2678,3574,2245,679,3623,2656,1104,1151,828,4348,26,784,1221,4170,4430,3579,2585,1053,1066,3560,1921,323,2236,2531,4549,4208,1074,289,3748,1343,4191,2143,689,4551,3690,3694,4159,2374,3279,4015,958,1898,780,946,1089,3566,243,3091,2636,2588,288,2632,22,2387,2880,2178,818,4206,2165,2421,2306,3166,341,4326,2294,2410,2440,874,3522,3515,2208,2200,3605,2663,363,2427,3937,2602,4239,2577,845,977,797,4217,3557,2341,1641,1470,1036,1708,3524,1225,4534,1532,846,1334,3692,3700,1874,563,1998,347,1533,1504,1054,1892,4536,1850,2798,1419,2591,2344,2242,2870,1922,3337,902,2155,111,271,3554,4559,2433,3558,4560,2662,2516,216,257,4193,701,2314,2598,1983,4216,2237,4455,3044,1878,3667,3672,2322,589,296,956,23,3785,1858,1472,3687,556,3812,3494,1223,1102,374,1986,3264,1967,4446,3161,3058,1030,1042,466,905,357,233,3551,3809,3718,2564,129,1129,659,966,1113,2783,2818,2837,3556,2004,1543,293,3659,4370,3928,512,1075,1781,3200,3783,3273,3475,3651,920,1751,2219,2303,3705,892,1989,2470,232,3571,4063,1161,3349,1711,432,1807,3733,2782,2817,3611,2552,3497,3559,2223,1329,1982,2102,1025,3509,4541,3677,3827,4056,1645,338,881,1498,1246,3581,2082,4151,4198,32,2640,2207,898,2147,2432,2032,2541,2197,3316,3944,1864,2254,3480,2149,1357,131,2129,28,1956,3723,1447,154,3638,1631,1047,3727,2534,2542,822,2476,3760,2182,2394,3353,1449,3578,857,3546,1259,73,3053,311,3772,2517,3527,226,3539,1020,3195,2812,2586,2018,2347,116,868,2503,3510,41,2206,1957,2401,2696,2659,1090,2298,2214,665,2444,3702,2140,3479,1896,3724,2239,3474,3779,3719,2453,2665,2386,1814,1336,1048,1050,278,974,465,853,418,2311,2539,206,2655,1699,1765,3537,1978,3789,3326,4065,1768,4072,1692,3572,2423,2209,3294,3275,1276,786,1968,1548,1044,1321,2409,3673,2601,2016,1685,3662,2563,1024,3529,3156,2494,3392,413,1895,1456,3778,30,62,213,143,583,4218,547,4561,3478,1632,1944,1019,36,1706,3147,1707,2313,1154,1545,2800,906,2452,624,1620,2443,2255,1881,2215,1194,2794,2090,4172,2152,1021,1686,2803,3486,1976,1862,2136,1442,1771,4171,60,2222,1709,1569,2811,3784,1428,1474,2034,2326,1035,1753,599,159,2781,2809,2810,2816,3715,3173,2350,2074,3575,1869,3400,950,1122,2170,2076,922,2789,3000,104,2195,230,2210,301,1710,3099,1542,4562,24,1902,3175,2651,1934,2213,2486,900,1756,2977,2915,1107,1882,2021,4219,1199,356,3725,1077,2199,3726,3767,890,2411,1665,1813,3942,2027,3305,4449,3707,4304,431,2573,1114,277,3120,3145,3499,2220,1913,2231,364,407,437,2637,1664,4070,1650,2454,3504,1835,850,1700,1713,2040,3488,2060,3401,1618,1364,1644,3792,3049,3402,3403,1485,3709,2962,528,1719,1687,669,1671,447,882,344,3272,855,1962,2740,2216,558,3077,1464,3393,2321,760,3679,2954,2146,1773,4,3836,1469,414,4164,3526,2202,2300,1031,3507,2226,3309,3322,1519,3477,3938,1972,1260,4060,2249,2141,1828,2348,3516,3720,3528,1701,1770,986,2786,2821,409,2787,2822,1029,2168,1583,2795,2403,3650,2853,1823,671,2580,964,594,3790,1794,938,3068,3404,3777,2259,2293,2023,2315,3722,2804,2240,331,318,1829,4554,3506,3481,3329,2597,49,1721,1190,4441,4211,1205,4066,1486,2260,265,1757,1798,2438,1119,250,1760,1033,18,2191,3821,3368,3689,3703,2161,2572,918,3361,3362,3367,1623,1715,1722,2412,2244,3357,2631,1684,2221,584,3196,1806,1688,94,3545,315,3771,2785,2820,2736,2080,3729,1740,3791,3397,3398,3399,3396,3583,505,128,1462,2847,1832,2345,1189,3684,1733,3041,2274,2275,2276,2277,2278,2279,2280,3511,1990,1994,6,3363,1763,3503,1739,3317,3781,3339,3374,2261,1723,2604,1677,362,803,4260,275,2522,1734,2044,3764,3340,3341,3375,3376,211,153,2211,1741,2224,3356,2461,1669,1675,1676,1729,1683,2788,2823,4456,3296,2658,1965,802,3405,310,3369,3406,3407,3408,3409,3410,2256,2183,2115,1718,1443,1682,1742,1743,1744,1746,1880,1745,3774,3324,581,3364,3365,3366,3370,3371,3372,3373,352,844,3518,2262,1995,1897,928,517,299,1943,196,2526,53,566,1581,1735,2212,582,2218,1406,1689,930,2263,1730,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,3765,1720,2217,3536,2258,1039,3487,380,1727,3483,1690,1647,1731,2257,3685,2085,3143,3859,2399,960,1694,3327,1732,3412,3384,3385,3386,3387,3388,3389,3390,3413,3414,3415,3416,3417,3419,3420,3421,3422,3423,3424,3425,3358,1827,3708,4165,1717,2233,2376,3914,1966,2468,1949,1818,3741,3788,1728,539,2230,1098,3438,2246,3675,1724,308,46,2500,1736,2046,2022,1340,1848,2832,2845,2846,2858,2859,2867,1012,3299,1725,3359,3342,3343,3344,3345,3346,3360,3377,3378,3379,3380,3381,1670,2844,3334,757,972,2746,303,3845,3773,1843,1055,2857,2353,2488,3782,2281,2282,2283,2284,2285,2286,2287,2288,1804,1038,2131,1964,1491,2184,2225,3704,1393,2426,16,70,3576,2466,1610,20,2201,1678,1900,1476,2137,3352,45,544,3164,1681,2813,612,47,3766,312,435,2856,2831,2866,896,1737,291,935,924,2546,1738,1973,1654,4212,4555,1008,408,3716,1726,541,1951,480,944,2843,56,2799,2579,3544,2062,856,2537,1463,1092,287,137,346,1716,3769,2560,1905,3553,1587,2078,3713,231,2414,1772,2855,2031,50,1981,48,2784,2819,605,21,3502,3037,152,3190,2719,2815,3167,682,1009,3770,1497,3541,52,112,1350,2830,2865,3354,808,1714,2854,3411,2852,3383,3418,2459,1831,2390,2190,2247,2111,2312,1903,635,1783,1947,1796,2434,382,3710,4042,1856,4557,4214,2055,3466,1502,3323,39,2851,2829,2864,1458,2013,929,2235,229,1833,1475,804,2555,2439,3108,2506,1379,3787,2039,1937,4167,2001,2991,3542,2666,4459,3076,1105,1373,2471,1871,516,3711,681,2551,208,2378,1928,2327,2842,618,2841,2639,2446,1358,260,1126,2828,2863,2850,2134,2827,2862,1005,2848,3512,2116,2160,2042,2826,2861,2142,3538,2431,3768,360,1674,2400,1979,1860,1754,1888,1128,3797,1885,2493,2349,2557,67,3476,545,3500,1435,2996,1123,3798,3776,794,3335,861,105,954,255,2660,2007,468,3325,4305,970,3321,1955,1633,3002,1198,2334,464,3311,4462,1274,3698,953,3669,416,2005,3501,894,4051,3806,3079,2098,641,2653,3573,146,816,945,2229,3548,1372,3395,1824,1816,2332,57,3513,3,2825,2860,562,2462,2561,2357,2849,2372,2654,1195,2661,3328,1499,2072,2318,2554,2509,2415,2814,2192,3696,697,1349,904,444,2840,3505,2594,1991,2006,221,1072,95,2054,2010,948,3333,2375,2248,3303,2049,66,1441,2484,2729,3567,2802,1825,2033,83,695,518,1027,767,3514,1467,1855,3443,4069,149,2391,3941,793,415,864,1609,19,2575,1958,2447,2796,2132,858,3485,963,1821,2167,3681,445,2567,1801,2606,1553,155,1062,666,2019,1945,1655,2442,3394,1518,171,320,3498,3003,1778,3775,3307,10,1084,1693,266,529,2227,3165,2477,2544,3490,3391,2406,201,2570,3308,2037,365,173,4067,3786,322,3519,3712,4457,1970,2558,214,1322,3780,1883,1639,3577,2592,1775,2725,685,294,2451,280,2308,839,1702,2398,2061,2241,2228,471,31,3561,3304,859,1561,917,2839,611,15,1434,1264,2445,85,350,3462,2351,1953,3155,768,3491,2532,2536,2642,1427,1950,984,1915,2529,3297,1178,17,1971,1018,1774,3319,1317,2645,82,1758,270,2670,3318,2698,3314,2556,1436,2028,756,507,2644,88,1234,1377,2123,306,1624,3331,3489,3686,1635,2110,971,3315,3625,2371,2953,1939,3320,3697,2339,25,207,690,2838,782,1974,4460,3728,2553,441,1516,1371,3008,133,1303,4349,4371,2177,2543,3939,2625,168,959,2118,2095,1235,832,1942,476,2501,2479,7,2174,2583,1615,3484,2073,3089,788,886,769,3532,1412,2025,244,3182,433,2026,764,3543,273,2955,2316,1220,448,3582,683,3080,2512,1081,2145,191,3137,815,3531,1811,2196,412,1614,2801,2507,1086,134,1015,1595,686,2527,1608,1698,286,862,1530,2620,1080,1680,2385,1766,1755,2096,2485,2097,1345,1875,2565,2380,1612,4283,3177,1451,2331,1907,1673,2077,1836,2365,1552,969,2627,1859,2369,2581,2728,2633,188,4261,2057,417,2130,2605,1679,2497,551,334,199,4327,2441,254,1822,115,3302,3332,1212,2634,2615,2540,1544,3714,2250,2086,337,2053,2020,2187,2234,3330,3336,678,3759,2402,309,790,2043,1490,2166,910,1150,926,2333,2424,55,2545,307,3047,3530,1646,1481,1672,2124,2381,1941,888,576,2329,1006,261,367,2514,941,550,2384,2504,3298,779,3277,2624,1845,38,472,2523,1996,2648,1752,1101,2524,773,13,2469,223,333,526,1776,2360,1529,284,3035,1059,2667,2330,879,267,2175,2599,2232,1352,71,1993,185,2734,3301,2458,1636,3550,1789,763,198,2508,2647,1660,2584,2420,826,1748,1247,258,2413,3050,525,1657,236,842,629,1063,1121,1197,1750,2099,1901,1667,569,2377,2079,2011,314,1192,166,2437,1854,2122,298,820,758,1297,1868,885,1840,1779,2290,2515,1808,2119,2513,2164,1648,3149,1211,2370,2496,2519,2305,1218,1851,2355,90,2036,4405,1879,1975,2094,2002,251,2562,983,446,1061,263,564,3146,1846,762,2807,2404,1747,474,1933,2336,2521,2363,559,117,2684,2125,570,1155,2186,1844,916,1666,11,93,2392,1273,3742,2422,852,59,2668,440,319,2253,2396,2185,870,716,1085,2295,887,836,774,469,2367,63,358,442,1906,8,1952,1071,2669,316,814,2382,1626,1960,3310,1870,2482,2114,2302,1963,3174,1594,2058,1853,1590,2238,1954,1861,806,617,1815,2569,2117,2808,478,1877,2762,136,829,899,2491,1691,1834,1422,2682,2416,3580,775,1852,327,1108,2641,3313,812,752,923,2127,3842,740,1041,2069,2317,493,2395,1444,867,672,109,770,3081,1057,1162,434,274,1460,521,340,1554,927,2087,1656,1489,3747,1232,202,2048,1203,1705,1217,2320,130,2538,328,2518,893,2126,1658,524,2609,981,778,1784,588,2108,753,912,2346,1023,2430,1037,2574,1830,1099,1517,2674,1930,92,1210,113,2135,2467,2343,205,2194,2089,1886,2067,220,43,1777,2030,61,1884,2252,332,2621,2065,2550,1839,4432,2448,2038,2576,2611,2879,1659,269,3295,1787,3176,2101,2153,2063,2407,1226,410,2379,2012,276,2499,2009,2495,2568,58,1795,1663,2100,2612,2613,1977,2502,1857,2188,2157,1096,1969,2133,1078,2530,1932,64,2566,1537,161,2176,673,2405,355,1637,827,1506,1065,536,2014,3467,2299,162,2428,587,761,2676,2024,2340,2388,2610,2083,2419,1549,878,2035,473,1454,1356,2649,2704,297,195,44,1643,869,2104,2408,2608,2650,2354,2172,268,1788,1786,3458,2450,1166,1196,532,1662,2617,848,2093,2924,2047,1231,2066,345,2081,1925,470,3271,151,285,3284,2559,2179,2505,164,2463,1511,2107,1797,1793,2328,1011,2673,1820,2368,553,1069,141,325,1514,891,968,1634,817,3865,1559,209,785,872,2139,281,2068,2393,3656,2626,2619,3657,2181,1014,647,2449,1810,548,439,1535,2805,37,329,800,1051,2159,2806,776,596,1817,404,1152,2070,653,2050,1812,2366,69,1809,692,1999,219,2457,2342,2533,2548,68,1819,247,2121,79,2120,2364,381,2675,259,1507,2113,2358,1866,1605,2180,2008,1959,772,1407,2520,2418,2173,728,89,1865,1604,354,2681,2460,2325,2885,1596,530,2045,1461,2323,1649,1931,1216,217,1603,1961,438,2607,2169,1079,2359,1926,552,1940,1992,2000,2582,326,2017,1987,2549,235,1661,2084,2052,1149,704,2672,2547,1696,1353,2425,1887,1908,1574,342,766,1904,1826,2535,2362,2109,2498,1863,324,343,1482,2628,1013,2622,2492,1780,1170,2319,2982,2361,2352,321,2356,2105,2243,2383,897,2106,2603,1985,479,1668,2091,2092,2630,2251,2075,2952,2051,1508,1607,1440,2511,348,2489,1917,1923,1867,140,2041,1792,1479,1919,264,2614,1927,2103,2677,2623,330,2389,2158,2629,2683,2616,1785]
bad_iteration_list = []
elif dataset_name == "baseline_lyrics_609":
csv_normal = r"Ricardo_Letra/Mixed(C6)_NomesRevistos_Reorder_Best.csv"
csv_annots = r"Ricardo_Letra/Mixed(C6)_NomesRevistos_Reorder_Best_annotations.csv"
top_features = [i for i in range(1, 610)]
bad_iteration_list = []
elif dataset_name == "180_letras":
csv_normal = "180_features_good_features.csv"
csv_annots = "180_annotations.csv"
top_features = [13053,12997,13012,12808,13060,13127,13002,12810,12813,12815,12814,13000,13056,12806,13065,4671,2405,12546,13005,12811,13066,12826,13008,12809,12882,13033,13124,2847,11863,3372,9633,12122,2397,13052,8870,5981,2434,13089,12842,12883,13011,4722,12943,13058,13111,8938,13099,3367,8996,9644,13130,12914,5974,5256,4750,12996,13049,12959,12897,12819,13007,12981,12928,10407,12820,3471,13106,2855,13009,13015,5985,13040,2848,12962,2857,10339,13055,12920,12812,9097,2396,12132,10364,12916,13051,12944,13126,13108,13046,12947,12164,12322,12836,13026,3878,12958,2360,12924,9818,12130,2980,12855,2529,10468,10134,3329,12952,12844,13022,4745,11606,2353,3293,10417,12939,12885,10571,13128,12195,12824,12919,2384,12840,13016,85,2347,12948,12951,9838,2389,8945,8863,5988,13027,12823,2392,2842,2355,13083,10623,11219,12901,9859,3344,13031,4849,10564,11186,3603,10437,11110,2804,12825,10788,11345,12978,12145,8892,13129,9691,10332,13061,60,2382,12839,12907,3496,12237,2376,13043,12329,2404,13003,3353,12998,3406,13121,12985,12990,11628,13010,2455,4672,9607,9057,2441,12881,13067,4980,9679,12931,9649,13096,3368,13044,12850,6001,4707,13018,12982,3500,12859,3253,12923,12818,12922,4824,4910,10387,11088,203,2398,12999,2403,2867,8918,12093,9678,12476,9077,12872,10374,13017,13119,10718,11287,2953,2936,12381,10578,11194,263,2832,2354,2833,13100,2416,10592,5188,4878,2644,3601,9671,13039,12921,12177,11805,12383,4784,2483,13032,9659,12927,2859,3602,4151,5979,12858,11620,11737,13059,3095,8142,12165,2925,12993,2854,3467,12867,12178,3995,2406,12967,12874,13068,12136,2997,12828,3532,3025,4930,12940,8903,703,2849,4819,13029,2467,3358,2423,4873,12821,12873,12336,11697,13105,3049,8948,3377,4736,12417,3495,2906,3575,5989,11702,5529,12353,5971,3592,5986,2874,12583,2523,2401,12991,11652,13125,12987,12301,9879,376,8950,12906,13112,13109,12085,10561,11184,5982,13006,2918,8883,9118,2892,3514,9236,2999,4715,10477,11134,6101,7372,12423,3588,186,3460,9005,2055,78,12175,10531,12995,168,9275,12827,12877,10525,11162,10419,12860,584,11586,10551,11179,10406,3468,12988,2574,12162,3788,13079,2538,9050,13036,5975,2343,12090,2485,12491,12129,2989,3770,12909,4852,2390,3576,13062,2799,3560,10479,12105,3036,2425,5136,5112,12316,12994,158,3570,3810,2825,12572,2934,12319,2839,12350,4743,12163,3708,3309,2902,8908,6650,13042,2391,2822,10741,12856,3552,4845,8896,2500,13030,3533,11802,12946,4683,9520,10659,12146,13004,5001,4023,4816,13057,9637,12205,3734,10368,2806,13001,12817,3299,8937,12746,12912,12180,2794,10558,9737,9779,12536,12276,269,9639,10405,11095,8946,10455,5236,12773,3580,9356,12135,9048,3848,12498,8911,1016,2868,12174,2981,4189,3759,5204,12283,4979,3553,12965,10814,11367,5567,13097,2204,12816,10380,9832,9689,13050,6806,4725,12950,4953,9746,6740,12902,4039,2798,12613,12031,9393,10457,10005,6283,7568,4892,10625,12053,13092,3474,10522,11022,11542,1309,2897,9641,12157,12060,3323,8935,10371,12484,3465,578,12780,12309,3438,10731,4032,3484,2648,2371,12107,13081,10446,12369,2699,12904,7971,3880,2381,8947,5166,13064,3743,2363,2827,3982,13107,685,12232,3365,303,4134,10335,2879,4862,12339,13084,9091,1954,4985,12358,12560,2464,2548,2515,10617,11214,10816,11369,2512,5057,3482,9630,12875,8072,12499,10016,4240,13034,2971,12575,4860,13087,2958,2428,9046,10388,2821,9026,3868,12637,12147,2348,4681,5976,8047,2546,12395,13041,13073,3015,9319,12481,10990,10349,11071,8864,3542,9051,2659,3931,12893,8866,11613,265,9977,12182,5401,11887,5373,4966,12167,10771,11332,1868,3058,2494,3110,2520,2201,3659,12648,3758,6922,4342,10538,12694,4486,2351,10420,3328,2933,3733,3304,3898,2973,12279,9272,10466,3416,2860,9342,10536,11170,12871,12832,11680,12822,12831,4007,12400,3386,12091,12245,12516,4981,10721,12343,12956,3598,12992,9065,12221,2947,6126,7399,3458,10083,10500,3658,8975,11701,3702,12968,2453,2557,10384,11086,4836,3536,9995,2622,6299,7585,4946,2490,3849,12351,12289,3320,2598,12908,2417,755,12281,2146,12224,8919,13063,4731,12941,4116,8907,9868,5090,12359,10543,2965,6285,7570,5089,9251,6569,7884,12938,10526,11163,10261,4746,9687,734,3300,4190,3301,398,4688,2514,4914,13122,11712,8936,1736,3489,10784,11341,3498,10559,11183,1155,12257,10834,9811,5377,2717,6167,7442,3623,11704,9300,2801,380,12126,12229,4220,7587,12685,3948,4710,8930,10115,12489,3150,10611,9038,3101,13037,9826,3884,9618,10344,11068,10427,496,9232,1478,12302,4778,9648,10447,10013,9047,2650,3252,11604,2811,2035,4838,3927,13019,8917,4846,150,12439,9992,9814,86,11917,6938,31,3341,8956,2915,3000,5417,12541,3999,10378,2945,8530,12527,11832,2486,3693,9640,4626,12140,9314,243,5226,306,7208,9787,5618,8858,3073,728,2951,10291,302,10373,3008,5991,3515,334,10753,11314,12156,2561,8889,12408,2346,9930,9686,909,9570,12949,9934,2367,9254,9138,11732,4938,12120,2929,948,3661,9973,9676,1650,697,4102,4687,3053,8506,12979,12037,680,1669,12743,11037,11559,5410,10394,4857,9122,12975,11713,10937,11468,10714,11286,3412,582,3477,10579,11195,12458,12791,12271,9085,13048,4855,3303,10296,3858,12861,8285,10890,11430,13123,10381,10520,11159,12213,9343,5512,3478,10491,11818,6011,9003,6193,7471,9189,8584,3617,4794,2522,3712,3526,9685,10665,485,9403,9810,2904,24,5864,11589,12375,3418,10370,13120,2841,8899,11948,8458,2463,9654,2549,1714,6211,7490,4682,8984,2566,9981,12152,4473,5385,12128,13045,2914,9658,3032,3923,5494,13082,8978,12441,10363,9825,4835,131,2487,10769,11331,12073,10638,11230,4954,9136,9062,9465,12917,9240,4906,10148,11859,2532,4698,9715,9550,10372,8898,10512,5137,12471,9518,13104,3469,9643,12504,3168,3108,4117,11881,9604,4931,10097,4755,2410,12143,9443,3441,1626,11688,2091,12475,11849,3951,5598,3411,12755,938,10835,3830,12183,12077,2530,9070,6106,7377,10518,11157,2585,5508,6345,7631,10118,4918,12795,12833,12407,10333,11062,2713,3871,1960,9788,2488,5101,3077,5024,2427,10206,11986,10901,10817,12256,12291,10280,12507,526,12258,471,3422,12974,12253,473,5039,3350,9247,13069,4034,4632,3347,12935,9861,903,12692,2861,2814,6832,12698,10125,2121,4893,12626,5086,9767,2913,8078,4701,13035,8115,10712,11284,10604,12012,8993,9044,3310,6765,10310,12891,9785,10521,11160,9502,2803,4786,229,12215,12688,11029,11549,4965,3870,9885,3137,8913,8290,10164,12534,2963,4122,12614,9193,13115,3804,2866,8257,4738,2067,467,13091,5568,1340,10737,11300,6,2564,3876,365,5495,1640,987,9106,689,10855,11399,12846,2793,13094,2171,3841,4876,3164,2641,8331,1931,12495,49,9398,9716,12116,2254,3048,2597,8901,4296,3092,6438,7738,2657,2602,10809,11363,2478,854,9144,8402,10613,2286,2797,9246,11824,2957,12571,226,459,1740,9940,1724,8989,3826,2081,2086,12317,3262,9805,10255,2420,12139,8281,12457,10328,10362,261,11615,12878,5822,4630,2342,1585,12506,9806,12769,1115,4311,11681,8019,9053,12505,10375,2350,3607,2061,9794,4792,9073,3407,988,9677,10060,3628,3665,5480,9392,417,8214,5720,575,9819,1634,12049,10637,5066,2873,314,1678,9539,12231,11850,10524,4679,12722,12918,8879,3247,3881,9629,8268,2920,9661,3424,2499,13024,10609,11211,2742,12953,4956,10111,10882,11422,12454,3254,11582,5301,193,2977,2009,11675,6348,7634,12299,13101,11916,1193,9847,3978,12969,10079,10422,130,6135,7409,12294,3297,10861,2021,6077,7347,10533,11167,2607,9792,2077,10041,4444,2448,3818,311,4504,2834,13028,10552,11180,6716,2686,2668,5309,3166,534,10354,3641,4790,10600,3446,11602,4631,6849,10581,11197,12986,4770,2870,2938,1790,4136,12445,9620,2671,7271,8094,10789,11346,589,1089,439,5326,9800,11804,3535,12895,2526,11885,12059,3414,8605,3782,8574,11895,6850,1300,12102,8621,12779,4764,9556,1825,10061,2581,7420,12259,12386,747,8140,11685,9912,9688,11508,3013,4197,2502,2983,12634,10399,2715,8438,2562,5182,11742,2802,7138,8951,2950,4696,11864,2966,8868,720,2373,3248,10867,11409,12310,9742,3122,3722,1098,852,12467,2151,4719,11127,3525,9564,586,2253,2176,2984,12427,12644,10402,2153,2878,530,2400,5882,1105,10823,11375,4236,5994,10717,9652,10409,11097,5227,12611,9078,10677,95,3639,12864,2064,9609,11750,4970,1866,9111,9376,4773,11678,5148,11677,9455,830,440,12659,3135,3723,2474,12955,4948,4256,10253,3012,160,751,4629,9599,12854,3540,12241,10463,3591,4827,10595,10091,9734,10849,11396,10450,11117,796,8976,5995,840,29,2678,12161,19,1502,11728,9087,11781,9199,9852,8201,13023,9966,5996,6192,7470,3679,10580,11196,10119,870,3455,10418,390,10813,11366,12887,843,1927,12278,1303,6456,7758,9156,3251,6305,7590,9892,11645,10915,11448,6303,2383,1707,756,888,246,2988,1676,178,9642,975,8386,9487,9151,468,8000,11886,10629,11224,9803,5412,10645,11235,11758,7559,3916,10854,11398,6629,7949,6248,7530,9320,9064,8677,8781,69,8077,230,1915,1498,4268,494,12584,12337,857,1505,4952,3697,2960,10377,2684,2368,4815,3042,12615,10358,11077,10699,11275,10146,10482,11714,8912,13071,2643,5019,9165,8334,5634,7077,12108,4706,9034,9013,10548,11176,2805,8230,2819,9798,3109,2365,13054,2608,12544,12119,2733,2402,12261,6804,3432,8301,6004,2845,7095,11698,1541,12076,3762,10038,288,10086,4036,2020,3646,3709,3017,4958,4882,5180,3360,2850,4904,829,2639,3972,12219,12233,11793,9987,11642,8974,893,6003,4258,9153,1256,5214,1979,9605,11609,5851,10616,8349,11837,3408,8564,6078,7348,7696,9008,708,4867,12197,4428,12314,3415,11940,2349,3059,12620,1723,1032,12747,10024,2181,10762,11324,12568,6098,7368,6933,2941,9135,9874,5071,2695,2863,12464,9962,12627,11757,9786,11635,10342,11066,12496,12086,1926,9021,3117,10988,11513,4959,11893,9876,4583,12960,12255,292,5221,2537,12642,3099,11976,12748,10196,4903,3516,5153,12149,9863,4452,6144,3725,12262,1088,2626,5340,12388,9849,9045,8934,5614,2200,13093,12270,12632,9561,2336,10927,11458,8877,3790,9828,3119,12185,12777,10382,11084,4517,5261,4929,8632,5569,331,4252,2082,2666,3627,4864,10815,11368,3014,4887,5895,6513,7819,12884,3713,2618,2247,5077,3023,9171,10256,10694,9341,12794,10448,6745,913,3692,4371,8225,10683,11263,5830,12057,3479,718,10367,6783,6499,7806,1209,12925,9883,12731,6294,7581,12244,2599,2422,9024,2278,272,12718,9211,12868,4440,3771,2563,9758,205,11694,9726,9991,5130,41,8733,116,11605,5646,9906,2374,2672,3741,12592,11842,6014,7274,2939,12578,9601,2616,12069,3763,12008,2252,5060,6227,9126,4340,48,10043,10245,11639,3090,2409,10827,11379,7508,12332,12519,10395,11091,9418,12537,11753,2465,5260,12125,5246,1307,1308,8327,8134,10386,11087,5002,5255,10911,11444,10991,11514,12749,3490,6645,7965,12470,871,11580,11644,10713,11285,354,9765,312,2734,4926,6146,5630,4527,927,9675,3050,3548,3750,6287,7572,9952,1704,9108,5264,3891,2090,6679,5636,8540,8683,4848,13076,601,800,6282,7567,12896,2893,11104,520,4137,4677,5778,6911,4800,4809,8291,12788,12362,469,12838,154,7018,4538,12890,3296,809,141,5121,3391,12763,5423,4936,12625,2572,727,9288,9725,70,10176,10369,11080,5738,2369,8193,1749,3839,5679,10056,3123,211,12723,2375,9813,12682,11884,2462,32,8425,12399,3444,1086,12304,8606,952,12016,5515,10544,11173,1579,4248,9472,9336,5916,5514,11826,12540,12187,3922,12547,10555,11182,2185,12298,3337,5269,3294,2781,482,4785,10943,11474,1750,13020,8604,9328,8190,10554,9250,4920,1503,4098,12013,9415,12581,2591,3232,11962,1884,5305,10825,11377,10103,12621,10082,5017,5674,3193,12768,10608,11210,5749,4557,9307,9978,4666,2587,6737,6944,2840,5191,8154,3472,5037,11622,6006,7265,3499,5543,3436,5718,4994,9310,8727,8838,34,10259,3705,10650,11240,12727,2237,1526,10532,12018,9653,8254,2195,9719,10424,12376,12690,9739,6914,11034,11556,2193,11082,694,5617,12160,12452,3657,10228,3404,2760,3047,7252,4413,5547,2085,3146,10185,1295,12158,1941,8920,3775,3325,6147,7423,3100,2415,6613,7932,10392,11089,3946,5304,9656,3148,9717,10093,11897,9283,12610,2025,2596,3912,5036,4143,11691,10748,11309,9200,9884,8001,4361,4537,9371,2826,3269,3129,10116,3929,626,974,9470,9521,8985,12223,8148,10133,12469,4455,10593,11204,1748,4964,5905,11619,5330,3261,4160,10281,12366,5240,5149,5163,6725,5831,7800,12848,8437,5128,9549,9744,4229,8844,11690,5607,6831,11915,8143,12574,6860,1305,5009,10969,11498,10829,11381,9754,2154,1894,8493,2968,4172,171,9072,11927,4165,12487,8508,276,8352,12287,6464,7766,10973,10509,11623,4639,10878,11418,11662,3622,16,10846,11394,11715,1148,350,167,6762,3908,7589,1414,3924,10159,839,5290,12729,12456,553,801,8719,8830,8099,11779,4470,12497,10070,12899,3676,6458,7760,2221,10874,11414,10141,11932,9762,5475,4842,4239,12247,3491,5,1177,10976,661,10338,11064,1886,4915,12055,11019,11539,10810,11364,11584,2209,10495,11144,5695,7031,7328,6210,7489,12290,3785,1930,12043,12246,6870,8671,8775,5172,10758,11319,9897,4234,4709,12184,6717,3440,5549,300,9074,9834,8923,914,12630,1393,4166,5500,1380,6040,7305,245,2277,6392,7686,10084,12973,4467,8495,11011,11531,1958,3067,6231,7512,6221,7501,4045,1845,12783,4090,6326,7613,2796,5194,12605,10139,5119,8924,5360,8787,9338,11803,5612,5244,11607,8189,6947,7152,3621,5476,5196,10487,4783,9462,8900,8669,8773,10856,11400,10117,5575,6165,7440,663,8028,2042,6308,7592,5748,10964,11494,2140,11771,973,12063,4919,2824,9093,11912,10304,8885,11827,4582,9237,10657,11246,4047,10351,11072,6172,7448,11936,5806,1582,5491,1262,1741,4541,9695,6327,7614,1797,4749,5254,9878,5181,10681,11261,4992,10777,11336,1598,2364,484,538,5425,10985,4818,2830,5272,2555,2442,3044,3996,1758,4932,9298,9846,8373,9185,4171,3185,12695,10112,3349,9862,11825,11987,6966,4188,4793,76,12361,5167,10171,9877,11967,2658,2698,12529,5802,9337,5915,9345,9554,5521,7097,1211,10109,3120,8199,5550,9274,10971,11500,10745,11306,10729,11295,4335,1859,10642,10327,12335,4853,233,3985,3183,5818,2182,11722,9457,6275,7561,5745,6122,7394,9927,10797,11353,5845,8399,11010,11530,9412,10068,12786,7103,5025,87,5329,2506,3069,1270,12609,3753,3558,6673,12756,5195,12863,10649,11239,4678,5201,10002,6368,7656,12208,1606,979,12513,7422,9456,2394,5544,13102,8360,1636,10783,3295,2345,6444,7745,12021,620,4126,6709,6866,6338,7625,11992,8721,8832,945,4468,11959,39,1993,2183,12066,11914,10404,3877,2469,8377,10928,11459,11590,2050,10547,12217,4120,2718,590,10108,12252,6786,6811,2089,1588,10461,11126,4635,8136,12284,6086,7356,730,8239,3470,5833,8886,6379,1199,3380,3052,12494,1283,4469,12181,308,10847,5187,10019,9812,12020,6643,115,8955,3318,4735,6774,5791,6602,7921,12545,7669,11693,5734,10454,11121,10151,1580,9058,9221,5876,799,1975,2575,4106,9528,1664,12775,7278,559,4619,10025,8259,2729,11600,9540,1138,10965,11495,192,4370,2120,9355,5193,10143,10473,11132,7846,4249,17,2239,4129,4367,12535,5029,12479,7083,1695,2203,4833,2198,2092,10218,8588,12556,6605,7923,1364,5959,9965,8933,8987,2709,2649,2697,5765,5000,3707,5987,8061,5689,4509,11838,8467,2763,2114,2213,654,8890,588,4972,2593,8272,9071,1516,8473,873,12639,3169,10144,249,10853,995,1168,2551,5481,9842,12665,2565,2225,10938,11469,9477,9821,1504,6775,648,12198,3938,5919,4802,5935,10262,8297,12238,3682,5498,6519,7826,11038,11560,9301,1616,3980,4498,3006,1337,180,983,10428,11106,1730,12524,5349,5362,9346,5528,1352,1980,8059,11598,11823,11908,8056,148,541,3803,12616,10426,11105,8596,2274,882,5113,13085,12696,4096,3211,11899,4485,9941,3214,12697,5863,10026,11051,11570,2862,5111,9186,1332,1293,4107,10759,11320,851,3701,1017,3016,12190,4206,1005,12214,4263,2226,9815,4317,10208,9598,9926,3624,4807,5885,11918,3085,5004,4424,1920,5248,10640,11232,5641,9386,8541,3078,3968,9423,8500,4780,8314,2074,10746,11307,5043,10095,4782,9664,1335,9107,10347,4303,12580,5847,2737,9606,2634,4150,8350,12526,937,8498,12365,11052,11571,4883,8204,1061,2517,5525,11988,8278,1746,5958,4507,8228,762,1890,3094,3392,2352,6450,5131,4033,11977,5375,4262,8210,8046,984,9421,6653,7974,5189,542,9610,10213,10807,11361,8382,1055,2473,2482,9553,1150,6768,6739,10778,10895,8353,9627,2303,2128,10892,11431,1568,10995,316,1844,1035,5363,3811,6307,11879,742,5152,427,8279,6129,7402,4495,2439,10546,11175,9848,5963,8393,10184,1123,11944,12396,10852,11397,4139,6984,11761,5433,12300,10269,13070,5484,10961,11491,111,8208,10326,6070,7339,6354,7641,8049,696,2027,4360,4255,6398,7693,12542,79,4597,2326,477,3638,2057,2710,12862,8860,8403,838,5337,9988,10131,12674,4379,3772,1190,1325,5347,5757,1124,11650,8159,8660,8763,3749,5627,11643,1112,81,9101,10585,11201,3485,4641,711,7226,6965,6100,7371,1525,2694,2728,320,5626,1685,4427,2446]
bad_iteration_list = []
elif dataset_name == "bimodal_balanced_letras":
csv_normal = "bimodal_balanced_features_good_features.csv"
csv_annots = "bimodal_balanced_annotations.csv"
top_features = [107302,107314,107307,107304,107431,107355,107309,107354,107107,107432,107433,107299,107310,107298,107318,107357,107353,107108,107110,107362,107335,45514,107311,34668,107113,107396,107105,107319,107428,107385,107316,103780,107317,107356,34670,107322,107412,105328,107109,107430,107358,104401,107373,45519,107420,107214,107429,107422,107363,107111,107343,107252,107321,107112,107407,107425,107336,107301,107222,107320,100812,35538,107119,107118,107290,107370,107313,94303,107371,94323,107333,107345,34669,107303,107379,107223,107384,107404,34749,107339,107427,107144,35593,97138,107409,107253,107342,107411,107415,107150,107403,107140,107291,107308,45529,107329,107338,107114,107249,107408,107325,107413,107159,107175,107297,107120,107124,107142,105330,35514,106146,106191,94305,107167,34689,45516,107334,45528,107292,107324,35552,45515,107312,105348,35533,107351,107152,45527,107375,107332,34657,107405,107346,107288,107393,107364,107160,107305,107125,42849,107201,100187,107337,107221,107327,107374,107414,34675,100280,34681,34659,107341,35601,107262,107177,107179,34676,34835,107381,96317,107198,95195,107209,96681,107386,107328,107380,96368,107127,94304,105329,107168,42259,107238,107344,107260,107207,107416,107315,35512,35504,107148,107331,42309,42272,34782,107349,107361,107173,107139,107263,45530,105399,107347,105332,107115,42444,107187,34760,106266,107248,34679,107196,107340,107293,107199,105376,90587,45535,107134,35665,107284,45518,106018,96319,107406,35519,34656,107116,34759,45524,107360,35583,105499,96494,107283,105443,35503,105532,34694,107164,35528,35498,35523,35615,35513,36302,35611,105505,107323,107193,42252,94477,42422,35530,94510,34934,34855,107289,35561,107306,105410,105359,45521,107348,35586,45581,107296,34660,35541,107158,45517,42301,34654,35501,107276,107382,107174,94352,34824,107128,107224,106657,35522,106375,35564,34665,107141,35527,107227,107216,35506,42473,107395,107368,94387,35606,42791,45526,34771,107367,96399,89711,35857,107126,107123,107350,35699,107147,43060,94483,105518,107155,34678,107233,94307,34717,36287,35013,45531,105689,105379,35573,34742,35627,35532,107394,35609,89741,107359,107172,107143,34684,96367,107285,103779,96375,107245,106228,107166,107184,42281,107269,107352,35682,107157,107300,35626,34942,105350,94443,107247,105326,94325,94663,94375,105397,45571,107268,107369,35868,34757,105417,107208,34767,42387,107326,94496,42404,94671,107275,107165,105464,42426,94335,96674,35642,105358,103986,35525,107231,103878,105339,106937,35613,89869,107131,96488,89709,106200,45534,107244,106552,106531,107402,35715,104430,107410,35603,100526,103872,100413,94362,105486,100210,35517,35560,94301,107259,42773,42407,35562,106110,42401,34762,103789,42464,45522,45536,42248,43266,35652,106317,35744,35789,107434,103978,106285,42480,105644,35670,89943,107212,42271,107383,105402,35500,107200,107185,34716,35016,107286,107117,43034,34770,90628,96318,35842,94421,103909,89739,42253,89935,105346,107330,107401,107279,35733,107294,106697,34708,35716,107237,43039,73717,42406,106173,107138,107191,107261,106114,107171,106515,96528,89740,36729,35570,106100,106006,35509,35543,94314,35779,94355,89721,35563,94497,105382,106251,103799,37151,96741,89883,36942,36181,106097,35860,35648,35574,89690,96507,42588,35757,106258,105338,100977,105377,107239,42277,42280,106534,106521,106085,105529,105666,89693,107378,89687,107176,107232,96315,105714,36330,35599,104198,34692,96508,106592,35024,105386,645,42508,61902,35502,107423,96453,42519,106328,107149,105344,34864,45544,36671,45543,106048,35875,35559,105682,107020,35571,106077,94333,34998,90054,107273,107392,34846,42645,105345,107192,61292,94319,35786,45556,35675,35646,42660,35511,34667,89691,185,35677,96791,39585,34680,96657,35572,103853,35520,105540,90111,100609,35621,100261,36468,104002,35616,105916,100293,106365,38212,94699,35679,89689,107376,107133,37232,34945,35778,96448,100189,105352,34686,96386,107073,96908,57902,34863,35567,94466,96337,35605,105503,875,100835,103871,107218,42549,323,106281,42521,89960,43003,34685,89831,42415,35618,107272,105613,107183,34959,106148,96312,94557,95236,94320,42381,42494,103834,107278,34826,105822,96355,35610,105577,35843,106342,36412,104450,35614,105319,35803,89704,106012,107215,96566,107181,34775,44081,106421,36710,34737,34793,100300,96536,96513,35007,44366,105507,34999,89761,106065,107186,57283,34683,35878,106007,73927,106135,105331,106580,35804,89882,94485,43302,94735,89936,107397,42830,35851,37634,36420,106894,35566,106336,105820,36682,42484,42382,34808,34802,35529,74933,89888,35764,105745,94358,45525,44470,105630,96509,42776,43211,105506,89859,107417,104509,35515,106729,89683,36973,106474,35540,96379,107197,105519,94378,105407,106196,35653,34947,106502,37239,34728,96472,34798,35718,35690,106330,101178,105492,94145,97858,94353,42402,36911,36262,34758,34801,42247,100445,563,103851,42386,89833,94394,45860,106816,106282,103847,74318,43347,96473,36498,89863,37965,97310,106160,34546,34748,1060,42249,105616,42493,34811,94438,42727,338,100373,34673,107135,96348,2972,104424,106769,34831,34838,37735,105467,107258,36221,42447,42661,94471,36297,42289,107426,43749,94306,42702,34804,36915,94823,36497,107076,94593,42423,106238,43608,106551,45725,100219,96336,36837,100353,35791,107240,104085,35845,42287,38258,36053,103989,105411,97164,89865,105327,37270,286,42306,97527,90424,42428,101535,96514,89849,94502,104053,100533,105267,94484,107280,43414,34765,35029,57937,96332,105661,89940,90126,94447,35595,241,96452,46245,42716,34712,36399,44012,94871,42302,97348,96814,107153,105475,101931,36904,562,96446,43182,89706,107419,43132,105665,96511,34769,96475,107243,89884,35186,94454,102744,36928,36681,34970,43530,94342,94327,95399,37016,383,45676,105787,105342,89990,35499,35827,94294,107163,105392,96812,100610,104115,1612,42417,57953,37202,103808,101210,34715,105385,95227,89764,35001,105520,42408,43048,43049,107121,96602,35707,96316,100674,36152,89850,36324,106993,106422,1401,96521,36930,94858,96365,36416,42460,36826,89783,100399,107228,94644,74216,100095,42952,34696,34935,106771,261,35058,42383,88764,35765,36494,34703,105573,105360,42518,43407,96339,44643,89795,95446,103833,89729,100921,100038,42991,42981,42735,94336,42498,57841,105430,36526,89773,3798,105557,105468,42532,101891,37967,105459,106093,94436,44125,36871,89824,94384,37176,34848,100464,106453,106932,107129,95656,107424,35904,37120,96544,106378,105343,46101,43426,37475,104186,1219,106210,42450,43687,94321,100521,35602,105457,96601,106618,106133,35833,44442,94710,96130,105483,44116,94298,94313,96497,90316,35676,45873,96621,96366,42391,94924,42037,42774,34975,96857,42659,42941,97004,35819,43807,106847,34671,36582,96560,1339,96343,94949,103943,464,17664,35553,90341,91165,96388,95361,96482,103890,35684,34751,36267,94507,96520,89738,45532,106387,90130,94367,74417,107372,57744,43361,106066,106349,106848,106471,94363,35579,106305,96498,106831,36285,106190,94302,94518,37898,44686,45777,97494,106542,105436,106121,34718,36271,34871,106631,107266,103813,107190,106411,35760,106302,1904,105536,35518,94530,35531,105363,97253,35588,43461,34983,34872,42077,34766,37090,36900,35828,95609,43808,34744,42368,107188,89684,105795,107257,97243,89722,35537,35943,37572,42439,42339,105437,96539,34655,43290,103963,96416,106020,34786,36308,89872,43203,42416,94059,36354,94569,43001,36576,97293,36449,43702,37734,36609,91006,34857,189,35100,89945,35604,89807,43108,1638,45680,104092,35569,34914,94606,597,105420,35065,105755,100761,1345,37216,94537,1408,43172,42265,106169,94463,95381,89964,35542,569,90226,107156,96807,15726,36246,104460,34593,36016,36861,37171,101055,42890,95101,105494,94491,34832,45542,89713,106299,45821,104550,107390,44871,35701,42329,96327,100241,96737,89922,94620,96894,105625,101275,36012,88783,34719,105546,105899,103917,94014,89808,37110,190,105504,42313,107087,97367,106366,105391,96529,96444,34735,37316,104155,106962,36273,43891,42392,106141,34750,96822,107250,42790,97799,36788,42919,106122,96206,37397,106685,96658,97227,34756,43342,121,42831,35335,1452,35630,105524,107377,94880,888,43047,95795,42700,89680,34129,105547,36034,1471,35191,36881,94354,107130,35865,106070,57622,106379,42617,97723,36164,105865,91053,94833,106235,43572,104761,107241,96451,45878,35655,89876,96699,105356,97976,42451,103828,105333,103896,16092,61413,94339,61818,100466,104161,106014,101601,1821,42405,104566,34917,35688,106916,122,91071,1850,36286,45891,96341,96618,94464,97399,35692,90619,36373,94821,35581,44246,89920,36448,35373,95677,96624,90266,35761,38,95199,44705,35637,94737,36873,101640,104123,36927,107206,34840,107082,44554,107002,37693,105366,100308,104743,96455,36525,34907,96421,96779,34858,42609,90201,43020,45608,103906,36320,57493,104267,36607,42282,106260,106243,94412,106511,37017,45655,94863,96643,44651,42946,34705,43256,105670,94498,90073,43420,34725,35125,36615,42658,1694,107024,97516,57273,16093,36883,96571,89714,89873,34733,94435,34739,106103,42860,35035,18173,42779,105554,57651,1966,106272,339,94368,101254,900,45806,45352,35772,94779,36151,42472,45944,103855,89929,106127,36503,321,96584,43262,89827,96349,104248,33,96934,94709,35756,91432,489,97414,37553,45394,43329,61800,42783,106557,34785,46251,1403,94446,103916,105456,37039,105481,106561,89946,35751,105706,3651,44047,43453,90212,106700,42782,35516,107030,35629,57614,73920,106113,106800,96280,43373,89846,43133,90170,60444,17454,35708,1241,46884,62007,73707,42298,34777,45,35792,106262,36862,34099,554,97615,35152,36492,44273,95638,96020,17433,34984,97847,36920,36288,35683,106353,42889,36145,36219,97383,94482,43124,105510,100823,43032,90254,94513,106428,105696,106575,36507,43730,42474,34889,34697,95523,34772,43503,1771,96518,56963,37679,106104,37694,107032,88946,35625,43593,100349,45848,97182,100215,37415,104392,36423,42607,35659,42419,94330,37028,94526,106062,46894,570,104546,585,42996,44480,36849,35546,106708,96406,34815,42269,60435,96119,36331,96450,37085,45799,96948,43732,37006,43590,46,96376,96380,105378,43927,42264,43772,43531,34720,37306,105576,89752,94328,42270,89952,97628,37723,34972,37015,96385,96340,34616,91705,37346,34248,691,59830,42459,44634,94554,95999,106861,35305,600,89923,96582,89357,35873,96409,107219,106005,43949,44729,34859,36321,30503,96362,37497,170,43428,107256,94746,36190,42646,89826,42362,95110,107042,34989,94488,36432,104402,34674,43061,37066,37361,36233,95534,34672,34960,103997,34816,97220,35580,45100,42966,36191,34143,16057,34688,105768,34176,42283,96485,36887,104263,96883,105572,36960,106076,37043,100206,105799,106393,74981,90262,100220,37072,35021,34913,95929,96740,89792,90346,45099,861,90129,54588,34687,42102,1681,89999,45291,42427,89842,95271,94410,42945,45839,555,12064,96944,104987,107251,42914,35032,34921,42908,42612,96800,107211,13342,1629,12940,104389,37292,43046,103300,43312,36608,61520,35657,106212,36193,57396,100287,172,34247,45908,86738,43229,42352,34920,43849,100370,96029,42268,36703,54851,104064,97382,103807,36842,42307,43526,36263,96562,88626,42496,550,34839,89750,105471,37661,43122,36739,104060,105355,43603,42492,37490,104538,36174,96391,36367,106540,45396,103977,105810,100186,103846,43146,94753,94544,38002,36481,322,94318,89862,630,37845,34790,42638,104095,106112,89822,90321,519,96678,104122,96213,1037,34761,105996,426,250,42959,1722,42865,45265,94398,36143,36142,43533,35589,43685,35019,104345,36132,101031,251,100988,45638,37205,105455,105752,37140,90102,35673,105762,1211,107016,34434,96311,1556,73946,101759,89852,37062,37813,97643,89799,97040,1029,100797,43633,74585,62690,37339,96493,34709,36491,44642,105747,57487,55917,74759,103898,42901,12518,641,103329,94407,13485,43635,42567,55128,55914,55464,101008,42761,42742,94835,45520,4532,57773,44562,55911,94795,89445,36421,42711,2793,94413,70849,34677,88970,44882,97904,104534,34874,62001,151,35773,106768,35863,100295,35691,34663,104014,42571,73780,17332,94361,42694,264,285,43595,36303,1509,242,36587,2672,88916,43051,97205,105698,35377,42403,2671,55200,105390,1455,88921,90128,100217,45895,45537,95106,12584,13107,62011,36364,35536,96642,36943,96543,90335,95865,105432,71127,106002,42859,173,42393,54340,90546,37620,105435,42461,91758,45168,44128,36341,2083,73938,107151,37588,96546,36054,36591,106340,105979,96071,37727,35859,36637,34730,43161,2744,44034,94641,104859,101175,47142,37345,107015,91531,36955,105012,70758,106276,95180,42284,105656,106838,43671,42573,31064,70329,37587,13770,42772,34948,34867,95061,89766,43447,74302,61392,42511,37597,43512,58946,106083,45533,42572,105953,96802,106324,105253,90243,95834,106016,35927,43467,43131,90222,91126,35814,46980,104860,90323,89840,42752,36518,89694,37493,37295,37827,96816,106394,103857,37586,31778,37595,105586,90956,35849,106028,57626,106372,96645,42310,982,43205,74151,42327,36730,100199,89771,106744,94357,70333,100628,106668,62952,103884,89899,105113,42377,35015,97524,105673,42699,95869,42475,35372,36487,42975,1965,31846,31947,105421,71421,70238,35654,89949,106572,96576,106704,35702,45780,61282,42979,59180,35228,43546,34900,37034,89828,43027,36401,37370,89784,36254,71,43008,1921,94731,42799,103956,89879,42344,37655,96620,43762,100594,36365,94997,95723,106094,42575,35028,1059,36661,35084,38743,44589,89913,106257,45573,35925,43167,1721,13277,43291,100597,2124,35995,31488,105571,97059,90043,107387,1956,16341,31102,30821,31494,42801,2917,36017,71795,226,43258,43829,94852,96900,106015,96492,88540,1299,103794,37143,90205,100511,36377,106071,45660,45599,100279,37319,43500,106001,106003,30013,107274,33054,88617,32271,104685,90018,105085,63623,45898,434,106475,2046,42850,42827,95635,36189,43710,35174,71775,96926,43177,37044,94388,12969,37194,90795,35212,42993,58654,32188,44937,73835,95252,94602,100259,105724,37428,106842,37639,45947,36476,646,90034,106468,37380,100281,106219,42322,626,106898,60122,95709,36093,36429,42517,45737,100306,29228,96377,105792,96320,236,520,43184,35638,36387,44846,42552,101,95132,1734,631,106607,94577,105567,94816,36580,100496,106099,32723,42323,104700,34944,48349,34930,37566,74729,104042,37091,16583,33393,95324,44098,97346,37164,100327,45337,94656,32564,96751,57755,104886,106158,27324,104035,46063,45181,101423,35820,105531,106539,36547,106370,37045,60576,106783,553,61631,47544,36466,96297,45300,107178,748,104532,33778,57272,96517,36740,74197,42449,90019,33754,106374,35855,10608,94640,43393,36177,1791,96445,42900,89886,1822,340,35387,47764,96402,10298,32651,95797,106596,104421,36024,89903,31929,88603,106588,477,105840,106640,45789,43502,73859,17331,105872,42340,44992,32544,105713,43354,15854,11635,37343,35910,2635,45685,2869,36919,106025,106825,90083,43412,37933,36133,45665,42530,43947,3963,95220,103422,11840,106363,36186,11636,106457,1551,106863,91737,37352,45671,44993,35928,35805,96909,106661,36641,57570,74073,46369,43563,43331,106968,95924,37690,42375,101155,105488,3806,46636,45010,43681,43280,36261,96818,35590,106688,44274,42642,35067,105387,106651,104719,38396,104840,1849,106177,1188,100678,45657,104418,100622,91574,36361,97322,106391,36274,10488,385,105434,42520,35323,37165,43735,94659,104130,37213,104107,100292,37253,36534,106368,106296,89857,46034,37258,101030,6,90870,100392,10707,34155,106314,883,106259,106056,35165,11884,36565,96924,1596,106904,11859,96648,35286,36417,42445,106054,42490,107202,45793,103132,107047,96962,107203,10740,34870,89829,17064,31016,90716,36745,106815,43056,1213,37638,100336,100807,103822,47245,1470,46646,36266,3792,36138,101588,1030,42672,96993,34916,101471,90153,35085,95631,45169,106042,36426,106626,43718,1242,42947,36838,36654,35227,42614,103874,89770,94428,43460,103875,94565,94653,96430,96585,42335,36452,61811,42414,35703,57475,36551,36353,30735,105341,1259,37197,37057,105321,37296,60629,35378,105595,42802,43201,35780,45702,90044,90605,89982,100974,36224,3763,36205,61584,103950,63366,42341,97930,94115,43907,94678,74075,75443,44955,90591,97371,8193,90059,35660,61881,36823,36493,106333,37214,100627,45647,34938,89881,105478,105433,95374,102046,43385,106047,104126,35711,107017,37358,44830,101673,34783,75098,17563,44836,43313,244,75177,44504,42495,90794,105997,2450,36976,97153,35901,42580,97010,90389,1910,35328,1696,97094,42273,91754,42300,58210,105831,61575,97400,42374,103372,94535,43750,15816,94331,96414,42764,96575,44287,45959,105854,94468,103803,37691,42465,43222,16678,42613,106879,43662,104086,102739,97152,101223,42829,105906,105788,45592,94627,42684,30218,74227,1359,100368,105334,34961,57395,36185,96323,45883,90062,34936,89066,89688,105726,36386,45733,15871,106221,1035,6923,42254,45038,75090,15695,89911,105589,94915,36344,1167,40724,97084,36646,46886,105513,36825,42457,42311,37325,91682,101027,1007,104787,94461,89825,37278,58221,58811,33769,103899,63216,60877,36709,35858,3212,90563,105582,102003,91034,100246,102279,90487,25084,94317,96436,44199,94480,34695,89868,37051,37570,73804,36791,36397,42466,89381,1577,89380,647,37248,42577,42443,91151,106811,90415,97830,74725,45113,89978,38898,104219,18737,95762,37984,59997,104373,2286,103960,97397,91040,45845,95081,41081,42781,102342,102341,103424,107137,43658,262,57666,90122,37096,174,104597,104734,44517,94541,42957,94561,106860,105897,805,107013,490,58456,104444,2378,45922,316,20832,104620,34809,107389,106462,37007,75595,44898,95032,100920,680,1818,89832,44003,61618,46612,96476,37783,36312,36372,37606,106680,105007,97034,94373,105933,96891,188,34844,5000,36835,106434,57657,74583,43255,34813,43491,106488,37602,45290,105196,92508,37092,36301,96764,54617,105772,43473,43099,94536,94701,107014,220,91614,44004,36194,168,1759,104144,36362,95789,90333,95255,981,105812,44113,35968,42892,95065,105815,36304,75341,35672,90854,98124,100484,43248,96968,94409,34941,106043,105723,43206,102344,102343,102345,94567,36204,90551,44001,1598,105609,36801,96334,96606,73932,74713,36011,90100,42440,415,103823,94495,96565,89065,33120,104020,105847,97183,106892,62400,104755,105942,34829,97654,278,96742,100630,34285,42424,104753,34664,43776,42943,46149,37307,22,95059,45176,205,107021,36803,96449,100685,106230,94796,16679,43495,89877,35840,43819,95753,157,73763,106414,229,89699,106623,90119,94954,96786,37515,44692,90513,840,105400,34702,43292,37621,36180,547,36613,89848,87893,106329,104344,106166,89961,107271,43053,36519,104584,35278,100289,104017,100465,90149,36988,45868,37083,37320,57334,30902,30086,43985,100461,36762,101708,104824,106829,42998,43505,35811,29572,43951,103887,5286,96208,1220,106907,91182,106762,43511,43043,105461,37047,89896,44907,62682,92092,92393,104338,105446,103302,89930,101255,101739,103990,34967,106456,336,689,105782,100275,42980,90500,94970,95740,43554,104272,92927,31455,96911,104588,94904,42597,95377,61997,97019,95223,34177,36477,89014,36339,36902,95292,42355,104595,89632,94429,90035,104026,94597,105255,35260,94534,47540]
bad_iteration_list = []
return csv_normal, csv_annots, top_features, bad_iteration_list
def load_data(dataset_name):
# carregar .csv com top 100
samples_file, csv_name, new_top, bad_iteration_list = get_information(dataset_name)
data = pd.read_csv(
# curr_path + ptd + samples_file,
samples_file,
sep=',', header=0)
print(data.shape)
print(samples_file)
print(csv_name)
data.sort_values(by=['IdSong'])
#X = data.iloc[:, 1:101] # cabeçalho, 1a coluna -> nome, label no fim
#print(len(data))
#data = data.dropna(axis=1, how='any') # we dont need to do thsi when we arleady have the top 100 ids
#size_data = data.shape[1]
size_data_1 = len(data)
#data = data.dropna(axis=1, how='any')
#data = data.fillna(value=0)
print(data.shape)
#new_top = [1152, 525, 1765, 1773, 1166, 2073, 1151, 507, 361, 927, 1768, 2109, 2123, 2110, 2124, 10, 945, 1441, 1497, 13, 1475, 529, 21, 2074, 1089, 133, 1065, 909, 1077, 1071, 1550, 1783, 407, 1786, 404, 1537, 1489, 1778, 1775, 772, 2075, 946, 1455, 2103, 136, 1771, 1059, 406, 526, 2079, 1574, 1154, 923, 917, 753, 1053, 2086, 2104, 109, 246, 911, 1779, 1481, 2092, 1090, 1194, 252, 1782, 121, 776, 2093, 1766, 2101, 770, 1605, 2084, 1539, 357, 778, 891, 1469, 2631, 1857, 9, 2105, 897, 497, 2125, 2087, 958, 247, 2108, 2333, 1485, 1350, 1078, 469, 1606, 1594, 893]
print("Feature list is: ")
print(new_top)
#new_top = [i for i in range(1,541)]
X = data.iloc[:,new_top]
print("Data length: %d with %d features" % (size_data_1, len(X.columns)))
#print(X)
#exit(-1)
target = pd.read_csv(
# curr_path + ptd + csv_name,
csv_name,
sep=',', header=0)
target.sort_values(by=['Song'])
Y = target.iloc[:, 1]
# normalizar dataset
X = preprocessing.scale(X.to_numpy())
# now we want to save X to a file, where the header is the Y
data_columns = data.columns
columns = []
for i in new_top:
columns.append(data_columns[i])
# save X
pd.DataFrame(X).to_csv("X_new.csv", header=columns, index=None)
return X, Y
def avg(lst):
return sum(lst) / len(lst)
def map_targets(Y):
# converter para inteiros
mapping = {}
classes = ['Q1', 'Q2', 'Q3', 'Q4']
for x in range(len(classes)):
mapping[classes[x]] = x
Y_hot_encoded = [mapping[temp] for temp in Y]
# one hot enconding
Y_hot_encoded = np_utils.to_categorical(Y_hot_encoded)
return Y_hot_encoded
##########################
## Find Hyperparameters ##
##########################
def process_one_fold(train_index, test_index, fold, total_folds, X, y, model, verbose):
if verbose > 0:
print(f"Running fold {fold}/{total_folds}")
X_train, X_test = X[train_index], X[test_index]
y_train, y_test = y[train_index], y[test_index]
try:
model.fit(X_train, y_train) # Assuming model.fit() is thread-safe
except Exception as e:
print(f"Exception occurred while fitting model on fold {fold}: {e}")
return None
y_pred = model.predict(X_test)
score = accuracy_score(y_test, y_pred)
return score
def custom_cross_val_score_new(model, X, y, cv, scoring='accuracy', verbose=1, timeout=10, n_jobs=1):
scores = []
fold = 0
total_folds = cv.get_n_splits() * cv.n_repeats
futures = []
with ProcessPoolExecutor(max_workers=n_jobs) as executor:
for train_index, test_index in cv.split(X, y):
fold += 1
future = executor.submit(process_one_fold, train_index, test_index, fold, total_folds, X, y, model, verbose)
futures.append(future)
for future in as_completed(futures):
try:
score = future.result(timeout=timeout)
if score is not None:
scores.append(score)
except concurrent.futures.TimeoutError:
print(f"A fold took too long to complete and was skipped.")
except Exception as e:
print(f"An unexpected error occurred: {e}")
#print(np.array(scores))
return np.array(scores)
def find_optimal_hyperparameters(X, y, dataset_name, file_name=""):
# define the space of hyperparameters to search
search_space = list()
search_space.append(Real(1e-6, 100.0, 'log-uniform', name='C'))
search_space.append(Categorical(['linear', 'poly', 'rbf', 'sigmoid'], name='kernel'))
search_space.append(Integer(1, 5, name='degree'))
search_space.append(Real(1e-6, 100.0, 'log-uniform', name='gamma'))
#print(search_space)
#exit
iteration = 0
#if file_name != ":
#file_write = open(file_name, "w")
# define the function used to evaluate a given configuration
@use_named_args(search_space)
def evaluate_model(**params):
# configure the model with specific hyperparameters
model = SVC()
model.set_params(**params)
current_minimum = 1.0
nonlocal iteration, dataset_name
iteration += 1
# define test harness
cv = RepeatedStratifiedKFold(n_splits=10, n_repeats=10, random_state=1)
print_with_time(f"Starting iteration {iteration}\n", flush=True)
#write_to_file_with_time(f"Starting iteration {iteration}\n", file_write)
#file_write.flush()
# for relief we need to skip iteration 13. it bugs out
_, _, _, bad_iteration_list = get_information(dataset_name)
#print_with_time(bad_iteration_list)
if iteration in bad_iteration_list:
print_with_time(f"Iteration {iteration}, skiping\n", flush=True)
#write_to_file_with_time(f"Iteration {iteration}, skiping\n", file_write)
#file_write.flush()
return 1
# n_jobs has to be 1, or this never completes
timeout_for_iteration = 120 # 60 seconds for the entire iteration
def run_custom_cross_val_score(q):
# Make sure result is accessible outside this function
res = custom_cross_val_score_new(model, X, y, cv=cv, timeout=10, verbose=0, n_jobs=10)
q.put(res) # Put result in queue
result_queue = Queue()
# Start the process
process = Process(target=run_custom_cross_val_score, args=(result_queue,))
process.start()
# Wait for the thread to finish or timeout
process.join(timeout_for_iteration)
if process.is_alive():
print_with_time(f"Iteration {iteration} timed out\n", flush=True)
#write_to_file_with_time(f"Iteration {iteration} timed out\n", file_write)
#file_write.flush()
# make it so that result is an np.array with 1 elemnt of value 1
result = np.array([])
process.terminate() # Optional: wait for thread to finish anyway
else:
result = result_queue.get() # Get result from queue
#print(result)
# Existing code to handle `result`
if len(result) != 0:
estimate = np.mean(result)
result = 1.0 - estimate
if result < current_minimum:
current_minimum = result
#file_write.flush()
else:
result = np.float64(1)
print_with_time(f"Ending iteration {iteration} with result: {result}\n", flush=True)
#write_to_file_with_time(f"Ending iteration {iteration} with result: {result} {1-result}\n", file_write)
#write_to_file_with_time(f"Curren minimum: {current_minimum} {1-current_minimum}\n", file_write)
#file_write.flush()
# if we time out we need a result
if not isinstance(result, np.float64):
result = np.float64(1)
# convert from a maximizing score to a minimizing score
return result
# load dataset
print_with_time(X.shape, y.shape)
#write_to_file_with_time(f"{X.shape}, {y.shape}\n", file_write)
#file_write.flush()
# Create a new version of evaluate_model with dataset_name fixed
#evaluate_model_with_dataset = partial(evaluate_model, dataset_name=dataset_name)
# perform optimization
result = gp_minimize(evaluate_model, search_space, verbose=1, random_state=1, n_jobs=20)
# summarizing finding:
print_with_time('Best Accuracy: %.3f' % (1.0 - result.fun))
print_with_time('Best Parameters: %s' % result.x)
#write_to_file_with_time(f"Best Accuracy: %.3f\n" % (1.0 - result.fun), file_write)
#write_to_file_with_time(f"Best Parameters: %s\n" % result.x, file_write)
#file_write.flush()
return result.x
#######################################
## Run SVM with found Hyperparamters ##
#######################################
# this is the function that has the old code
def run_SVM_old(X, y, Y_string, c, kernel, degree, gamma, file_write=None):
kfold = RepeatedStratifiedKFold(n_splits=10, n_repeats=10)
macro_f1_score, f1_each_all, conf_mat_global, accuracy_list = [], [], np.zeros((4, 4)), []
start_time = time.time()
for train, test in tqdm(list(kfold.split(X, Y_string))):
svc = SVC(C=c, kernel=kernel, degree=degree, gamma=gamma)
svc.fit(X[train], y[train])
ypred = svc.predict(X[test])
f1_temp = f1_score(y[test], ypred, average='weighted')
accuracy = accuracy_score(y[test], ypred)
conf_mat = confusion_matrix(y[test], ypred)
macro_f1_score.append(f1_temp)
accuracy_list.append(accuracy)
conf_mat_global += conf_mat
print_with_time(conf_mat_global)
if file_write != None:
file_write.write(str(conf_mat_global) + "\n")
# Calculate accuracy for all classes and F1-score per class
class_acc = {}
class_f1 = {}
list_to_print_f1 = []
for i in range(4):
TP = conf_mat_global[i, i]
FN = conf_mat_global[i, :].sum() - TP
FP = conf_mat_global[:, i].sum() - TP
TN = conf_mat_global.sum() - (TP + FN + FP)
class_f1[f'Q{i+1}'] = 2 * TP / (2 * TP + FN + FP)
class_acc[f'Q{i+1}'] = TP / (TP + FN)
print_with_time(f'Accuracy for Q{i+1}: {class_acc[f"Q{i+1}"]:.3f}')
if file_write != None:
file_write.write(f'Accuracy for Q{i+1}: {class_acc[f"Q{i+1}"]:.3f}\n')
list_to_print_f1.append(f'F1-score for Q{i+1}: {class_f1[f"Q{i+1}"]:.3f}')
# Calculate global accuracy and F1-score
global_acc = np.mean(accuracy_list)
global_f1 = np.mean(macro_f1_score)
std_acc = np.std(accuracy_list) # Calculate standard deviation of accuracy
sdt_f1 = np.std(macro_f1_score)
print_with_time(f'Global accuracy: {global_acc:.3f}')
if file_write != None:
file_write.write(f'Global accuracy: {global_acc:.3f}\n')
list_to_print_f1.append(f'Global F1-score: {global_f1:.3f}')
print_with_time(f'Standard deviation (accuracy): {std_acc:.3f}')
if file_write != None:
file_write.write(f'Standard deviation (accuracy): {std_acc:.3f}\n')
list_to_print_f1.append(f'Standard deviation (F1-score): {sdt_f1:.3f}')
print("-----------------------------","\n")
if file_write != None:
file_write.write("-----------------------------\n")
file_write.write("\n")
for i in list_to_print_f1:
print_with_time(i)
if file_write != None:
file_write.write(i + "\n")
end_time = time.time() - start_time
# Save metrics
with open("f1_score_svm_100_features.pickle", "wb") as file_results:
pickle.dump(macro_f1_score, file_results)
with open("conf_mat_svm_100_features.pickle", "wb") as conf_mat_results:
pickle.dump(conf_mat_global, conf_mat_results)
with open("time_svm_100_features.txt", "w") as time_file:
time_file.write('Took {} minutes to run.'.format(end_time / 60))
def run_SVM(X, y, Y_string, c, kernel, degree, gamma, file_write=None, file_name=None):
kfold = RepeatedStratifiedKFold(n_splits=10, n_repeats=10)
macro_f1_score, f1_each_all, conf_mat_global, accuracy_list, conf_matrices_percentages = [], [], np.zeros((4, 4)), [], []
start_time = time.time()
for train, test in tqdm(list(kfold.split(X, Y_string))):
svc = SVC(C=c, kernel=kernel, degree=degree, gamma=gamma)
svc.fit(X[train], y[train])
ypred = svc.predict(X[test])
f1_temp = f1_score(y[test], ypred, average='weighted')
accuracy = accuracy_score(y[test], ypred)
conf_mat = confusion_matrix(y[test], ypred)
macro_f1_score.append(f1_temp)
accuracy_list.append(accuracy)
conf_mat_global += conf_mat
# Calculate percentage confusion matrix for this fold
fold_conf_percentages = (conf_mat / conf_mat.sum(axis=1, keepdims=True)) * 100
conf_matrices_percentages.append(fold_conf_percentages)
# Print the old confusion matrix format
print_with_time(conf_mat_global)
avg_conf_mat = np.mean(conf_matrices_percentages, axis=0)
std_conf_mat = np.std(conf_matrices_percentages, axis=0)
# Print the formatted 4x4 confusion matrix
print_with_time("Confusion Matrix (in %):")
for i in range(4):
row = " | ".join([f"{avg_conf_mat[i, j]:.2f}% ± {std_conf_mat[i, j]:.2f}%" for j in range(4)])
print_with_time(row)
if file_write is not None:
file_write.write(row + "\n")
class_f1 = {}
class_f1_std = {}
list_to_print_f1 = []
list_to_print_std = []
for i in range(4):
TP = conf_mat_global[i, i]
FN = conf_mat_global[i, :].sum() - TP
FP = conf_mat_global[:, i].sum() - TP
TN = conf_mat_global.sum() - (TP + FN + FP)
# Calculate F1-score and its standard deviation for each class
class_f1[f'Q{i+1}'] = 2 * TP / (2 * TP + FN + FP)
class_f1_std[f'Q{i+1}'] = np.std([2 * cm[i, i] / (2 * cm[i, i] + cm[i, :].sum() - cm[i, i] + cm[:, i].sum() - cm[i, i]) for cm in conf_matrices_percentages])
list_to_print_f1.append(f'F1-score for Q{i+1}: {class_f1[f"Q{i+1}"]:.3f}')
list_to_print_std.append(f'\tStandard deviation for Q{i+1} (F1-score): {class_f1_std[f"Q{i+1}"]:.3f}')
global_acc = np.mean(accuracy_list)
global_f1 = np.mean(macro_f1_score)
std_acc = np.std(accuracy_list)
sdt_f1_global = np.std(macro_f1_score)
print("-----------------------------","\n")
if file_write is not None:
file_write.write("-----------------------------\n")
file_write.write("\n")
for i, j in zip(list_to_print_f1, list_to_print_std):
print_with_time(i)
print_with_time(j)
if file_write is not None:
file_write.write(i + "\n")
file_write.write(j + "\n")
print("-----------------------------","\n")
if file_write is not None:
file_write.write("-----------------------------\n")
file_write.write("\n")
print_with_time(f'Global F1-score: {global_f1:.3f}')
if file_write is not None:
file_write.write(f'Global F1-score: {global_f1:.3f}\n')
print_with_time(f'\tStandard deviation (Global F1-score): {sdt_f1_global:.3f}')
if file_write is not None:
file_write.write(f'\tStandard deviation (Global F1-score): {sdt_f1_global:.3f}\n')
print("-----------------------------","\n")
if file_write is not None:
file_write.write("-----------------------------\n")
file_write.write("\n")
# now I want to dump the 100 folds of f1-score onto a pickle file
if file_name != None:
with open(file_name, "wb") as file_results:
pickle.dump(macro_f1_score, file_results)
def main(dataset_name,num_features):
# load data
#X, Y = load_data(dataset_name)
X, Y = load_data_features(dataset_name, num_features)
print_with_time("Dados carregados com sucesso!")
# hot one encoding
start = time.time()
#result = [1.7769934685278082, 'rbf', 1, 0.00976460455797839]
#result = find_optimal_hyperparameters(X, Y, dataset_name)
svc = SVC()
search_space = {
'C': Real(1e-6, 100.0, 'log-uniform'),
'kernel': Categorical(['rbf']), # Fixed to 'rbf'
'gamma': Real(1e-6, 100.0, 'log-uniform')
}
# Define the cross-validation strategy
cv = RepeatedStratifiedKFold(n_splits=10, n_repeats=10, random_state=1)
# Define the weighted F1-score as a custom scoring metric
weighted_f1_scorer = make_scorer(f1_score, average='weighted')
# Perform Bayesian optimization for hyperparameter tuning
opt = BayesSearchCV(
svc,
search_space,
n_iter=100, # Number of optimization steps
cv=cv, # Cross-validation strategy
verbose=0, # Set verbose level to 2 to display iteration information
n_jobs=10, # Number of CPU cores to use (set to -1 to use all available cores)
scoring=weighted_f1_scorer # Use the weighted F1-score as the scoring metric
)
print("Fitting to data")
# Fit the optimizer to the data
opt.fit(X, Y)
# Print the best hyperparameters
print("Best hyperparameters found:")
print(opt.best_params_)
print("Weighted F1-score:", opt.best_score_)
best_gamma = opt.best_params_['gamma']
best_cost = opt.best_params_['C']
best_kernel = 'rbf'
best_degree = 1
run_SVM(X,Y,Y, best_cost, best_kernel, best_degree, best_gamma)
#result = find_optimal_hyperparameters(X, Y, dataset_name)
#opt = BayesSearchCV()
#result = [1, 'poly', 2, 0.012222834595883997]
#result = [1.722848544277722, 'rbf', 1, 0.00619566461617553]
#result = [2.133525900222659, 'rbf', 3, 0.0036661347842258853]
#with open('best_hyper_for_corrcted.pickle', 'wb') as hype_file:
# pickle.dump(result, hype_file)
#result = [0.0002883146929196109, 'poly', 1, 90.38625210972366]
#result = [8, "rbf", 1, 0.001953125]
#result = [1.7059670315046978, 'rbf', 1, 0.010983162294952793]
#result = [1.1162069057291064, 'rbf', 1, 0.010709892505221284]
# ... other result comments
#result = [100.0, 'rbf', 1, 0.002439324358513435]
end = time.time()
time_elapsed = round(end - start)
print_with_time("Minutos passados: " + str(time_elapsed / 60))
#run_SVM(X, Y, Y,
#result[0], result[1],
#result[2], result[3])
print_with_time('Finished')
def run_svm_returns_f1_score(X, y, c, kernel, degree, gamma):
kfold = RepeatedStratifiedKFold(n_splits=10, n_repeats=10)
macro_f1_score, f1_each_all, conf_mat_global, accuracy_list = [], [], np.zeros((4, 4)), []
for train, test in kfold.split(X, y):
svc = SVC(C=c, kernel=kernel, degree=degree, gamma=gamma)
svc.fit(X[train], y[train])
ypred = svc.predict(X[test])
f1_temp = f1_score(y[test], ypred, average='macro')
f1_each = f1_score(y[test], ypred, average=None)
accuracy = accuracy_score(y[test], ypred)
conf_mat = confusion_matrix(y[test], ypred)
macro_f1_score.append(f1_temp)
f1_each_all.append(f1_each)
accuracy_list.append(accuracy)
conf_mat_global += conf_mat
return macro_f1_score, f1_each_all, conf_mat_global, accuracy_list
def load_data_features(dataset_name, feature_amount):
# Load information and data
samples_file, csv_name, new_top, _ = get_information(dataset_name)
data = pd.read_csv(samples_file, sep=',', header=0)
print_with_time(f"Data Shape: {data.shape}")
print_with_time(f"Sample File: {samples_file}")
print_with_time(f"CSV Name: {csv_name}")
print_with_time(f"Feature amount: {feature_amount}")
# Sort by 'IdSong' (assumed to be a column in your data)
data.sort_values(by=['IdSong'])
# Extract relevant features
X = data.iloc[:, new_top]
#print(X)
# Now just keep the amount of features we want
X = X.iloc[:, :feature_amount]
#print(X)
#print_with_time(f"Data length: {len(data)} with {len(X.columns)} features")
# Load target labels
target = pd.read_csv(csv_name, sep=',', header=0)
target.sort_values(by=['Song'])
Y = target.iloc[:, 1]
X = X.replace("?", 0)