Skip to content

Commit daf933e

Browse files
MardakTilps
authored andcommitted
Update TempVisitOffset help text and allowed values. (LeelaChessZero#771)
1 parent 67115d5 commit daf933e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mcts/params.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ const OptionId SearchParams::kTemperatureWinpctCutoffId{
8484
"probability less than X than the best move) are not considered at all."};
8585
const OptionId SearchParams::kTemperatureVisitOffsetId{
8686
"temp-visit-offset", "TempVisitOffset",
87-
"Reduces visits by this value when picking a move with a temperature. When "
88-
"the offset is less than number of visits for a particular move, that move "
89-
"is not picked at all."};
87+
"Adjusts visits by this value when picking a move with a temperature. If a "
88+
"negative offset reduces visits for a particular move below zero, that "
89+
"move is not picked. If no moves can be picked, no temperature is used."};
9090
const OptionId SearchParams::kNoiseId{
9191
"noise", "DirichletNoise",
9292
"Add Dirichlet noise to root node prior probabilities. This allows the "
@@ -192,7 +192,7 @@ void SearchParams::Populate(OptionsParser* options) {
192192
options->Add<IntOption>(kTemperatureCutoffMoveId, 0, 1000) = 0;
193193
options->Add<FloatOption>(kTemperatureEndgameId, 0.0f, 100.0f) = 0.0f;
194194
options->Add<FloatOption>(kTemperatureWinpctCutoffId, 0.0f, 100.0f) = 100.0f;
195-
options->Add<FloatOption>(kTemperatureVisitOffsetId, -0.99999f, 1000.0f) =
195+
options->Add<FloatOption>(kTemperatureVisitOffsetId, -1000.0f, 1000.0f) =
196196
0.0f;
197197
options->Add<BoolOption>(kNoiseId) = false;
198198
options->Add<BoolOption>(kVerboseStatsId) = false;

0 commit comments

Comments
 (0)