Skip to content

Commit

Permalink
Fix perspective gtp config param for ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
lightvector committed Jun 20, 2019
1 parent 57ebc39 commit 816048b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/gtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,6 @@ struct GTPEngine {
///But now we also offer the proper LCB that KataGo actually uses.
double utilityLcb = data.lcb;
double scoreMean = data.scoreMean;
//Analysis displays winrate from bot's perspective
if(perspective == P_BLACK || (perspective != P_BLACK && perspective != P_WHITE && pla == P_BLACK)) {
winrate = 1.0-winrate;
lcb = 1.0 - lcb;
Expand Down Expand Up @@ -603,7 +602,7 @@ struct GTPEngine {
for(int y = 0; y<board.y_size; y++) {
for(int x = 0; x<board.x_size; x++) {
int pos = NNPos::xyToPos(x,y,nnXLen);
if(pla == P_BLACK)
if(perspective == P_BLACK || (perspective != P_BLACK && perspective != P_WHITE && pla == P_BLACK))
cout << " " << -ownership[pos];
else
cout << " " << ownership[pos];
Expand Down

0 comments on commit 816048b

Please sign in to comment.