MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / get_trajectory

Method get_trajectory

core/ctree/cnode.cpp:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 std::vector<int> CNode::get_trajectory(){
149 std::vector<int> traj;
150
151 CNode* node = this;
152 int best_action = node->best_action;
153 while(best_action >= 0){
154 traj.push_back(best_action);
155
156 node = node->get_child(best_action);
157 best_action = node->best_action;
158 }
159 return traj;
160 }
161
162 std::vector<int> CNode::get_children_distribution(){
163 std::vector<int> distribution;

Callers 1

get_trajectoriesMethod · 0.80

Calls 1

get_childMethod · 0.80

Tested by

no test coverage detected