Skip to content

Instantly share code, notes, and snippets.

@ohga
Created May 12, 2018 03:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohga/48fd7c74cdcfb9a1e5213114ec6a9c61 to your computer and use it in GitHub Desktop.
Save ohga/48fd7c74cdcfb9a1e5213114ec6a9c61 to your computer and use it in GitHub Desktop.

駒でのキメラ

基本は test evalmerge と同じです。パラメータに feature [tag] を指定できるようになっています。
[tag] には以下の数字が指定できます。  

  • 100 : 駒台の歩
  • 101 : 駒台の香
  • 102 : 駒台の桂
  • 103 : 駒台の銀
  • 104 : 駒台の金
  • 105 : 駒台の角
  • 106 : 駒台の飛
  • 110 : 盤上の歩
  • 111 : 盤上の香
  • 112 : 盤上の桂
  • 113 : 盤上の銀
  • 114 : 盤上の金(すべての成金を含む)
  • 115 : 盤上の角(馬を含む)
  • 116 : 盤上の飛(龍を含む)
  • 120 : 100 + 110
  • 121 : 101 + 111
  • 122 : 102 + 112
  • 123 : 103 + 113
  • 124 : 104 + 114
  • 125 : 105 + 115
  • 126 : 106 + 116

すこし特殊(?)な例

以下はqzilla9から歩の評価値を抜き出したqzilla9_fuを作る例です。
godwhale_child-evalmerge.exeのあるディレクトリにqzilla9があれば動くハズです。

ココqzilla9から歩が絡む評価値が抜き出され、それ以外がゼロになっている事を確認できると思います。

C:\work> godwhale_child-evalmerge.exe SkipLoadingEval true , test evalmerge epoch0 qzilla9 qzilla9_fu 0 feature 120 , quit
Options[SkipLoadingEval] = true
info string read file error , file = eval/KK_synthesized.bin , but SkipLoadingEval == true , so ignore this.
info string read file error , file = eval/KKP_synthesized.bin , but SkipLoadingEval == true , so ignore this.
info string read file error , file = eval/KPP_synthesized.bin , but SkipLoadingEval == true , so ignore this.
info string Eval Check Sum = 0 , Eval File = rezero epoch0
eval merge KPPT
dir1    : epoch0
dir2    : qzilla9
OutDir  : qzilla9_fu
mode : interpolation , percent = 0
merge features = 120
   mix the piece pawn
info string read file error , file = epoch0/KK_synthesized.bin , but SkipLoadingEval == true , so ignore this.
info string read file error , file = epoch0/KKP_synthesized.bin , but SkipLoadingEval == true , so ignore this.
info string read file error , file = epoch0/KPP_synthesized.bin , but SkipLoadingEval == true , so ignore this.
..done

C:\work>

補足説明をすると、SkipLoadingEval trueの指定でディレクトリが無くてもrezero epoch0があるものとして動きます。 指定された駒以外の評価値は、先に指定された評価関数(この場合はepoch0)の値が使用されるので、[percent]にはゼロを指定して、後に指定された評価関数(この場合はqzilla9)の評価値が100%でqzilla9_fuに作成されます。
抜き出すとかではなく、合成する場合は、細かく[PERCENT]を指定すると良いかもしれません。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment