MCPcopy Create free account

hub / github.com/beeevita/EvoPrompt / functions

Functions112 in github.com/beeevita/EvoPrompt

↓ 13 callersFunctionread_lines
(file_, sample_indices=None)
utils.py:47
↓ 9 callersMethodforward
(self)
evaluator.py:217
↓ 7 callersFunctionllm_query
(data, client, type, task, **config)
llm_client.py:62
↓ 6 callersFunctionparaphrase
(sentence, client, type, **kwargs)
BBH/llm_client.py:189
↓ 6 callersFunctionread_lines
(file_, sample_indices=None)
BBH/utils.py:40
↓ 5 callersFunctionextract_seconds
(text, retried=5)
BBH/llm_client.py:14
↓ 4 callersMethodevolute
(self)
BBH/evoluter.py:241
↓ 4 callersFunctionform_request
(data, type, **kwargs)
llm_client.py:20
↓ 4 callersFunctionform_request
(data, type, **kwargs)
BBH/llm_client.py:22
↓ 4 callersFunctionk_init_pop
(initial_mode, init_population, k)
BBH/utils.py:54
↓ 4 callersFunctionllm_query
(data, client, type, task, **config)
BBH/llm_client.py:106
↓ 4 callersFunctionparaphrase
(sentence, client, type, **kwargs)
llm_client.py:141
↓ 4 callersMethodsorted
(self)
BBH/evoluter.py:62
↓ 3 callersMethod__init__
(self, args, evaluator)
evoluter.py:21
↓ 3 callersMethod__init__
(self, args)
evaluator.py:26
↓ 3 callersMethod__init__
(self, args, llm_config, client)
BBH/evoluter.py:22
↓ 3 callersMethodcreate_dataset
( self, data_store_path, test_src_sample, test_tgt_sample, tokenizer,
evaluator.py:128
↓ 3 callersFunctionevaluate_optimized_prompt
(population, pop_marks, out_path, evaluator, args)
infer.py:30
↓ 3 callersFunctionextract_numbers
(string)
BBH/utils.py:105
↓ 3 callersFunctionextract_seconds
(text, retried=5)
llm_client.py:12
↓ 3 callersFunctionget_final_prompt
(text)
BBH/utils.py:69
↓ 3 callersMethodget_generations
(self, prompt_pre, eval_src, ref_texts)
evaluator.py:220
↓ 3 callersFunctionllm_init
(auth_file="../auth.yaml", llm_type='davinci', setting="default")
BBH/llm_client.py:51
↓ 3 callersFunctionload_cls_data
(verbalizers=None, data_path=None, sample_indices=None)
utils.py:96
↓ 3 callersFunctionset_seed
(seed)
BBH/utils.py:9
↓ 3 callersFunctionsetup_log
(log_path, log_name="basic")
BBH/utils.py:19
↓ 3 callersMethodsorted
(self)
evoluter.py:47
↓ 3 callersMethodtest
(self, step)
BBH/evoluter.py:244
↓ 3 callersMethodwrite_step
(self, step, best_score, avg_score)
evoluter.py:203
↓ 3 callersMethodwrite_step
(self, i, avg_score, best_score)
BBH/evoluter.py:232
↓ 2 callersFunctionbatchify
(data, batch_size=20)
BBH/utils.py:13
↓ 2 callersFunctioncal_sari
(orig_sents, sys_sents, refs_sents)
metrics.py:32
↓ 2 callersFunctioneval_task
(task, task_prompt,cot_prompt,eval_data, client, model_index,logger,demon ,**kwargs)
BBH/run_bbh.py:50
↓ 2 callersFunctionevaluate_single_prompt
(evaluator, args, prompt_pre, output=None)
infer.py:10
↓ 2 callersFunctionextract_ans
(ans, mode)
BBH/utils.py:80
↓ 2 callersFunctionextract_numbers
(string)
utils.py:161
↓ 2 callersFunctionfirst_appear_pred
(text, verbalizer_dict, logger)
utils.py:32
↓ 2 callersFunctionformat_template
( src, tgt="", template="", src_name="", tgt_name="", line_break='\n', )
utils.py:68
↓ 2 callersFunctionget_final_prompt
(text)
utils.py:84
↓ 2 callersMethodinit_pop
(self)
evoluter.py:72
↓ 2 callersMethodinit_pop
(self)
BBH/evoluter.py:90
↓ 2 callersFunctionk_init_pop
(initial_mode, init_population, k)
utils.py:240
↓ 2 callersFunctionllm_cls
(dataset, client=None, type=None, **config)
llm_client.py:155
↓ 2 callersFunctionllm_init
(auth_file="../auth.yaml", llm_type='davinci', setting="default")
llm_client.py:50
↓ 2 callersFunctionload_sim_data
(dataset, seed)
utils.py:139
↓ 2 callersFunctionload_sim_data_
(src_file, tgt_files, sample_indices=None)
utils.py:129
↓ 2 callersFunctionload_sum_data
(dataset, seed, sample_num)
utils.py:116
↓ 2 callersFunctionload_sum_data_
(src_file, tgt_file, sample_indices=None)
utils.py:111
↓ 2 callersFunctionparse_args
()
args.py:4
↓ 2 callersFunctionparse_args
()
BBH/args.py:3
↓ 2 callersFunctionremove_punctuation
(s)
utils.py:28
↓ 1 callersMethod_get_logits
( self, input_ids, input_ids_mask, )
evaluator.py:410
↓ 1 callersMethod_get_mask_token_index
(self, input_ids: torch.Tensor)
evaluator.py:420
↓ 1 callersFunctionape
(args, evaluator)
evolution.py:1
↓ 1 callersFunctionbatchify
(data, batch_size=16)
utils.py:177
↓ 1 callersFunctioncal_cls_score
(pred_list, label_list,metric='acc')
metrics.py:12
↓ 1 callersFunctioncal_dev_result_3seed
(path,step)
get_result.py:26
↓ 1 callersFunctioncal_mean_std
(results)
utils.py:255
↓ 1 callersFunctioncal_rouge
(output_texts, ref_texts)
metrics.py:21
↓ 1 callersFunctioncal_sum_test_result_3seed
(path,step)
get_result.py:34
↓ 1 callersFunctioncal_test_result_3seed
(path, step)
get_result.py:12
↓ 1 callersFunctioncollate_tokens
Convert a list of 1d tensors into a padded 2d tensor.
dataset.py:47
↓ 1 callersFunctioncopy_tensor
(src, dst)
dataset.py:58
↓ 1 callersFunctioncreate_dataset
(mode, task_prompt, cot_prompt, eval_data,demon=1)
BBH/run_bbh.py:28
↓ 1 callersFunctiondavinci_query
(data,client,**kwargs)
BBH/llm_client.py:84
↓ 1 callersFunctionde_evo
(args, evaluator)
evolution.py:14
↓ 1 callersMethodevolute
(self, mode)
evoluter.py:231
↓ 1 callersMethodevolute
(self)
evoluter.py:355
↓ 1 callersMethodevolute
(self)
evoluter.py:514
↓ 1 callersFunctionextract_n_samples_per_class
(src, tgt, n, dataset)
utils.py:164
↓ 1 callersMethodform_demons
(self, task, data_store_path, prompt_num)
evaluator.py:96
↓ 1 callersFunctionga_evo
(args, evaluator)
evolution.py:7
↓ 1 callersFunctionget_dataset_verbalizers
(dataset: str)
utils.py:212
↓ 1 callersMethodget_pred
(self, cond)
evaluator.py:424
↓ 1 callersMethodinit_pop
(self)
evoluter.py:221
↓ 1 callersMethodinit_pop
(self)
BBH/evoluter.py:504
↓ 1 callersFunctionread_yaml_file
(file_path)
utils.py:23
↓ 1 callersFunctionread_yaml_file
(file_path)
BBH/utils.py:100
↓ 1 callersFunctionrun
(args)
run.py:6
↓ 1 callersFunctionset_seed
(seed)
utils.py:183
↓ 1 callersFunctionsetup_log
(log_path, log_name="basic")
utils.py:189
↓ 1 callersFunctionsort_write
(population, pop_scores, pop_marks, write_path)
BBH/evolution.py:272
↓ 1 callersFunctionturbo_query
(request_data, **kwargs)
BBH/llm_client.py:62
Method__getitem__
(self, idx)
dataset.py:17
Method__init__
(self, args, evaluator)
evoluter.py:218
Method__init__
(self, args, evaluator)
evoluter.py:348
Method__init__
(self, args, evaluator)
evoluter.py:507
Method__init__
(self, args)
evaluator.py:299
Method__init__
(self, args)
evaluator.py:445
Method__init__
(self, args)
evaluator.py:474
Method__init__
(self, text_datasets, tokenizer)
dataset.py:7
Method__init__
(self, args, llm_config, client)
BBH/evoluter.py:281
Method__init__
(self, args, llm_config, client)
BBH/evoluter.py:390
Method__init__
(self, args, llm_config, client)
BBH/evoluter.py:501
Method__len__
(self)
dataset.py:14
Functioncal_bleu
(bleu_model,output_texts, ref_texts)
metrics.py:8
Methodcollater
(self, samples)
dataset.py:28
Functioncompletion_with_backoff
(**kwargs)
BBH/run_bbh.py:25
Functioncount_lines
(file_path)
utils.py:42
Functioneval_cls_baseline
(evaluator,mode, args)
infer.py:21
next →1–100 of 112, ranked by callers