Skip to content

Commit 54b6bb3

Browse files
Update train.py
1 parent 4bfd871 commit 54b6bb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

v1.1/2. training/train.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def fit(self, X, y, lr=None):
247247
if CONVERT_CP_TO_WR:
248248
# inspired by https://www.chessprogramming.org/Pawn_Advantage,_Win_Percentage,_and_Elo
249249
mt = 1 / (1 + 10**(-mt/400))
250+
mt = 2.0 * mt - 1.0
250251
else:
251252
# idea: one queen ahead --> mt = +0.9 --> close to / similar to a win ratio of +1.0
252253
mt /= 1000.0

0 commit comments

Comments
 (0)