turiu čia daug parametrų paieškos bandymų, man reikia geriausia sluoksni atrasti,

pateikiu tau kaip sluoksni ir jo rezultatą (kuo mažesnis tuo geriau, bet tiesė - blogai)

parašyk funkcija kuri atrastu man geriausia sluoksnio varijacija

# if 1:
#     ai_mlp = MultyLevelPerceptron()
    # ai_mlp.layers = (1000,1000) #0,937
    # ai_mlp.layers = (80, 40, 20, 10) #0,71
    # ai_mlp.layers = (128, 64) #0,699
    # ai_mlp.layers = (100, 50, 25) #0,68
    # ai_mlp.layers = (150,100,70,40,30,20,15)  #0,648
    # ai_mlp.layers = (128, 64, 32) #0,633
    # ai_mlp.layers = (32, 16, 8) #0,604
    # ai_mlp.layers = (50, 25, 10) #0,581
    # ai_mlp.layers = (50,20)  # 0,552 
    # ai_mlp.layers = (32, 16) #0,506
    # ai_mlp.layers = (64, 32, 16) #0,468
    # ai_mlp.layers = (64, 32) #0,397
    # ai_mlp.layers = (100, 50) #0,303
    # ai_mlp.layers = (128, 32) #0,632
    # ai_mlp.layers = (120, 60) # 0,362
    # ai_mlp.layers = (100, 60) #0,406
    # ai_mlp.layers = (100, 40) #0,274
    # ai_mlp.layers = (90, 45) #0,303
    # ai_mlp.layers = (80, 40) #0,407
    # ai_mlp.layers = (75, 50) #0,448
    # ai_mlp.layers = (64, 16) #0,52
    # ai_mlp.layers = (50, 16) #0,641
    # ai_mlp.layers = (40, 20) #0,356
    # ai_mlp.layers = (100, 32, 16) #0,376
    # ai_mlp.layers = (80, 32, 16) #0,67
    # ai_mlp.layers = (64, 32, 8) # 0,59
    # ai_mlp.layers = (32, 16, 4) # 0,14 tiesė
    # ai_mlp.layers = (50,1000,50) # 1,515
    # ai_mlp.layers = (10,10,10,10,10,10,10,10,10,10,10,10) #0,664
    # ai_mlp.layers = (3,3,3,3,3,3,3) # 0,14 tiesė
    # ai_mlp.layers = (5, 5) # 0,589
    # ai_mlp.layers = (10, 10) # 0,62
    # ai_mlp.layers = (100, 100) # 0,447
    # ai_mlp.layers = (100, 100, 100) #0,61
    # ai_mlp.layers = (100, 100, 100, 100) # 0,734
    # ai_mlp.layers = (100, 100, 100, 100, 100) #0,637
    # ai_mlp.layers = (100, 100, 100, 100, 100, 100) # 1,128
    # ai_mlp.layers = (100, 80, 70, 60, 50, 40, 30) # 0,587
    # ai_mlp.layers = (30, 40, 50, 60, 70, 80,100) # 0,761
    # ai_mlp.layers = (100, 70, 60, 50, 40, 30) # 0,694
    # ai_mlp.layers = (100, 50, 25, 12, 6, 3) # 0,467
    # ai_mlp.layers = (100, 50, 25, 12, 6) # 0,88
    # ai_mlp.layers = (100, 50, 25, 12) # 0,658
    # ai_mlp.layers = (100, 50, 25) # 0,68 
    # ai_mlp.layers = (100) # 0,374
    # ai_mlp.layers = (6,6,6,6,6,6,6) #0,128 # labai nice kreivė +++++++++++++++
    # ai_mlp.layers = (6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6) # 0,451
    # ai_mlp.layers = (6,6,6,6,6,6,6,6,6,6,6,6,6) #0,687
    # ai_mlp.layers = (6,6,6,6,6,6,6,6,6,6,6,6) #0,688
    # ai_mlp.layers = (6,6,6,6,6,6,6,6,6,6,6) # 0,14 tiesė
    # ai_mlp.layers = (6,6,6,6,6,6,6,6,6,6) #0,731
    # ai_mlp.layers = (6,6,6,6,6,6,6,6,6) #0,14 tiesė 
    # ai_mlp.layers = (6,6,6,6,6,6,6,6) #0,5
    # ai_mlp.layers = (6,6,6,6,6,6,6) #0,128
    # ai_mlp.layers = (6,6,6,6,6,6) #0,451
    # ai_mlp.layers = (6,6,6,6,6) #0,83
    # ai_mlp.layers = (6,6,6,6) #0,631
    # ai_mlp.layers = (6,6,6) # 0,14 tiesė
    # ai_mlp.layers = (6,6) #0,514
    # ai_mlp.layers = (6) #0,33
    # ai_mlp.layers = (100,100,100,100,100,100,100) #0.653
    # ai_mlp.layers = (90,90,90,90,90,90,90) #0,7
    # ai_mlp.layers = (80,80,80,80,80,80,80) # 0,624
    # ai_mlp.layers = (70,70,70,70,70,70,70) #0,506
    # ai_mlp.layers = (60,60,60,60,60,60,60) #0.832
    # ai_mlp.layers = (50,50,50,50,50,50,50) #0,597
    # ai_mlp.layers = (40,40,40,40,40,40,40) #0,648
    # ai_mlp.layers = (30,30,30,30,30,30,30) #0,617
    # ai_mlp.layers = (20,20,20,20,20,20,20) #0,635
    # ai_mlp.layers = (10,10,10,10,10,10,10) #0,703
    # ai_mlp.layers = (9,9,9,9,9,9,9) #0,546
    # ai_mlp.layers = (8,8,8,8,8,8,8) #0,419
    # ai_mlp.layers = (7,7,7,7,7,7,7) #0,473
    # ai_mlp.layers = (5,5,5,5,5,5,5) #0,138 tiesė-
    # ai_mlp.layers = (4,4,4,4,4,4,4) #0,346
    # ai_mlp.layers = (3,3,3,3,3,3,3) #0.138 tiesė - 
    # ai_mlp.layers = (2,2,2,2,2,2,2) #0.138 ties4 -
    # ai_mlp.layers = (23,23,23,23) #0.545

    # ai_mlp.layers = (8, 9, 9, 7, 7, 12) #0,414
    # ai_mlp.layers = (16, 27, 36, 12) #0,542
    # ai_mlp.layers = (36, 27,16, 12) #0,684
    # ai_mlp.layers = (3, 4, 4, 9, 9, 12, 12) #-
    # ai_mlp.layers = (12, 12, 9, 9, 4, 4, 3) #-
    # ai_mlp.layers = (2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3) #-
    # ai_mlp.layers = (14, 18, 16, 54) #0,68
    # ai_mlp.layers = (14, 16, 18, 54) #0,614
    # ai_mlp.layers = (54, 18, 16, 14 ) #0,585
    # ai_mlp.layers = (4, 4, 4, 9, 9, 9, 9) #0,401
    # ai_mlp.layers = (9, 9, 9, 9,4, 4, 4) #0,355
    # ai_mlp.layers = (18, 18, 2, 2, 2, 2, 2, 3, 3, 3) # -
    
    # ai_mlp.layers = (24, 24, 12, 6, 3) #-
    # ai_mlp.layers = (32, 16, 8, 4, 2) #0,91
    # ai_mlp.layers = (18, 18, 9, 9, 4, 2) #0,468
    # ai_mlp.layers = (16, 16, 16, 8, 4) #0,567
    # ai_mlp.layers = (12, 12, 12, 12, 6, 3) #-
    # ai_mlp.layers = (10, 9, 8, 7, 6, 5, 4) #-
    # ai_mlp.layers = (8, 8, 8, 8, 4, 4, 2) #-
    # ai_mlp.layers = (40, 20, 10, 5, 2) #-
    # ai_mlp.layers = (30, 24, 18, 12, 6, 3) #0,579
    # ai_mlp.layers = (50, 25, 10, 5, 3) #0,57
    # ai_mlp.layers = (7,7,6,6,6,6,7) #-
    # ai_mlp.layers = (8,7,6,6,6,7,8) #-
    # ai_mlp.layers = (12,9,7,6,7,9,12) #0,619
    # ai_mlp.layers = (6,8,10,12,10,8,6) #0,374
    # ai_mlp.layers = (8,8,8,6,6,6,6) #0,551
    # ai_mlp.layers = (6,6,6,6,6,6,6,6,3) #-
    # ai_mlp.layers = (10,8,6,6,6,8,10) #-
    # ai_mlp.layers = (5,6,7,8,7,6,5) #0,569
    # ai_mlp.layers = (7,6,5,4,5,6,7) #0,244
    # ai_mlp.layers = (9,7,5,5,5,7,9) #-

    # ai_mlp.layers = (7,6,5,5,5,6,7) #0,521
    # ai_mlp.layers = (8,7,6,5,6,7,8) #0,783
    # ai_mlp.layers = (6,7,8,7,6,5,4) #-
    # ai_mlp.layers = (5,6,7,6,5,6,7) #0,73
    # ai_mlp.layers = (7,7,6,5,6,7,7) #0,65
    # ai_mlp.layers = (7, 6, 6, 6, 6, 6, 7) #0,538
    # ai_mlp.layers = (8, 7, 6, 5, 6, 7, 8) #0,783
    # ai_mlp.layers = (9, 7, 5, 5, 5, 7, 9) #-
    # ai_mlp.layers = (10, 8, 6, 6, 6, 8, 10) #-
    # ai_mlp.layers = (12, 10, 8, 6, 8, 10, 12) #0,633

    # ai_mlp.layers = (6, 6, 5, 5, 5, 5, 6, 6) #0,536
    # ai_mlp.layers = (6, 6, 6, 5, 5, 6, 6, 6) #0,337
    # ai_mlp.layers = (7, 6, 6, 5, 5, 6, 6, 7) #0,537
    # ai_mlp.layers = (6, 6, 4, 4, 4, 4, 6, 6) #0,472
    # ai_mlp.layers = (6,6,5,4,5,6,6) #0,584
    # ai_mlp.layers = (6,5,5,4,5,5,6) #0,3
    # ai_mlp.layers = (7,6,5,4,4,5,6,7) #-
    # ai_mlp.layers = (6,6,6,5,6,6,6) #-
    # ai_mlp.layers = (7,6,6,4,6,6,7) #1,582
    # ai_mlp.layers = (6,6,6,6,6,6,6) #0,128 +++++ <<<<<<<<<<<<<<<<<<<<<<<<
    # ai_mlp.layers = (6,6,6,60,6,6,6) #0,128 +++++0,46
    # ai_mlp.layers = (6,7,8,9,8,7,6) #0,128 +++++0,584

    # ai_mlp.layers = (1) #-
    # ai_mlp.layers = (2) #-
    # ai_mlp.layers = (3) #-
    # ai_mlp.layers = (4) #0,193
    # ai_mlp.layers = (5) #0,525
    # ai_mlp.layers = (6) #0,121
    # ai_mlp.layers = (7) #0,603
    # ai_mlp.layers = (8) #1,99
    # ai_mlp.layers = (9) #0,653
    # ai_mlp.layers = (10) #0,924
    # ai_mlp.layers = (15) #0,429
    # ai_mlp.layers = (20) #0,465
    # ai_mlp.layers = (30) #0,192
    # ai_mlp.layers = (50) # 0,139


    # ai_mlp.layers = (6) #0,33 0,121
    # ai_mlp.layers = (90, 45)  # 0,303 0,127
    # ai_mlp.layers = (100, 40) #0,274 0,145
    # ai_mlp.layers = (40, 20) #0,356 0,172
    # ai_mlp.layers = (80, 40) #0,407 0,195

    # ai_mlp.layers = (100, 50) # 0,303 0,211
    # ai_mlp.layers = (100, 100) # 0,447 0,25
    # ai_mlp.layers = (100) #0,374 0,23
    # ai_mlp.layers = (7,6,5,4,5,6,7) #0,244 0,25
    # ai_mlp.layers = (64, 32) #0,397 0,28
    # ai_mlp.layers = (100, 32, 16) #0,376 0,294
    # ai_mlp.layers = (100, 60) #0,406 0,294
    # ai_mlp.layers = (120, 60) # 0,362 0,3
    # ai_mlp.layers = (6,5,5,4,5,5,6) #0,3 0,309
    # ai_mlp.layers = (6,6,6,5,5,6,6,6) #0,337 0,345
    # ai_mlp.layers = (9, 9, 9, 9,4, 4, 4) #0,355 0,368
    # ai_mlp.layers = (6,8,10,12,10,8,6) #0,374 0,371
    # ai_mlp.layers = (4, 4, 4, 9, 9, 9, 9) #0,401 0,408
    # ai_mlp.layers = (75, 50) # 0,448 0,421
    # ai_mlp.layers = (64, 32, 16) #0,468  0,428
    # ai_mlp.layers = (8,8,8,8,8,8,8) #0,419 0,432
    # ai_mlp.layers = (8, 9, 9, 7, 7, 12) #0,414 0,435
    # ai_mlp.layers = (6,6,4,4,4,4,6,6) #0,472 0,478
    # ai_mlp.layers = (7,7,7,7,7,7,7) #0,473 0,496