Skip to content

Commit

Permalink
- PolicyBookでevalからvalueに変換する時の定数調整。
Browse files Browse the repository at this point in the history
  • Loading branch information
yaneurao committed Dec 23, 2024
1 parent 18441f8 commit 2b05960
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/book/policybook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ Tools::Result PolicyBook::read_book_db(std::string path)
// 7g7f 123 value 0.50
// のように、その局面での手番側から見たvalueを付与することができる。
// 7g7f 123 eval 400
// のようにevalを付与することもできる。この場合、eval_coef=800として勝率に変換される
// いまどきのソフトは800より小さいのだが、ここをあえて大きな値にすることで、valueとして
// のようにevalを付与することもできる。この場合、eval_coef=300として勝率に変換される
// いまどきのソフトは550程度だが、ここをあえて小さな値にすることで、valueとして
// (0.5からの乖離が)大きめの値にする。

// 出現頻度を保管しておく。
Expand All @@ -98,7 +98,7 @@ Tools::Result PolicyBook::read_book_db(std::string path)
if (movestr == "value")
mf32r.value = StringExtension::to_float(moves[i + 1], FLT_MAX);
else if (movestr == "eval")
mf32r.value = Eval::dlshogi::cp_to_value(StringExtension::to_int(moves[i + 1], 0), 800);
mf32r.value = Eval::dlshogi::cp_to_value(StringExtension::to_int(moves[i + 1], 0), 300);
else {
// もうお腹いっぱい。ここPOLICY_BOOK_NUM以上
// 書いてもいいことにはなっているのでこの判定が必要。
Expand Down

0 comments on commit 2b05960

Please sign in to comment.