MCPcopy Create free account

hub / github.com/InternScience/SciReason / functions

Functions3,711 in github.com/InternScience/SciReason

↓ 3 callersFunctioncanonicalize_molecule_smiles
(smiles, return_none_for_error=True, skip_mol=False, sort_things=True, isomeric=True, kekulization=True, allow
opencompass/datasets/LLM4Chem/utils/smiles_canonicalization.py:64
↓ 3 callersMethodchat
(self, message: str)
opencompass/lagent/agents/react.py:95
↓ 3 callersMethodcompute_exact
(a_gold, a_pred)
opencompass/datasets/lawbench/utils/rc_f1.py:65
↓ 3 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
opencompass/datasets/lawbench/utils/modules/tokenization.py:26
↓ 3 callersMethoddo_predictions_postprocess
(self, model_output, answer_lenth=None)
opencompass/datasets/kaoshi.py:49
↓ 3 callersMethoddo_predictions_postprocess
(self, model_output, answer_lenth=None)
opencompass/datasets/GaokaoBench.py:44
↓ 3 callersMethodestimator
Calculates 1 - comb(n - c, k) / comb(n, k).
opencompass/datasets/humaneval_multi.py:133
↓ 3 callersFunctionevaluate_response_vs_answer
(response, answer, question_type, rule_id, idx)
opencompass/datasets/korbench/korbench_utils.py:563
↓ 3 callersFunctionevaluate_response_vs_answer
(response, answer, question_type, rule_id, idx)
opencompass/datasets/supergpqa/supergpqa_utils.py:563
↓ 3 callersFunctionevaluate_responses
(data, mode, base_path=None)
opencompass/datasets/korbench/korbench_utils.py:662
↓ 3 callersFunctionextract_boxed_answer
(pred_str, strip_double_curly_brace=False)
opencompass/datasets/math.py:54
↓ 3 callersFunctionextract_code
(text)
opencompass/lagent/actions/ipython_interpreter.py:255
↓ 3 callersFunctionextract_inner_text_from_brackets
(text)
opencompass/datasets/korbench/korbench_utils.py:358
↓ 3 callersFunctionextract_inner_text_from_brackets
(text)
opencompass/datasets/supergpqa/supergpqa_utils.py:358
↓ 3 callersFunctionextract_last_line
(string)
opencompass/datasets/medbench/post_process.py:8
↓ 3 callersFunctionextract_option_content
(text, options_content=None)
opencompass/datasets/supergpqa/supergpqa_eval.py:60
↓ 3 callersFunctionextract_option_labels
(text, options='ABCDEFGHIJ')
opencompass/datasets/supergpqa/supergpqa_eval.py:19
↓ 3 callersFunctionfind_file
Find the first available file with given extensions.
opencompass/datasets/supergpqa/supergpqa_utils.py:30
↓ 3 callersFunctionfirst_option_postprocess
Find first valid option for text.
opencompass/utils/text_postprocessors.py:73
↓ 3 callersMethodfrom_json
(cls, js)
opencompass/datasets/musr/tree.py:153
↓ 3 callersFunctiongen_atc_summarizer
(needle_num_list)
opencompass/configs/summarizers/needlebench.py:255
↓ 3 callersFunctionget_all_possible_patterns
(option_keys)
opencompass/datasets/circular.py:35
↓ 3 callersFunctionget_circular_patterns
(option_keys)
opencompass/datasets/circular.py:26
↓ 3 callersMethodget_cost
Get the computational cost of inferring on the dataset. Args: dataset (ConfigDict): The dataset config. get_raw_facto
opencompass/partitioners/size.py:188
↓ 3 callersMethodget_cost
Get the computational cost of inferring on the dataset. Args: dataset (ConfigDict): The dataset config. get_raw_facto
opencompass/partitioners/sub_size.py:248
↓ 3 callersMethodget_logits
(self, input_texts: Union[str, List[str]])
opencompass/models/interntrain.py:447
↓ 3 callersFunctionget_model_combinations
( mode, models: List[ConfigDict], base_models: Optional[List[ConfigDict]] = [],
opencompass/partitioners/sub_naive.py:107
↓ 3 callersFunctionget_number
(options)
opencompass/datasets/mathbench.py:14
↓ 3 callersFunctionget_number
(options)
opencompass/datasets/compassbench_obj.py:12
↓ 3 callersMethodget_pos_type
(pos)
opencompass/datasets/lawbench/utils/modules/classifier.py:46
↓ 3 callersFunctionget_single_answer_type_text
(answer_type, is_chinese)
opencompass/datasets/OlympiadBench.py:121
↓ 3 callersFunctionget_win_rate_column
(df, column, baseline='gpt4-0314')
opencompass/summarizers/subjective/arenahard.py:130
↓ 3 callersFunctionis_equiv
(str1, str2, verbose=False)
opencompass/datasets/agieval/math_equivalence.py:147
↓ 3 callersMethodis_equiv
(self, str1, str2, verbose=False)
opencompass/datasets/math.py:474
↓ 3 callersFunctionis_numeric
(value)
opencompass/datasets/calm/evaluation/labeling/common_answers.py:301
↓ 3 callersMethodload
(train_path, test_path, max_cut=-1, hf_hub=False)
opencompass/datasets/opi/evaluator.py:22
↓ 3 callersMethodload
(path: str, name: str, setting_name: str)
opencompass/datasets/agieval/agieval.py:20
↓ 3 callersMethodload
(train_path, test_path, max_cut=-1, hf_hub=False)
opencompass/datasets/Mol_Instructions/molecule.py:40
↓ 3 callersMethodload
(path,train_path, test_path,hf_hub=False)
opencompass/datasets/bio_instruction/bio_instrcution.py:37
↓ 3 callersMethodload_dataset
(path, desc_list)
opencompass/datasets/rolebench.py:35
↓ 3 callersMethodload_desc
(path)
opencompass/datasets/rolebench.py:28
↓ 3 callersFunctionload_json_or_jsonl
Load data from a JSON or JSONL file.
opencompass/datasets/supergpqa/supergpqa_utils.py:18
↓ 3 callersFunctionload_json_or_jsonl_with_idx
(data_path, split='', idx=None)
opencompass/datasets/korbench/korbench_utils.py:39
↓ 3 callersFunctionmake_custom_dataset_config
(config)
opencompass/datasets/custom.py:535
↓ 3 callersFunctionmatch_cfg_file
Match the config file in workdir recursively given the pattern. Additionally, if the pattern itself points to an existing file, it will be di
opencompass/utils/run.py:22
↓ 3 callersFunctionmatch_files
(path: str, pattern: Union[str, List], fuzzy: bool = False)
opencompass/utils/file.py:6
↓ 3 callersFunctionmaterial_postprocessor
提取 <material> 标签内容
opencompass/datasets/bulk_modulus_material.py:48
↓ 3 callersFunctionmodel_abbr_from_cfg_used_in_summarizer
(model)
opencompass/summarizers/default_subjective.py:23
↓ 3 callersFunctionmodel_abbr_from_cfg_used_in_summarizer
(model)
opencompass/summarizers/subjective/mtbench.py:21
↓ 3 callersMethodnormalize_answer
Lower text and remove punctuation, storys and extra whitespace.
opencompass/datasets/lawbench/utils/rc_f1.py:48
↓ 3 callersMethodpred_postprocess
(self, predictions: List)
opencompass/evaluator/generic_llm_evaluator.py:167
↓ 3 callersMethodpredict
(self, adv_prompt)
opencompass/openicl/icl_inferencer/icl_attack_inferencer.py:85
↓ 3 callersFunctionpreprocess_for_elo
in Elo we want numpy arrays for matchups and outcomes matchups: int32 (N,2) contains model ids for the competitors in a match outcom
opencompass/summarizers/subjective/compass_arena_bradley_terry.py:50
↓ 3 callersFunctionprocess_json_file
(json_file_path)
opencompass/datasets/opi/utils/metrics4all.py:29
↓ 3 callersFunctionread_cilin
Cilin 詞林 is a thesaurus with semantic information
opencompass/datasets/lawbench/utils/modules/alignment.py:21
↓ 3 callersFunctionread_confusion
()
opencompass/datasets/lawbench/utils/modules/alignment.py:41
↓ 3 callersMethodreduce
(self, details: List[Dict[str, Any]])
opencompass/openicl/icl_evaluator/icl_base_evaluator.py:73
↓ 3 callersFunctionremove_already_tasks
(tasks, work_dir, meta_judge_model)
opencompass/partitioners/sub_naive.py:52
↓ 3 callersMethodremove_columns
(dataset)
opencompass/datasets/civilcomments.py:21
↓ 3 callersFunctionremove_formula
(sentence)
opencompass/datasets/matbench/post_process.py:75
↓ 3 callersFunctionreplicate_tasks_with_judge_models
(tasks, judge_models, meta_judge_model)
opencompass/partitioners/sub_naive.py:31
↓ 3 callersMethodreset
(self)
opencompass/models/lagent.py:36
↓ 3 callersMethodrun
(self)
setup.py:7
↓ 3 callersMethodrun
(self)
tools/case_analyzer.py:51
↓ 3 callersMethodsave
(self, idx, **kwargs)
opencompass/datasets/livemathbench/livemathbench.py:325
↓ 3 callersMethodscore
Calculate scores. Args: predictions (List): List of predictions of each sample. references (List): List of targets fo
opencompass/openicl/icl_evaluator/icl_hf_evaluator.py:61
↓ 3 callersFunctiontime_simplify
(expr)
opencompass/datasets/phybench/EED.py:125
↓ 3 callersFunctionto_float
(text: str)
opencompass/summarizers/multi_model.py:36
↓ 3 callersMethodtransform
Apply the transformation on the input coordinates Args: pos (): the 3-D coordinates to transforms, of s
opencompass/datasets/unconditional_protein_generation/omegafold/utils/protein_utils/aaframe.py:414
↓ 3 callersMethodtransform
(item)
opencompass/datasets/livecodebench/livecodebench.py:211
↓ 3 callersFunctionverify_float
(number)
opencompass/datasets/matbench/post_process.py:94
↓ 3 callersMethodwait
Wait till the next query can be sent. Applicable in both single-thread and multi-thread environments.
opencompass/models/lightllm_api.py:167
↓ 3 callersFunctionwhite_space_fix
(text)
opencompass/datasets/lveval/evaluators.py:153
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a peice of text.
opencompass/datasets/lawbench/utils/modules/tokenization.py:103
↓ 2 callersFunctionMol_Instructions_postprocess_Protein_Design
Extract the protein str between <protein> and </protein> in the sentences
opencompass/datasets/Mol_Instructions/normalized_SW_score.py:97
↓ 2 callersMethod__init__
(self, cfg: argparse.Namespace)
opencompass/datasets/unconditional_protein_generation/omegafold/omegaplm.py:174
↓ 2 callersMethod__init__
(self)
opencompass/datasets/livecodebench/evaluator.py:501
↓ 2 callersMethod__init__
(self, language: str = 'en')
opencompass/datasets/longbench/evaluators.py:56
↓ 2 callersMethod__init__
(self, language: str = 'en')
opencompass/datasets/lveval/evaluators.py:188
↓ 2 callersMethod_assign
Create a new one or in-place assignment Args: translation: the translation (center) of the frame rotation: t
opencompass/datasets/unconditional_protein_generation/omegafold/utils/protein_utils/aaframe.py:108
↓ 2 callersMethod_calculate_ratings
( self, matches: Dict, base_model: str = None, groups: List[str] = None, )
opencompass/summarizers/subjective/compass_arena_bradley_terry.py:745
↓ 2 callersMethod_check_prompt_template
(obj)
opencompass/openicl/icl_prompt_template.py:199
↓ 2 callersFunction_clean_up_code
Cleans up the generated code.
opencompass/datasets/humanevalx.py:172
↓ 2 callersFunction_compute_g_pass_at_k
(n, c, k, m)
opencompass/openicl/icl_evaluator/icl_base_evaluator.py:23
↓ 2 callersMethod_dfs
深度优先遍历,获取最小编辑距离相同的所有序列
opencompass/datasets/lawbench/utils/modules/alignment.py:291
↓ 2 callersMethod_evaluate
Evaluate code with retry mechanism. Args: input_data: Can be either: - dict: Dictionary containing code and test
opencompass/openicl/icl_evaluator/code_evaluator.py:130
↓ 2 callersMethod_extract_code
Extract code from markdown-formatted text. Args: text (str): Text that may contain code blocks in markdown format. Retur
opencompass/openicl/icl_evaluator/code_evaluator.py:42
↓ 2 callersMethod_fix_a_slash_b
(self, string)
opencompass/datasets/math.py:262
↓ 2 callersMethod_fix_fracs
(self, string)
opencompass/datasets/math.py:231
↓ 2 callersMethod_format_raw_txt
(self, raw_results)
opencompass/summarizers/default.py:299
↓ 2 callersMethod_format_raw_txt
(self, raw_results)
opencompass/summarizers/needlebench.py:473
↓ 2 callersMethod_format_table
(self, parsed_results, dataset_metrics, dataset_eval_mode, required_dataset_abbrs=None, skip_all_slash=False)
opencompass/summarizers/default.py:247
↓ 2 callersFunction_generic_llmjudge_postprocess
(judgement: str)
opencompass/datasets/generic.py:60
↓ 2 callersMethod_get_char_cost
NOTE: This is a replacement of ERRANTS lemma cost for Chinese 计算基于字符相似度的编辑距离cost
opencompass/datasets/lawbench/utils/modules/alignment.py:151
↓ 2 callersMethod_get_cond_prob
Get the condition probability of next token. Args: input_texts (List[str]): All the input prompt to be tested. target
opencompass/openicl/icl_inferencer/icl_clp_inferencer.py:243
↓ 2 callersMethod_get_loglikelihood
Get loglikelihood scores given input string and continuation string. Args: inputs (str): string. conts (str): strings
opencompass/models/huggingface.py:556
↓ 2 callersMethod_get_mink_percent
(self, inputs: List[str], k: int = 20)
opencompass/models/huggingface.py:615
↓ 2 callersMethod_get_ppl
Get perplexity scores given a list of inputs. Args: inputs (List[str]): A list of strings. mask_length (Optional[List
opencompass/models/huggingface.py:484
↓ 2 callersMethod_get_semantic_class
NOTE: Based on the paper: Improved-Edit-Distance Kernel for Chinese Relation Extraction 获取每个词语的语义类别(基于大词林,有三个级别)
opencompass/datasets/lawbench/utils/modules/alignment.py:97
↓ 2 callersMethod_get_semantic_cost
计算基于语义信息的替换操作cost :param a: 单词a的语义类别 :param b: 单词b的语义类别 :return: 替换编辑代价
opencompass/datasets/lawbench/utils/modules/alignment.py:120
← previousnext →201–300 of 3,711, ranked by callers