MCPcopy Create free account
hub / github.com/MARIO-Math-Reasoning/Super_MARIO / value_preprocess

Method value_preprocess

mcts_math/solver.py:176–184  ·  view source on GitHub ↗
(self, solvers: List[BaseTree])

Source from the content-addressed store, hash-verified

174 return updated_solvers
175
176 def value_preprocess(self, solvers: List[BaseTree]) -> Tuple[List[str], List[int]]:
177 prompts = []
178 prompts_span = [0]
179
180 for solver in solvers:
181 solver_prompts = solver.create_prompt(is_value_only=True)
182 prompts.extend(solver_prompts)
183 prompts_span.append(prompts_span[-1] + len(solver_prompts))
184 return prompts, prompts_span
185
186 def value_postprocess(
187 self,

Callers 1

solveMethod · 0.95

Calls 1

create_promptMethod · 0.45

Tested by

no test coverage detected