Skip to content
Browse files

Log to file updated parameters

Double check everything works as expected: it is possible
during each game to look up the current parameters values
in CLOP gui and verify are the same written in samples.txt
  • Loading branch information...
1 parent fbe1c48 commit a2976fd6110efc40507029a8b5c7b892a828b874 @mcostalba committed Sep 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/evaluate.cpp
4 src/evaluate.cpp
@@ -311,6 +311,10 @@ namespace Eval {
// Read values of parameters under tuning
RookOnPawnBonus = make_score(3, Options["p1"]);
QueenOnPawnBonus = make_score(1, Options["p2"]);
+ // Log to file and double check everything works
+ Log l("samples.txt");
+ l << Options["p1"] << ", " << Options["p2"] << std::endl;

7 comments on commit a2976fd


Hello Marco,
It seems I didn't choose the min/max bounds wisely in the clop experiment : I now have much more promising results.
New bounds

Please sign in to comment.
Something went wrong with that request. Please try again.