Skip to content

Commit

Permalink
⚖ Re-tune eval using some Stash data (#515)
Browse files Browse the repository at this point in the history
Tune eval using 90% big3 data and 10% data from Stash

See lynx-chess/texel-tuner@d980578
  • Loading branch information
eduherminio authored Nov 29, 2023
1 parent f2d1863 commit 7c086ba
Show file tree
Hide file tree
Showing 4 changed files with 203 additions and 203 deletions.
62 changes: 31 additions & 31 deletions src/Lynx.Cli/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,44 +46,44 @@

// Evaluation
"DoubledPawnPenalty": {
"MG": -3,
"EG": -11
"MG": -5,
"EG": -14
},
"IsolatedPawnPenalty": {
"MG": -13,
"EG": -10
"MG": -17,
"EG": -14
},
"OpenFileRookBonus": {
"MG": 42,
"EG": 22
"MG": 60,
"EG": 28
},
"SemiOpenFileRookBonus": {
"MG": 18,
"EG": 16
"MG": 25,
"EG": 23
},
"BishopMobilityBonus": {
"MG": 8,
"EG": 7
"MG": 10,
"EG": 10
},
"QueenMobilityBonus": {
"MG": 2,
"EG": 7
"MG": 3,
"EG": 9
},
"SemiOpenFileKingPenalty": {
"MG": -29,
"EG": 19
"MG": -38,
"EG": 25
},
"OpenFileKingPenalty": {
"MG": -80,
"EG": 3
"MG": -107,
"EG": 4
},
"KingShieldBonus": {
"MG": 15,
"EG": -5
"MG": 19,
"EG": -6
},
"BishopPairBonus": {
"MG": 22,
"EG": 65
"MG": 30,
"EG": 88
},
"PassedPawnBonus": {
"Rank0": {
Expand All @@ -92,27 +92,27 @@
},
"Rank1": {
"MG": -2,
"EG": 5
"EG": 7
},
"Rank2": {
"MG": -13,
"EG": 10
"MG": -16,
"EG": 13
},
"Rank3": {
"MG": -12,
"EG": 32
"MG": -16,
"EG": 44
},
"Rank4": {
"MG": 13,
"EG": 62
"MG": 20,
"EG": 83
},
"Rank5": {
"MG": 38,
"EG": 132
"MG": 61,
"EG": 175
},
"Rank6": {
"MG": 53,
"EG": 191
"MG": 92,
"EG": 257
},
"Rank7": {
"MG": 0,
Expand Down
32 changes: 16 additions & 16 deletions src/Lynx/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,34 +159,34 @@ public sealed class EngineSettings

#region Evaluation

public TaperedEvaluationTerm DoubledPawnPenalty { get; set; } = new(-3, -11);
public TaperedEvaluationTerm DoubledPawnPenalty { get; set; } = new(-5, -14);

public TaperedEvaluationTerm IsolatedPawnPenalty { get; set; } = new(-13, -10);
public TaperedEvaluationTerm IsolatedPawnPenalty { get; set; } = new(-17, -14);

public TaperedEvaluationTerm OpenFileRookBonus { get; set; } = new(42, 22);
public TaperedEvaluationTerm OpenFileRookBonus { get; set; } = new(60, 28);

public TaperedEvaluationTerm SemiOpenFileRookBonus { get; set; } = new(18, 16);
public TaperedEvaluationTerm SemiOpenFileRookBonus { get; set; } = new(25, 23);

public TaperedEvaluationTerm BishopMobilityBonus { get; set; } = new(8, 7);
public TaperedEvaluationTerm BishopMobilityBonus { get; set; } = new(10, 10);

public TaperedEvaluationTerm QueenMobilityBonus { get; set; } = new(2, 7);
public TaperedEvaluationTerm QueenMobilityBonus { get; set; } = new(3, 9);

public TaperedEvaluationTerm SemiOpenFileKingPenalty { get; set; } = new(-29, 19);
public TaperedEvaluationTerm SemiOpenFileKingPenalty { get; set; } = new(-38, 25);

public TaperedEvaluationTerm OpenFileKingPenalty { get; set; } = new(-80, 3);
public TaperedEvaluationTerm OpenFileKingPenalty { get; set; } = new(-107, 4);

public TaperedEvaluationTerm KingShieldBonus { get; set; } = new(15, -5);
public TaperedEvaluationTerm KingShieldBonus { get; set; } = new(19, -6);

public TaperedEvaluationTerm BishopPairBonus { get; set; } = new(22, 65);
public TaperedEvaluationTerm BishopPairBonus { get; set; } = new(30, 88);

public TaperedEvaluationTermByRank PassedPawnBonus { get; set; } = new(
new(0),
new(-2, 5),
new(-13, 10),
new(-12, 32),
new(13, 62),
new(38, 132),
new(53, 191),
new(-2, 7),
new(-16, 13),
new(-16, 44),
new(20, 83),
new(61, 175),
new(92, 257),
new(0));

#endregion
Expand Down
Loading

0 comments on commit 7c086ba

Please sign in to comment.