å種å°æ£ã½ããéã§ã®æ師ãã¼ã¿ã®å¤æãã¼ã«ã®éçº
ããã£ã¨è¯ãã³ã³ãã¼ã¿ãä½ã£ã¦Qhapaqã®ä¾µç¥ãé»æ¢ãããã
ãã®ã¾ã¾ã ã¨ãã¼ã¿ã®çµã§Aperyã¨YaneuraOuãå¼·ãããå¤æå¨ãç¥ãã¦KizunaAy converterï¼ããºãã¢ã£ã³ã³ãã¼ã¿ï¼ãæ¥çæ¨æºã«ãªã£ã¦ãã¾ãã¾ããå©ãã¦ï¼
Â
Aperyã¨ããããçã®éã§æªã ã«æ師ãã¼ã¿ãããåãã§ããªãï¼å人çãªéçºã¯ããã¦ããã®ããç¥ããªãã§ãããåºæ¬æ©è½ã¨ãã¦å®è£ ããã¦ããªãï¼ã®ãåãã¦ãå¤æãã¼ã«ãéçºãã¦ã¿ã¾ããã
Â
Aperyã¨ããããçã®éã§ã¯æ£èã®Huffman符å·åã®ã«ã¼ã«ãéã£ããããã¼ã¿ã®å½¢å¼ãå¾®å¦ã«éã£ããï¼ä¾ãåã¡è² ãã«é¢ããå¤æ°ã®å¤ã®ã¨ãæ¹ãææ°ã®æ å ±ãä¿æãããetcï¼ãããã¨ãä»å¾ãããããä»æ§å¤æ´ããããããã¨ãåãã¦ãä¸æ¦sfenãã¼ã¹ã®ããã¹ããã¡ã¤ã«ã«ãããã¨ã«ãã¾ããã
Â
ä¾ï¼
sfen 6s1l/3p1sk2/5p1p1/p2+Bp1p1p/2p4N1/P5LPP/3GPPP2/1+p5K1/L4+r1NL b R2N2Pb3g2sp 0
move 6d5d
score -1917
ply 110
result -1
e
sfen 6s1l/3p1sk2/5p1p1/p2+Bp1p1p/2p4N1/P5LPP/3GPPP2/1+p5K1/L+r3S1NL w R2N2Pb3gsp 0
move 8i4i
score 2717
ply 109
result 1
e
ï¼ä»¥ä¸ãç¶ãï¼
Â
Â
sfen hoge ...... å±é¢ãhogeã«ãã
move hoge ...... ãã®å±é¢ã§ã®bestmoveãæå®ãã
score hoge ...... ãã®å±é¢ã§ã®è©ä¾¡å¤
ply hoge ..... ãã®å±é¢ã§ã®ææ°ï¼Aperyã§ã¯ç¡è¦ãããï¼
result hoge ..... æçµçãªçµæï¼2017.11ã®ããããçãæ¨æºã¨ãã¦ããæçªå´ãåã£ã¦ããã°1ãè² ãã¦ããã°-1ãå¼ãåããªã0ï¼
e ...... æ師ãã¼ã¿ä¸å±é¢åãçµäºãã
Â
ãaperyå´ã§ã®å©ç¨ã
conv_teacher_sfen teacher output
teacherã¨ããååã®Aperyç¨ã®æ師ãã¼ã¿ãoutputã¨ããååã®sfenãã¼ã¹ã®ããã¹ãã«å¤æãã¾ã
conv_teacher_bin sfenfile output
sfenfileã¨ããååã®sfenãã¼ã¹ã®ããã¹ããAperyç¨ã®æ師ãã¼ã¿ã«å¤æãã¾ã
Â
ãããããçå´ã§ã®å©ç¨ã
learn convert_plain output_file_name output input1 input2 ...
input1,input2 ...ã¨ããååã®ããããçç¨ã®æ師ãã¼ã¿ãoutputã¨ããååã®sfenãã¼ã¹ã®ããã¹ãã«å¤æãã¾ã
 learn convert_bin output_file_name output input1 input2 ...
input1,input2 ...ã¨ããååã®sfenãã¼ã¹ã®ããã¹ããã¡ã¤ã«ãoutputã¨ããååã®ããããçç¨ã®æ師ãã¼ã¿ã«å¤æãã¾ãã
Â
ãä¾ï¼ããããçã®depth 10ã®æ師ãã¼ã¿ãaperyã«é£ããããã
æ師ãã¼ã¿ãDLããï¼ãã¡ã¤ã«åãshuffled_sfen.binã¨ããï¼
./YaneuraOu-by-gcc
learn convert_plain output_file_name yane_sfen.txt shuffled_sfen.bin
Â
./apery
conv_teacher_bin yane_sfen.txt shuffled_sfen_apery.bin
use_teacher shuffled_sfen_apery.bin 8
Â
注ï¼use_teacherã®ä»æ§ã¯aperyã®ããã¥ã¡ã³ããªã©ãåç §
Â
ããã®ä»æ³¨æã
ãã®å½¢å¼ã§ããããçã®æ師ãã¼ã¿ãå¤æããå ´åããã¡ã¤ã«ãµã¤ãºã¯ç´ï¼åã«ãªãããã§ãããããªãã«é¬±é¶ããã§ããã®ãªã®ãªææ ¢ã§ããã¬ãã«ããªã¨ãæãã¾ããã¹ãã¬ã¼ã¸å§è¿«ãæ°ã«ãªããªãããã¡ã¤ã«ãåå²ãã¦ãå¤æã¨åé¤ãç¹°ãè¿ãã¦ãè¯ãã§ãããã
Â
Aperyã¨ããããçã®Huffman符å·ã®ä»æ§ã®å·®ãèªã¿è¾¼ã¿ãç´æ¥å¤æããã»ããå¹çã¯è¯ãã®ã§ããããã©ãä»å¾ã両è ãåãä»æ§ã§æ師ãã¼ã¿ãä½ãç¶ãããã¯æªãããã¾ãããã°åããé¢åã ã£ãã®ã§ãã®å½¢å¼ã§ãªãªã¼ã¹ï¼ãã¨ãããã«ãªã¯ï¼ãã¾ããéããå§ãã...ã§ããã