MCPcopy Create free account

hub / github.com/GPT-Fathom/GPT-Fathom / functions

Functions419 in github.com/GPT-Fathom/GPT-Fathom

↓ 38 callersMethodcompletion_fn
Helper for more ergonomic access to a single CompletionFn.
evals/eval.py:82
↓ 27 callersFunctionrecord_sampling
(prompt, sampled, **extra)
evals/record.py:530
↓ 22 callersMethodget_completions
(self)
evals/utils/test.py:11
↓ 20 callersMethodas_default_recorder
(self, sample_id: str)
evals/record.py:93
↓ 18 callersMethodeval_all_samples
Evaluate all provided samples in parallel.
evals/eval.py:115
↓ 16 callersMethodget_events
(self, type: str)
evals/record.py:121
↓ 15 callersMethodrecord_metrics
(self, **kwargs)
evals/record.py:255
↓ 14 callersMethodget_scores
(self, key: str)
evals/record.py:128
↓ 13 callersFunctiondefault_recorder
()
evals/record.py:39
↓ 13 callersFunctionnum_tokens_from_messages
Returns the number of tokens used by a list of messages.
evals/elsuite/utils.py:247
↓ 12 callersFunctionis_chat_prompt
(prompt: Prompt)
evals/prompt/base.py:101
↓ 12 callersFunctionjsondumps
(o: Any, ensure_ascii: bool = False, **kwargs: Any)
evals/data.py:191
↓ 11 callersFunctionchat_prompt_to_text_prompt
Render a chat prompt as a text prompt. User and assistant messages are separated by newlines and prefixed with "User: " and "Assistant: ", re
evals/prompt/base.py:24
↓ 11 callersFunctionn_ctx_from_model_name
Returns n_ctx for a given API model name. Model list last updated 2023-11-16.
evals/registry.py:39
↓ 9 callersFunctionmake_abc
ARGS ==== `answers`: A sequence of strings, each of which is an answer choice. `correct_idx`: The integer index of the correct answer
evals/formatting.py:8
↓ 9 callersMethodrecord_event
(self, type, data=None, sample_id=None)
evals/record.py:161
↓ 9 callersMethodrecord_match
( self, correct: bool, *, expected=None, picked=None, sample_i
evals/record.py:193
↓ 7 callersMethodget_samples
(self)
evals/elsuite/test/match.py:8
↓ 5 callersMethodcurrent_sample_id
(self)
evals/record.py:100
↓ 5 callersFunctionformat_necessary
Format a template string with only necessary kwargs.
evals/elsuite/utils.py:142
↓ 5 callersFunctionlast_boxed_only_string
(string)
evals/utils/math_util.py:13
↓ 5 callersFunctionnormalize
Lower text and remove punctuation, articles and extra whitespace.
evals/elsuite/utils.py:39
↓ 5 callersMethodto_formatted_prompt
Return the actual data to be passed as the `prompt` field to your model. See the above types to see what each API call is able to han
evals/prompt/base.py:94
↓ 4 callersMethod_dereference
( self, name: str, d: RawRegistry, object: str, type: Type[T], **kwargs: dict )
evals/registry.py:174
↓ 4 callersFunction_first_not_none
(*args)
evals/utils/snowflake.py:14
↓ 4 callersMethod_load_registry
Load registry from a list of paths. Each path or yaml specifies a dictionary of name -> spec.
evals/registry.py:304
↓ 4 callersMethodload
(self)
evals/cli/oaievalset.py:22
↓ 4 callersMethodmake_completion_fn
Create a CompletionFn. The name can be one of the following formats: 1. openai-model-id (e.g. "gpt-3.5-turbo") 2. completion-
evals/registry.py:134
↓ 4 callersMethodpre_process
(self, sample)
evals/elsuite/basic/long_comprehension.py:82
↓ 4 callersMethodpre_process
(self, sample)
evals/elsuite/basic/reading_comprehension.py:85
↓ 4 callersMethodread
(self, *args, **kwargs)
evals/elsuite/utils_execute.py:132
↓ 4 callersFunctionremove_boxed
(s)
evals/utils/math_util.py:102
↓ 4 callersMethodremove_not
(self, x)
evals/elsuite/dataset_specific/scibench.py:42
↓ 3 callersMethodadd_registry_paths
(self, paths: list[Union[str, Path]])
evals/registry.py:119
↓ 3 callersFunctionhighlight
(str: str)
evals/cli/oaievalset.py:43
↓ 3 callersFunctionopen_by_file_pattern
Can read/write to files on gcs/local with or without gzipping. If file is stored on gcs, streams with blobfile. Otherwise use vanilla python open.
evals/data.py:48
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/dataset_specific/ceval.py:128
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/dataset_specific/theoremqa.py:57
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/dataset_specific/bbh.py:66
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/dataset_specific/agieval.py:285
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/dataset_specific/scibench.py:124
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/dataset_specific/mmlu_CoT.py:108
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/dataset_specific/lambada.py:79
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/dataset_specific/summedits.py:37
↓ 3 callersMethodpre_process
(self, test_sample)
evals/elsuite/basic/includes.py:55
↓ 3 callersMethodpre_process
(self, test_sample)
evals/elsuite/basic/fuzzy_match.py:45
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/basic/multiple_choice.py:171
↓ 3 callersMethodpre_process
(self, sample)
evals/elsuite/basic/math_problem.py:117
↓ 3 callersMethodquery
(self, *args, many=False, pandas_out=False, list_out=False, **kwargs)
evals/utils/snowflake.py:106
↓ 3 callersFunctionrecord_match
(correct: bool, *, expected=None, picked=None, **extra)
evals/record.py:520
↓ 3 callersMethodrobust_query
(self, max_trials: Optional[int] = None, *args, **kwargs)
evals/utils/snowflake.py:117
↓ 3 callersMethodrun
(self, recorder: RecorderBase)
evals/elsuite/basic/code.py:278
↓ 2 callersMethod__init__
( self, log_path: Optional[str], run_spec: RunSpec, snowflake_connection: Opti
evals/record.py:395
↓ 2 callersMethod_flush_events_internal
(self, events_to_write: Sequence[Event])
evals/record.py:149
↓ 2 callersFunction_index_samples
Shuffle `samples` and pair each sample with its index.
evals/eval.py:27
↓ 2 callersMethod_process_file
(self, registry: RawRegistry, path: Path)
evals/registry.py:268
↓ 2 callersFunction_purple
(str: str)
evals/cli/oaieval.py:22
↓ 2 callersFunction_strip_string
(string)
evals/utils/math_util.py:184
↓ 2 callersMethodcal_not
(self, inputs)
evals/elsuite/dataset_specific/scibench.py:62
↓ 2 callersFunctioncompute
Returns the scores
evals/elsuite/utils_execute.py:276
↓ 2 callersFunctioncreate_chat_prompt
(text)
evals/build_data/build_tydiqa.py:10
↓ 2 callersFunctioncreate_fewshot_prompt
(question, answer)
evals/build_data/build_tydiqa.py:20
↓ 2 callersMethodeval_sample
(self, sample: Any, *_)
evals/elsuite/basic/includes.py:72
↓ 2 callersMethodeval_sample
(self, test_sample, rng)
evals/elsuite/basic/fuzzy_match.py:53
↓ 2 callersFunctionformat
Format a template string with kwargs.
scripts/battle_generator.py:10
↓ 2 callersFunctionfuzzy_match
(s1: str, s2: str)
evals/elsuite/utils.py:64
↓ 2 callersFunctiongenerate_example
()
scripts/pattern_identification_generator.py:17
↓ 2 callersMethodget_base_eval
(self, name: str)
evals/registry.py:253
↓ 2 callersMethodget_completions
(self)
evals/completion_fns/openai.py:33
↓ 2 callersMethodget_completions
(self)
evals/completion_fns/openai.py:43
↓ 2 callersMethodget_completions
(self)
evals/completion_fns/cot.py:17
↓ 2 callersFunctionget_dataset
(local, url: str)
evals/elsuite/dataset_specific/ceval.py:37
↓ 2 callersFunctionget_dataset
(local, url: str)
evals/elsuite/basic/multiple_choice.py:26
↓ 2 callersMethodget_eval
(self, name: str)
evals/registry.py:227
↓ 2 callersFunctioniter_jsonls
For each path in the input, iterate over the jsonl files in that path. Look in subdirectories recursively. Use an iterator to conserve m
evals/data.py:142
↓ 2 callersFunctionload_from_file
(file: str)
evals/elsuite/basic/multiple_choice.py:97
↓ 2 callersMethodmake_few_shot_prompt
(self, num_shot)
evals/elsuite/basic/long_comprehension.py:54
↓ 2 callersMethodmake_few_shot_prompt
(self, num_shot)
evals/elsuite/basic/reading_comprehension.py:57
↓ 2 callersFunctionmake_object
(object_ref: str, *args: Any, **kwargs: Any)
evals/utils/misc.py:20
↓ 2 callersFunctionnormalize_chinese
Lower text and remove punctuation, extra whitespace for Chinese characters.
evals/elsuite/utils.py:48
↓ 2 callersFunctionparse_option
(sampled)
evals/elsuite/dataset_specific/ceval.py:19
↓ 2 callersFunctionparse_option
(sampled)
evals/elsuite/dataset_specific/mmlu_CoT.py:25
↓ 2 callersFunctionperspective
(input)
evals/elsuite/dataset_specific/realtoxic.py:19
↓ 2 callersMethodpost_process
(self, sampled, sample)
evals/elsuite/dataset_specific/theoremqa.py:73
↓ 2 callersMethodpost_process
(self, sampled)
evals/elsuite/dataset_specific/bbh.py:84
↓ 2 callersMethodpost_process
(self, sampled, sample)
evals/elsuite/dataset_specific/agieval.py:371
↓ 2 callersMethodpost_process
(self, sampled, sample)
evals/elsuite/dataset_specific/scibench.py:138
↓ 2 callersMethodpost_process
(self, res)
evals/elsuite/dataset_specific/lambada.py:97
↓ 2 callersMethodpost_process
(self, sampled, sample)
evals/elsuite/dataset_specific/summedits.py:71
↓ 2 callersMethodpost_process
(self, sampled)
evals/elsuite/basic/multiple_choice.py:202
↓ 2 callersMethodpost_process
(self, sampled, correct_answer)
evals/elsuite/basic/math_problem.py:137
↓ 2 callersMethodpre_process
(self, sample)
evals/elsuite/basic/code.py:124
↓ 2 callersMethodreadlines
(self, *args, **kwargs)
evals/elsuite/utils_execute.py:138
↓ 2 callersFunctiont
(duration: float)
evals/utils/misc.py:9
↓ 2 callersMethodto_formatted_prompt
(self)
evals/prompt/base.py:116
↓ 2 callersMethodto_formatted_prompt
(self)
evals/prompt/base.py:139
↓ 1 callersFunction_clean_numbers
Clean Numbers in the given string >>> _clean_numbers(None, "Hello 123") 'Hello 123' >>> _clean_numbers(None, "Hello 1234") 'Hell
evals/utils/math_util.py:67
↓ 1 callersMethod_create_event
(self, type, data=None, sample_id=None)
evals/record.py:131
↓ 1 callersFunction_decode_json
(line, path, line_number)
evals/data.py:79
↓ 1 callersMethod_ensure_connected
(self)
evals/utils/snowflake.py:60
next →1–100 of 419, ranked by callers