mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Revert sigmoid interpolator
After deep test (1000 games) it seems do not improve anything, actually seems slightly weaker. So remove it for now. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
08265aef81
commit
9d5d69e435
1 changed files with 1 additions and 7 deletions
|
@ -1120,13 +1120,7 @@ namespace {
|
|||
|
||||
ev = apply_scale_factor(ev, sf[(ev > Value(0) ? WHITE : BLACK)]);
|
||||
|
||||
// Linearized sigmoid interpolator
|
||||
int sph = int(ph);
|
||||
sph -= (64 - sph) / 4;
|
||||
sph = Min(PHASE_MIDGAME, Max(PHASE_ENDGAME, sph));
|
||||
|
||||
Value result = Value(int((mv * sph + ev * (128 - sph)) / 128));
|
||||
|
||||
Value result = Value(int((mv * ph + ev * (128 - ph)) / 128));
|
||||
return Value(int(result) & ~(GrainSize - 1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue