Hi,
Does anyone know how to retrieve the results from CLOP into a text file or spreadsheet or whatever?
My chess program has 135 parameters so copying them by hand is a bit cumbersome.
CLOP & command line or so
Moderator: Ras
-
xmas79
- Posts: 286
- Joined: Mon Jun 03, 2013 7:05 pm
- Location: Italy
Re: CLOP & command line or so
I've just setup my CLOP framework, but I just didn't try to optimize anything. The thing I did to see it CLOP was working is dumping on a text file the values of the parameters pushed by CLOP, directly from the inside my engine. I simply added the code to the "setvalue parameter value" processor et voilà.... And you can have all the history....
Natale.
Natale.
-
flok
Re: CLOP & command line or so
Yes, but the history file is that: history, not the best value I think?
So CLOP goes through that history, performs calculations and then decides on the best set, that is what I understand from it.
I found that you can copy/paste one field, not all in go unfortunately.
So CLOP goes through that history, performs calculations and then decides on the best set, that is what I understand from it.
I found that you can copy/paste one field, not all in go unfortunately.
-
Ferdy
- Posts: 4853
- Joined: Sun Aug 10, 2008 3:15 pm
- Location: Philippines
Re: CLOP & command line or so
CLOP automatically generates a file containing all the results of all parameter combinations that have been tried.flok wrote:Hi,
Does anyone know how to retrieve the results from CLOP into a text file or spreadsheet or whatever?
My chess program has 135 parameters so copying them by hand is a bit cumbersome.
Check for file with dat extension after running a CLOP session.
I have an example below using 1 parameter as in,
KingSafetyFactor 45 65
I created a program to summarize what is written in *.dat file very handy when you want to see
in advance what are the early promising parameter values. You can even stop CLOP and start testing
using one of those good parameter values found so far.
Unfortunately this program is only capable of 1 parameter, as I often optimize 1 parameter
at a time when using CLOP. Tell me if you want this.
Code: Select all
Number of parameters: 1
First parameter: KingSafetyFactor
Min Param Value: 45
Max Param Value: 65
Param W / L / D NetW Total Score LOS
45 00003 / 00003 / 00004 +0 10 50.00% 50.00%
46 00006 / 00013 / 00009 -7 28 37.50% 5.77%
47 00011 / 00008 / 00013 +3 32 54.69% 74.83%
48 00016 / 00014 / 00016 +2 46 52.17% 63.99%
49 00012 / 00022 / 00020 -10 54 40.74% 4.48%
50 00027 / 00029 / 00038 -2 94 48.94% 39.57%
51 00026 / 00041 / 00043 -15 110 43.18% 3.41%
52 00045 / 00037 / 00048 +8 130 53.08% 81.00%
53 00087 / 00061 / 00082 +26 230 55.65% 98.36%
54 00061 / 00062 / 00092 -1 215 49.77% 46.42%
55 00059 / 00080 / 00087 -21 226 45.35% 3.78%
56 00079 / 00075 / 00088 +4 242 50.83% 62.59%
57 00074 / 00075 / 00107 -1 256 49.80% 46.75%
58 00095 / 00071 / 00088 +24 254 54.72% 96.85%
59 00096 / 00069 / 00095 +27 260 55.19% 98.21%
60 00076 / 00073 / 00095 +3 244 50.61% 59.67%
61 00064 / 00057 / 00071 +7 192 51.82% 73.68%
62 00058 / 00071 / 00102 -13 231 47.19% 12.71%
63 00064 / 00050 / 00086 +14 200 53.50% 90.43%
64 00061 / 00063 / 00082 -2 206 49.51% 42.91%
65 00044 / 00032 / 00057 +12 133 54.51% 91.45%
Total games: 3393
Top Parameters:
[1] param 53, score 55.65%, LOS 98.36%, Games 230, NetWins +26
[2] param 59, score 55.19%, LOS 98.21%, Games 260, NetWins +27
[3] param 58, score 54.72%, LOS 96.85%, Games 254, NetWins +24
[4] param 65, score 54.51%, LOS 91.45%, Games 133, NetWins +12
[5] param 63, score 53.50%, LOS 90.43%, Games 200, NetWins +14
-
Ferdy
- Posts: 4853
- Joined: Sun Aug 10, 2008 3:15 pm
- Location: Philippines
Re: CLOP & command line or so
Be sure to read the short readme file for usage and program limitation.
http://www.mediafire.com/download/31zm4 ... _reader.7z
http://www.mediafire.com/download/31zm4 ... _reader.7z
-
Ferdy
- Posts: 4853
- Joined: Sun Aug 10, 2008 3:15 pm
- Location: Philippines
Re: CLOP & command line or so
Version 2 is here, capable of reading up to 2 parameters.
Sample.
Download.
http://www.mediafire.com/download/pxr6l ... eader-2.7z
Sample.
Code: Select all
CLOP Data Reader v2.0
Feb 23 2014, 10:58:49
Number of parameters: 2
First parameter: KnightOutpost
Second parameter: PasserFactor
Param1: Min 15, Max 20
Param2: Min 35, Max 55
Total games: 27911
Param1 param2 W / L / D NetW Games Score LOS
15 35 172 / 189 / 206, -17 567 48.50% 18.58%
15 36 227 / 227 / 220, +0 674 50.00% 50.00%
15 37 226 / 199 / 221, +27 646 52.09% 90.46%
15 38 190 / 200 / 194, -10 584 49.14% 30.66%
15 39 186 / 185 / 199, +1 570 50.09% 52.07%
15 40 169 / 184 / 199, -15 552 48.64% 21.27%
15 41 158 / 178 / 162, -20 498 47.99% 13.80%
15 42 98 / 100 / 94, -2 292 49.66% 44.37%
15 43 69 / 78 / 75, -9 222 47.97% 22.98%
15 44 61 / 56 / 51, +5 168 51.49% 67.73%
15 45 30 / 21 / 17, +9 68 56.62% 89.42%
15 46 16 / 18 / 24, -2 58 48.28% 36.79%
15 47 11 / 20 / 11, -9 42 39.29% 5.51%
15 48 6 / 4 / 4, +2 14 57.14% 72.56%
15 49 4 / 5 / 5, -1 14 46.43% 37.70%
15 50 3 / 1 / 2, +2 6 66.67% 81.25%
15 51 2 / 5 / 3, -3 10 35.00% 14.45%
15 52 1 / 4 / 3, -3 8 31.25% 10.94%
15 54 1 / 2 / 1, -1 4 37.50% 31.25%
15 55 2 / 0 / 2, +2 4 75.00% 87.50%
16 35 215 / 192 / 199, +23 606 51.90% 87.26%
16 36 182 / 193 / 215, -11 590 49.07% 28.53%
16 37 201 / 207 / 212, -6 620 49.52% 38.34%
16 38 220 / 236 / 218, -16 674 48.81% 22.71%
16 39 170 / 187 / 171, -17 528 48.39% 18.45%
16 40 169 / 155 / 148, +14 472 51.48% 78.13%
16 41 142 / 122 / 134, +20 398 52.51% 89.04%
16 42 53 / 63 / 78, -10 194 47.42% 17.76%
16 43 36 / 55 / 35, -19 126 42.46% 2.35%
16 44 36 / 35 / 37, +1 108 50.46% 54.69%
16 45 8 / 19 / 13, -11 40 36.25% 1.78%
16 46 14 / 16 / 24, -2 54 48.15% 36.01%
16 47 8 / 10 / 8, -2 26 46.15% 32.38%
16 48 3 / 4 / 1, -1 8 43.75% 36.33%
16 49 5 / 7 / 4, -2 16 43.75% 29.05%
16 50 1 / 0 / 1, +1 2 75.00% 75.00%
16 51 3 / 2 / 1, +1 6 58.33% 65.63%
16 52 1 / 2 / 1, -1 4 37.50% 31.25%
17 35 200 / 187 / 199, +13 586 51.11% 74.53%
17 36 192 / 221 / 208, -29 621 47.67% 7.70%
17 37 202 / 217 / 173, -15 592 48.73% 23.21%
17 38 182 / 156 / 166, +26 504 52.58% 92.11%
17 39 180 / 208 / 178, -28 566 47.53% 7.78%
17 40 101 / 128 / 113, -27 342 46.05% 3.74%
17 41 96 / 111 / 121, -15 328 47.71% 14.91%
17 42 58 / 61 / 69, -3 188 49.20% 39.22%
17 43 48 / 51 / 39, -3 138 48.91% 38.22%
17 44 39 / 53 / 44, -14 136 44.85% 7.31%
17 45 9 / 20 / 17, -11 46 38.04% 2.14%
17 46 16 / 19 / 9, -3 44 46.59% 30.89%
17 47 10 / 20 / 14, -10 44 38.64% 3.54%
17 48 10 / 5 / 5, +5 20 62.50% 89.49%
17 49 2 / 2 / 0, +0 4 50.00% 50.00%
17 50 3 / 2 / 3, +1 8 56.25% 65.63%
17 51 0 / 1 / 1, -1 2 25.00% 25.00%
17 52 0 / 2 / 2, -2 4 25.00% 12.50%
17 53 0 / 1 / 1, -1 2 25.00% 25.00%
17 54 1 / 1 / 2, +0 4 50.00% 50.00%
17 55 2 / 3 / 3, -1 8 43.75% 34.38%
18 35 174 / 206 / 194, -32 574 47.21% 5.05%
18 36 178 / 198 / 218, -20 594 48.32% 15.15%
18 37 171 / 199 / 190, -28 560 47.50% 7.30%
18 38 175 / 153 / 144, +22 472 52.33% 88.74%
18 39 160 / 158 / 154, +2 472 50.21% 54.46%
18 40 133 / 131 / 116, +2 380 50.26% 54.89%
18 41 99 / 103 / 78, -4 280 49.29% 38.95%
18 42 90 / 85 / 97, +5 272 50.92% 64.68%
18 43 30 / 52 / 58, -22 140 42.14% 0.76%
18 44 41 / 39 / 46, +2 126 50.79% 58.78%
18 45 21 / 28 / 17, -7 66 44.70% 16.11%
18 46 12 / 19 / 25, -7 56 43.75% 10.77%
18 47 13 / 21 / 10, -8 44 40.91% 8.77%
18 48 12 / 11 / 11, +1 34 51.47% 58.06%
18 49 7 / 8 / 5, -1 20 47.50% 40.18%
18 50 3 / 4 / 3, -1 10 45.00% 36.33%
18 51 1 / 2 / 1, -1 4 37.50% 31.25%
18 52 5 / 2 / 1, +3 8 68.75% 85.55%
18 54 1 / 2 / 1, -1 4 37.50% 31.25%
18 55 1 / 5 / 0, -4 6 16.67% 6.25%
19 35 173 / 171 / 180, +2 524 50.19% 54.29%
19 36 220 / 192 / 218, +28 630 52.22% 91.59%
19 37 214 / 212 / 248, +2 674 50.15% 53.85%
19 38 189 / 176 / 185, +13 550 51.18% 75.16%
19 39 152 / 116 / 146, +36 414 54.35% 98.60%
19 40 134 / 170 / 148, -36 452 46.02% 1.95%
19 41 129 / 125 / 152, +4 406 50.49% 59.89%
19 42 111 / 96 / 113, +15 320 52.34% 85.09%
19 43 84 / 82 / 80, +2 246 50.41% 56.15%
19 44 44 / 55 / 49, -11 148 46.28% 13.56%
19 45 29 / 34 / 29, -5 92 47.28% 26.62%
19 46 13 / 20 / 25, -7 58 43.97% 11.47%
19 47 10 / 15 / 13, -5 38 43.42% 16.35%
19 48 12 / 23 / 9, -11 44 37.50% 3.26%
19 49 11 / 4 / 9, +7 24 64.58% 96.16%
19 50 2 / 3 / 1, -1 6 41.67% 34.38%
19 51 0 / 0 / 4, +0 4 50.00% 50.00%
19 52 3 / 3 / 4, +0 10 50.00% 50.00%
19 53 1 / 1 / 2, +0 4 50.00% 50.00%
19 55 4 / 1 / 1, +3 6 75.00% 89.06%
20 35 142 / 145 / 165, -3 452 49.67% 42.99%
20 36 185 / 200 / 211, -15 596 48.74% 22.26%
20 37 189 / 174 / 189, +15 552 51.36% 78.41%
20 38 220 / 199 / 229, +21 648 51.62% 84.72%
20 39 192 / 231 / 241, -39 664 47.06% 2.90%
20 40 185 / 199 / 182, -14 566 48.76% 23.78%
20 41 173 / 137 / 176, +36 486 53.70% 97.95%
20 42 113 / 125 / 146, -12 384 48.44% 21.88%
20 43 102 / 110 / 100, -8 312 48.72% 29.18%
20 44 101 / 104 / 85, -3 290 49.48% 41.72%
20 45 66 / 52 / 64, +14 182 53.85% 90.04%
20 46 39 / 41 / 48, -2 128 49.22% 41.22%
20 47 14 / 23 / 19, -9 56 41.96% 7.17%
20 48 19 / 21 / 14, -2 54 48.15% 37.76%
20 49 6 / 11 / 9, -5 26 40.38% 11.89%
20 50 10 / 11 / 11, -1 32 48.44% 41.59%
20 51 5 / 6 / 7, -1 18 47.22% 38.72%
20 52 4 / 1 / 1, +3 6 75.00% 89.06%
20 53 6 / 3 / 5, +3 14 60.71% 82.81%
20 54 0 / 5 / 3, -5 8 18.75% 1.56%
20 55 2 / 2 / 0, +0 4 50.00% 50.00%
Top Parameters: By LOS
[1] par1 19, par2 39, score 54.35%, LOS 98.601%, Games 414, NetWins +36
[2] par1 20, par2 41, score 53.70%, LOS 97.948%, Games 486, NetWins +36
[3] par1 17, par2 38, score 52.58%, LOS 92.109%, Games 504, NetWins +26
[4] par1 15, par2 37, score 52.09%, LOS 90.462%, Games 646, NetWins +27
[5] par1 16, par2 35, score 51.90%, LOS 87.259%, Games 606, NetWins +23http://www.mediafire.com/download/pxr6l ... eader-2.7z