MCPcopy Create free account

hub / github.com/LeapLabTHU/Absolute-Zero-Reasoner / functions

Functions861 in github.com/LeapLabTHU/Absolute-Zero-Reasoner

↓ 3 callersFunctionget_mbpp
Get sanitized MBPP from Google's Github repo.
evaluation/code_eval/coding/evalplus/evalplus/data/mbpp.py:161
↓ 3 callersFunctionget_metrics
( scenario: Scenario, args, benchmark: list[ CodeGenerationProblem | CodeExecutionProblem
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/scenario_router.py:180
↓ 3 callersFunctionget_problems
(dataset: str)
evaluation/code_eval/coding/evalplus/tools/tsr/utils.py:15
↓ 3 callersFunctionget_type_counts_reward
Calculate the type counts reward for a Python code snippet. Args: answer: A string containing the answer type_counters: A di
absolute_zero_reasoner/rewards/code_reward.py:504
↓ 3 callersMethodget_type_statistics
Get statistics about the types and their counts.
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:542
↓ 3 callersMethodinsert_output
(self, output_list: list[str], pred_list: list[str])
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/benchmarks/code_execution.py:26
↓ 3 callersFunctionlast_boxed_only_string
(string: str)
absolute_zero_reasoner/rewards/custom_evaluate.py:223
↓ 3 callersFunctionload_code_generation_dataset
(release_version="release_v1", start_date=None, end_date=None)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/benchmarks/code_generation.py:124
↓ 3 callersFunctionmain
()
evaluation/code_eval/coding/evalplus/evalplus/sanitize.py:246
↓ 3 callersFunctionmake_cache
(gzip_url, cache_path)
evaluation/code_eval/coding/evalplus/evalplus/data/utils.py:27
↓ 3 callersFunctionmake_raw_chat_prompt
( task_prompt: str, instruction_prefix: str, response_prefix: str, tokenizer, )
evaluation/code_eval/coding/evalplus/evalplus/provider/utility.py:26
↓ 3 callersFunctionparallel_greedy_cover
( info_dict: Optional[Dict[str, Dict[str, List[Any]]]], exclude_model: str, type: str, **kwarg
evaluation/code_eval/coding/evalplus/tools/tsr/minimization.py:72
↓ 3 callersFunctionparse_code_input_output
Parse the input and output of a code snippet. Args: input_str: A string containing the code snippet parse_input: Whether to
absolute_zero_reasoner/rewards/code_reward.py:291
↓ 3 callersFunctionparse_digits
(num)
evaluation/math_eval/eval/grader.py:39
↓ 3 callersFunctionparse_ground_truth
(example: Dict[str, Any], data_name)
evaluation/math_eval/eval/parser.py:536
↓ 3 callersFunctionparse_latex_answer
(sample)
evaluation/math_eval/eval/math_utils.py:116
↓ 3 callersFunctionpoly
(xs, x)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v014.py:8
↓ 3 callersMethodrun
(self, config)
absolute_zero_reasoner/main_azr_ppo.py:67
↓ 3 callersFunctionsort_checkpoints
Sort checkpoints numerically with final checkpoint at the end
evaluation/math_eval/eval/sh/collect_results.py:439
↓ 3 callersFunctiontable_print
(table_name: str, kv: Dict)
evaluation/code_eval/coding/evalplus/evalplus/evalperf.py:111
↓ 3 callersFunctiontrusted_check_exec
Check trusted_exec success.
evaluation/code_eval/coding/evalplus/evalplus/gen/util/__init__.py:33
↓ 3 callersFunctionwrite_jsonl
Writes an iterable of dictionaries to jsonl
evaluation/code_eval/coding/evalplus/evalplus/data/utils.py:48
↓ 2 callersFunctionEVAL_K_INPUT_PREDICTION_TEMPLATE
(code: str, gold_output: str, k_agent_inputs: List[str], repr_output: bool = False)
absolute_zero_reasoner/utils/code_utils/templates.py:40
↓ 2 callersFunctionEVAL_K_OUTPUT_PREDICTION_TEMPLATE
(code: str, gold_output: str, k_agent_outputs: List[str], repr_output: bool = False)
absolute_zero_reasoner/utils/code_utils/templates.py:55
↓ 2 callersMethod_download
(self, use_origin_parquet=False)
absolute_zero_reasoner/utils/dataset/rl_dataset.py:103
↓ 2 callersFunction_is_frac
(expr: str)
absolute_zero_reasoner/rewards/math_utils.py:216
↓ 2 callersMethod_load_checkpoint
(self)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:2039
↓ 2 callersFunction_normalize
Normalize answer expressions.
absolute_zero_reasoner/rewards/math_utils.py:256
↓ 2 callersFunction_parse
(s)
evaluation/math_eval/eval/grader.py:277
↓ 2 callersMethod_read_files_and_tokenize
(self)
absolute_zero_reasoner/utils/dataset/rl_dataset.py:109
↓ 2 callersFunction_ready_human_eval_plus_path
(mini=False, noextreme=False, version="default")
evaluation/code_eval/coding/evalplus/evalplus/data/humaneval.py:18
↓ 2 callersFunction_strip_properly_formatted_commas
(expr: str)
absolute_zero_reasoner/rewards/math_utils.py:245
↓ 2 callersFunctionadaptive_seg1d
(arr1d, base_thresh=0.10)
evaluation/code_eval/coding/evalplus/evalplus/perf/select_pe_tasks.py:86
↓ 2 callersFunctionanalyze_resfile
(resfile)
evaluation/code_eval/coding/evalplus/tools/render.py:16
↓ 2 callersFunctionaplus
(s)
evaluation/code_eval/coding/evalplus/tools/render.py:88
↓ 2 callersMethodbatch_apply
(self, batch_code)
evaluation/math_eval/eval/python_executor.py:150
↓ 2 callersFunctionbuild_prompt_benchmark
( args, )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/scenario_router.py:40
↓ 2 callersFunctioncall_method
(method, inputs)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:121
↓ 2 callersFunctioncheck_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/compute_code_generation_metrics.py:29
↓ 2 callersFunctioncheck_id
(data, task_id)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v015.py:4
↓ 2 callersFunctioncheck_unique
(grid)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v011.py:30
↓ 2 callersFunctionchoice_answer_clean
(pred: str)
evaluation/math_eval/eval/grader.py:25
↓ 2 callersFunctionchoice_answer_clean
(pred: str)
evaluation/math_eval/eval/parser.py:366
↓ 2 callersFunctionclean
(file_path: str)
evaluation/code_eval/coding/evalplus/tools/tsr/utils.py:28
↓ 2 callersMethodcleanup
Explicitly clean up the process pool
absolute_zero_reasoner/utils/code_utils/python_executor.py:124
↓ 2 callersFunctioncollect_coverage_info
(coverage_dir: str, dataset: str)
evaluation/code_eval/coding/evalplus/tools/tsr/coverage_init.py:76
↓ 2 callersFunctioncollect_mutation_info
( eval_path: str, dataset: str )
evaluation/code_eval/coding/evalplus/tools/tsr/mutation_init.py:82
↓ 2 callersFunctioncollect_sample_info
(sample_dir: str, sample_eval_dir: str, dataset: str)
evaluation/code_eval/coding/evalplus/tools/tsr/sample_init.py:10
↓ 2 callersFunctioncompile_code
(code: str, timeout: int)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:156
↓ 2 callersFunctioncompleteness_check
(name, plus)
evaluation/code_eval/coding/evalplus/evalplus/data/utils.py:152
↓ 2 callersFunctioncompute_data_metrics
(batch, use_critic=True, tokenizer=None)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:51
↓ 2 callersFunctioncompute_metrics_from_results
(results, k_list=[1, 5])
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/pass_k_utils.py:26
↓ 2 callersFunctionconcurrent_call
(n, callback, /, *args, **kwargs)
evaluation/code_eval/coding/evalplus/evalplus/provider/utility.py:61
↓ 2 callersFunctioncontains_banned_imports
Check if code imports any banned modules using AST parsing.
absolute_zero_reasoner/utils/code_utils/checks.py:20
↓ 2 callersFunctioncontains_chinese
(string)
evaluation/math_eval/eval/sh/collect_results.py:76
↓ 2 callersFunctioncontains_number
(s)
evaluation/math_eval/eval/math_utils.py:241
↓ 2 callersFunctionconvert_line_to_decimals
(line: str)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:178
↓ 2 callersFunctioncv
We use Coefficient of Variation (CV) to as the variance of PE. CV = 100 * standard deviation / mean
evaluation/code_eval/coding/evalplus/evalplus/perf/select_pe_tasks.py:18
↓ 2 callersFunctiondeduplicate
Deduplicate solutions
evaluation/code_eval/coding/evalplus/tools/collect_valid_solutions.py:108
↓ 2 callersFunctionensure_dir
(path: str, is_file=True)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/path_utils.py:7
↓ 2 callersMethodeval_output_prediction
(self, code: str, gold_output: str, agent_output: str, imports: List[str] = [])
absolute_zero_reasoner/utils/code_utils/python_executor.py:191
↓ 2 callersFunctionevaluate
(data_name, prompt_type, samples: list=None, file_path: str=None, max_num_samples=None, execute=False)
evaluation/math_eval/eval/evaluate.py:53
↓ 2 callersFunctionevolve
(src_file: str, tgt_file: str, fix: Callable)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_utils.py:9
↓ 2 callersFunctionevolve
(src_file, tgt_file)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v017.py:39
↓ 2 callersFunctionevolve
(src_file, tgt_file)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v018.py:57
↓ 2 callersFunctionexecute_for_runtime
( code: str, inputs: List, warmups: List, entry_point: str )
evaluation/code_eval/coding/evalplus/tools/_experimental/evaluate_runtime.py:19
↓ 2 callersFunctionextract_answer
(passage: str)
absolute_zero_reasoner/rewards/math_utils.py:476
↓ 2 callersFunctionextract_program
(text:str=None, trajectory:list=None, last_only=False)
evaluation/math_eval/eval/trajectory.py:69
↓ 2 callersMethodfetch_ingredient
(self, seed_input)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:374
↓ 2 callersMethodfetch_ingredient
(self, seed_input)
evaluation/code_eval/coding/evalplus/evalplus/gen/type_mut.py:275
↓ 2 callersFunctionfix
(data)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v015.py:22
↓ 2 callersFunctionfix
(data)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v012.py:5
↓ 2 callersFunctionfix
(data)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v013.py:5
↓ 2 callersFunctionfix
(data)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v016.py:20
↓ 2 callersFunctionfix
(data)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v014.py:37
↓ 2 callersFunctionformat_prompt_execution_base
( question: CodeExecutionProblem, LanguageModelStyle: LMStyle, cot: bool )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_execution.py:76
↓ 2 callersFunctionformat_prompt_generation
( question: CodeGenerationProblem, LanguageModelStyle: LMStyle )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_generation.py:221
↓ 2 callersMethodgenerate
(self)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:473
↓ 2 callersFunctiongenerate_completions
(model, tokenizer, prompts, batch_size=1, stop_id_sequences=None, add_special_tokens=True, disable_tqdm=False,
evaluation/math_eval/eval/model_utils.py:78
↓ 2 callersFunctionget_avg_ref_profile
(idx, check_order=True)
evaluation/code_eval/coding/evalplus/evalplus/evalperf.py:174
↓ 2 callersFunctionget_dataset_metadata
(name: str, version: str, mini: bool, noextreme: bool = False)
evaluation/code_eval/coding/evalplus/evalplus/data/utils.py:14
↓ 2 callersFunctionget_evalperf_data
()
evaluation/code_eval/coding/evalplus/evalplus/data/__init__.py:10
↓ 2 callersFunctionget_example_prompt
(example)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_generation.py:194
↓ 2 callersFunctionget_failed_tests
(stat, details, inputs)
evaluation/code_eval/coding/evalplus/evalplus/evaluate.py:265
↓ 2 callersFunctionget_first_indent_size
(source, body_char_start_idx)
evaluation/code_eval/coding/evalplus/evalplus/perf/sampling.py:24
↓ 2 callersFunctionget_function
(compiled_sol, fn_name: str)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:148
↓ 2 callersFunctionget_gt_reward
(solution_str: str, ground_truth: str, extraction_type: str, metric: str, math_metric: str = 'deepscaler')
evaluation/math_eval/eval/custom_evaluate.py:49
↓ 2 callersFunctionget_human_eval
Get HumanEval from OpenAI's github repo and return as a list of parsed dicts. Returns: List[Dict[str, str]]: List of dicts with keys "pro
evaluation/code_eval/coding/evalplus/evalplus/data/humaneval.py:69
↓ 2 callersFunctionget_output_path
(model_repr:str, args)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/path_utils.py:24
↓ 2 callersFunctionget_stripped_lines
(val: str)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:186
↓ 2 callersFunctionget_wizard_question_template_answer
(question: str, code, result, metadata)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/self_repair.py:118
↓ 2 callersMethodinsert_input
(self, new_input: TestInput)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:119
↓ 2 callersFunctionis_digit
(num)
evaluation/math_eval/eval/grader.py:55
↓ 2 callersMethodis_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/vllm.py:49
↓ 2 callersMethodis_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/hf.py:57
↓ 2 callersMethodis_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/gptqmodel.py:59
↓ 2 callersFunctionis_equ_num_equal
(equation, number)
evaluation/math_eval/eval/math_utils.py:134
↓ 2 callersFunctionis_expr_equal
(ans_p, ans_l, is_strict=False)
evaluation/math_eval/eval/math_utils.py:133
↓ 2 callersFunctionis_multi_choice
(answer)
evaluation/math_eval/eval/math_eval.py:178
↓ 2 callersFunctionjaccard_similarity
(sentence1, sentence2)
evaluation/math_eval/eval/sh/collect_results.py:84
← previousnext →101–200 of 861, ranked by callers