8000 minigo/cc/mcts_node.cc at eval_server · WayneFd/minigo · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
438 lines (380 loc) · 12.8 KB

mcts_node.cc

File metadata and controls

438 lines (380 loc) · 12.8 KB
if (depth > depth_max) {
depth_max = depth;
}
for (const auto& child : node.children) {
traverse(*child.second.get(), depth + 1);
}
};
traverse(*this, 0);
return absl::StrFormat(
"%d nodes, %d leaf, %.1f average children\n"
"%.1f average depth, %d max depth\n",
num_nodes, num_leaf_nodes,
1.0f * num_nodes / std::max(1L, num_nodes - num_leaf_nodes),
1.0f * depth_sum / num_nodes, depth_max);
}
} // namespace minigo
0