| 202 | CRoots::~CRoots(){} |
| 203 | |
| 204 | void CRoots::prepare(float root_exploration_fraction, const std::vector<std::vector<float>> &noises, const std::vector<float> &value_prefixs, const std::vector<std::vector<float>> &policies){ |
| 205 | for(int i = 0; i < this->root_num; ++i){ |
| 206 | this->roots[i].expand(0, 0, i, value_prefixs[i], policies[i]); |
| 207 | this->roots[i].add_exploration_noise(root_exploration_fraction, noises[i]); |
| 208 | |
| 209 | this->roots[i].visit_count += 1; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | void CRoots::prepare_no_noise(const std::vector<float> &value_prefixs, const std::vector<std::vector<float>> &policies){ |
| 214 | for(int i = 0; i < this->root_num; ++i){ |
no test coverage detected