Skip to content

Commit

Permalink
🧹 Move eval to TunableEvalParameters file and make it non tunable v…
Browse files Browse the repository at this point in the history
…ia appsettings (#889)


```
Test  | cleanup/move-eval-to-separated-file-2-eval-terms
Elo   | -2.92 +- 3.24 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=32MB
LLR   | -2.26 (-2.25, 2.89) [-3.00, 1.00]
Games | 21144: +6378 -6556 =8210
Penta | [694, 2411, 4508, 2297, 662]
https://openbench.lynx-chess.com/test/526/
```

Merging anyway to keep everything in the same file, at least temporarily
  • Loading branch information
eduherminio authored Aug 3, 2024
1 parent 7ea27ea commit 9c9b2fb
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 512 deletions.
357 changes: 1 addition & 356 deletions src/Lynx.Cli/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,362 +56,7 @@

"FP_MaxDepth": 5,
"FP_DepthScalingFactor": 78,
"FP_Margin": 129,

// Evaluation
"IsolatedPawnPenalty": {
"MG": -19,
"EG": -16
},
"OpenFileRookBonus": {
"MG": 44,
"EG": 7
},
"SemiOpenFileRookBonus": {
"MG": 15,
"EG": 10
},
"QueenMobilityBonus": {
"MG": 1,
"EG": 11
},
"SemiOpenFileKingPenalty": {
"MG": -24,
"EG": 7
},
"OpenFileKingPenalty": {
"MG": -87,
"EG": 4
},
"KingShieldBonus": {
"MG": 9,
"EG": -4
},
"BishopPairBonus": {
"MG": 32,
"EG": 80
},
"PieceProtectedByPawnBonus": {
"MG": 10,
"EG": 11
},
"PieceAttackedByPawnPenalty": {
"MG": -45,
"EG": -23
},
"PassedPawnBonus": {
"Rank0": {
"MG": 0,
"EG": 0
},
"Rank1": {
"MG": 6,
"EG": 16
},
"Rank2": {
"MG": -0,
"EG": 22
},
"Rank3": {
"MG": -0,
"EG": 47
},
"Rank4": {
"MG": 24,
"EG": 72
},
"Rank5": {
"MG": 35,
"EG": 131
},
"Rank6": {
"MG": 252,
"EG": 258
},
"Rank7": {
"MG": 0,
"EG": 0
}

},
"VirtualKingMobilityBonus": {
"Count0": {
"MG": 0,
"EG": 0
},
"Count1": {
"MG": 0,
"EG": 0
},
"Count2": {
"MG": 0,
"EG": 0
},
"Count3": {
"MG": 24,
"EG": 31
},
"Count4": {
"MG": 44,
"EG": 11
},
"Count5": {
"MG": 29,
"EG": 31
},
"Count6": {
"MG": 29,
"EG": 21
},
"Count7": {
"MG": 28,
"EG": 11
},
"Count8": {
"MG": 25,
"EG": 13
},
"Count9": {
"MG": 20,
"EG": 9
},
"Count10": {
"MG": 17,
"EG": 10
},
"Count11": {
"MG": 11,
"EG": 14
},
"Count12": {
"MG": 10,
"EG": 9
},
"Count13": {
"MG": 1,
"EG": 11
},
"Count14": {
"MG": -8,
"EG": 12
},
"Count15": {
"MG": -19,
"EG": 13
},
"Count16": {
"MG": -26,
"EG": 9
},
"Count17": {
"MG": -38,
"EG": 5
},
"Count18": {
"MG": -43,
"EG": 3
},
"Count19": {
"MG": -47,
"EG": -4
},
"Count20": {
"MG": -35,
"EG": -13
},
"Count21": {
"MG": -26,
"EG": -21
},
"Count22": {
"MG": -24,
"EG": -30
},
"Count23": {
"MG": -11,
"EG": -39
},
"Count24": {
"MG": -29,
"EG": -46
},
"Count25": {
"MG": 1,
"EG": -64
},
"Count26": {
"MG": -45,
"EG": -67
},
"Count27": {
"MG": -18,
"EG": -80
}
},
"KnightMobilityBonus": {
"Count0": {
"MG": 0,
"EG": 0
},
"Count1": {
"MG": 22,
"EG": -8
},
"Count2": {
"MG": 30,
"EG": 5
},
"Count3": {
"MG": 34,
"EG": 4
},
"Count4": {
"MG": 37,
"EG": 7
},
"Count5": {
"MG": 35,
"EG": 12
},
"Count6": {
"MG": 33,
"EG": 11
},
"Count7": {
"MG": 33,
"EG": 10
},
"Count8": {
"MG": 34,
"EG": 4
}
},
"BishopMobilityBonus": {
"Count0": {
"MG": -241,
"EG": -260
},
"Count1": {
"MG": 0,
"EG": 0
},
"Count2": {
"MG": 24,
"EG": -17
},
"Count3": {
"MG": 28,
"EG": 21
},
"Count4": {
"MG": 43,
"EG": 40
},
"Count5": {
"MG": 48,
"EG": 54
},
"Count6": {
"MG": 62,
"EG": 74
},
"Count7": {
"MG": 71,
"EG": 83
},
"Count8": {
"MG": 79,
"EG": 95
},
"Count9": {
"MG": 79,
"EG": 102
},
"Count10": {
"MG": 84,
"EG": 108
},
"Count11": {
"MG": 89,
"EG": 108
},
"Count12": {
"MG": 86,
"EG": 110
},
"Count13": {
"MG": 104,
"EG": 111
},
"Count14": {
"MG": 0,
"EG": 0
}

},
"RookMobilityBonus": {
"Count0": {
"MG": 0,
"EG": 0
},
"Count1": {
"MG": 9,
"EG": 25
},
"Count2": {
"MG": 13,
"EG": 30
},
"Count3": {
"MG": 18,
"EG": 35
},
"Count4": {
"MG": 16,
"EG": 42
},
"Count5": {
"MG": 22,
"EG": 45
},
"Count6": {
"MG": 24,
"EG": 50
},
"Count7": {
"MG": 26,
"EG": 54
},
"Count8": {
"MG": 27,
"EG": 61
},
"Count9": {
"MG": 29,
"EG": 67
},
"Count10": {
"MG": 32,
"EG": 68
},
"Count11": {
"MG": 34,
"EG": 71
},
"Count12": {
"MG": 34,
"EG": 75
},
"Count13": {
"MG": 49,
"EG": 71
},
"Count14": {
"MG": 47,
"EG": 66
}
}
// End of evaluation
"FP_Margin": 129
},

// Logging settings
Expand Down
Loading

0 comments on commit 9c9b2fb

Please sign in to comment.