shaurya416

Results issues of shaurya416

`rouge/io.py:107-108` ```python for target_filename, prediction_filename in zip( sorted(target_filenames), sorted(prediction_filenames)): ``` The two globs are sorted separately and zipped by position. The only guard is `io.py:51-57`, which checks that the two...

`eval/metrics.py:73-78` (`heading_entity_recall`) and the byte-identical block at `eval/metrics.py:100-105` (`article_entity_recall`), branch `NAACL-2024-code-backup`: ```python def heading_entity_recall(golden_entities=None, predicted_entities=None, golden_headings=None, predicted_headings=None): ... g = set(golden_entities) p = set(predicted_entities) if len(g) == 0: return 1...

`getting-started/finetuning/vision/evaluate.py:378-392` and `:546-559` (fabrication), consumed at `:410-416,429` (drop) Two exception handlers replace a sample's real ground truth with an empty dict on failure: ```python # process_single_sample() outer except (evaluate.py:378-392) except...

extract_choice()'s unguarded thefuzz.process.extractOne(gen, choice_list) fallback (no score_cutoff, no score check) turns any chat reply that doesn't match its four letter-extraction regexes -- empty output, a refusal, off-topic text, or truncated/failed...

inactive

`evals/elsuite/modelgraded/classify.py:64-66`: ```python for k, v in self.mg.input_outputs.items(): if v in test_sample: # test_sample already has completion, skip. continue ``` `evals/registry/modelgraded/security.yaml:14-15` declares `input_outputs: {input: completion}`, and all 400 rows of `evals/registry/data/naughty_strings/security.jsonl`...

`berkeley-function-call-leaderboard/bfcl_eval/model_handler/utils.py:333-334` (HEAD `6ea5797`, same as current `main`): ```python elif isinstance(value, ast.UnaryOp): output = -value.operand.value ``` This branch never reads `value.op`. Every `ast.UnaryOp` (`+x`, `-x`, `~x`, `not x`) is decoded as...

The unit-stripping loop in `_normalize` (`openrlhf/utils/math_utils.py:220-238`, function defined at `:205`) runs on the reference and the prediction independently. It never checks that the two units match. Its output is compared...

`agent/streaming_inference.py:373-401`, called from `math_equal_process` (`:454-455`) with no override, which is what `evaluate()`'s `ProcessPool.map` (`:599-604`) runs for every graded row: ```python def math_equal( prediction: Union[bool, float, str], reference: Union[float, str], include_percentage:...

Stale

`opencompass/openicl/icl_evaluator/icl_judge_evaluator.py:19-20` (`JudgeEvaluator.score`), duplicated at `:79-80` (`RMBEvaluator.score`, in `calculate_pair_accuracy`/`calculate_bon_accuracy`'s caller): ```python choice = prediction.split("\"Choice\": \"Model ")[-1][0] if len( prediction) != 0 else None gold_winner = reference.get('winner', '') ... if choice ==...

Line numbers below refer to `rllm-org/rllm@main` (3b40c37cf6a262cf4d28cc987ebe4f4cf797956c): `rllm/rewards/math_reward.py:71-86` (ground-truth processing and grading loop inside `RewardMathFn.__call__`), and in `rllm/rewards/math_utils/utils.py`, `grade_answer_sympy` (496-530), `grade_answer_mathd` (533-540) and `grade_answer_verl` (553-561). The same code is at...