MCPcopy Create free account

hub / github.com/Hello-SimpleAI/chatgpt-comparison-detection / functions

Functions52 in github.com/Hello-SimpleAI/chatgpt-comparison-detection

↓ 20 callersFunctionprintf
(*args)
HC3/selenium_crawler.py:34
↓ 5 callersFunctionprintf
(*args)
detect/dl_eval.py:40
↓ 5 callersFunctionprintf
(*args)
detect/ml_train.py:26
↓ 5 callersFunctionrefresh
(max_trial: int = 5)
HC3/selenium_crawler.py:146
↓ 4 callersFunctionchat_chatable
(*args)
HC3/selenium_crawler.py:113
↓ 4 callersFunctionnew_chat
(max_trial: int = 5)
HC3/selenium_crawler.py:157
↓ 4 callersFunctionsend_query
发送问题
HC3/selenium_crawler.py:216
↓ 2 callersFunctioncollect_result
(input_path, output_dir, json_prefix)
HC3/selenium_crawler.py:418
↓ 2 callersFunctiondata_to_xy
(dataset: Dataset)
detect/ml_train.py:183
↓ 2 callersFunctionevaluate_func
:param checkpoint: model saved dir
detect/dl_eval.py:68
↓ 2 callersFunctionget_ds
(_setting)
detect/dl_eval.py:72
↓ 2 callersFunctioninput_textarea
()
HC3/selenium_crawler.py:97
↓ 2 callersFunctionpredict_data
( input_path: str, output_path: str, test: int, device, gpt: str, batch_size: int )
detect/ml_train.py:187
↓ 2 callersFunctionpredict_lr_classifier
(model, x, y)
detect/ml_train.py:265
↓ 2 callersFunctionprintf
(*args)
detect/ml_eval.py:22
↓ 2 callersFunctionread_ds
(name)
detect/ml_eval.py:46
↓ 2 callersFunctionread_train_test
(name)
detect/dl_ood.py:57
↓ 2 callersFunctionread_train_test
(name)
detect/dl_train.py:53
↓ 2 callersFunctionverify_human
()
HC3/selenium_crawler.py:124
↓ 1 callersFunctionchatgpt
Query ChatGPT by the given `query`, generate `num_answers` times and return.
HC3/selenium_crawler.py:317
↓ 1 callersFunctioncompute_metrics
(preds, y_true, y_scores)
detect/ml_train.py:218
↓ 1 callersFunctiondata_to_xy
(dataset: Dataset)
detect/ml_eval.py:41
↓ 1 callersFunctioneval_func
(model, setting, lang, test, sources)
detect/ml_eval.py:45
↓ 1 callersFunctionget_response
()
HC3/selenium_crawler.py:280
↓ 1 callersFunctionlogin
(max_trial: int = 5)
HC3/selenium_crawler.py:179
↓ 1 callersFunctionmain
(args: argparse.Namespace, json_prefix: str)
HC3/selenium_crawler.py:431
↓ 1 callersFunctionmain
(args: argparse.Namespace, seed=42)
detect/ml_eval.py:100
↓ 1 callersFunctionmain
(args: argparse.Namespace)
detect/dl_ood.py:41
↓ 1 callersFunctionmain
(args: argparse.Namespace)
detect/dl_eval.py:128
↓ 1 callersFunctionmain
(args: argparse.Namespace, seed=42)
detect/ml_train.py:273
↓ 1 callersFunctionmain
(args: argparse.Namespace)
detect/dl_train.py:37
↓ 1 callersFunctionparse_chat_row
解析 ChatGPT 返回内容, 并: 1)保持列表信息.
HC3/selenium_crawler.py:261
↓ 1 callersFunctionpredict_data
(setting, lang, checkpoint, device, batch_size)
detect/dl_eval.py:44
↓ 1 callersFunctionprocess_data
( questions: Dict[int, Dict], prefix: str = 'data/', num_answers: int = 1 )
HC3/selenium_crawler.py:371
↓ 1 callersFunctionread_data
(filename: str)
HC3/selenium_crawler.py:395
↓ 1 callersFunctionread_data
(path)
detect/ml_train.py:168
↓ 1 callersFunctionrefresh_data
()
HC3/selenium_crawler.py:437
↓ 1 callersFunctionregenerate_response_button
()
HC3/selenium_crawler.py:105
↓ 1 callersFunctionremove_emoji
(text)
HC3/selenium_crawler.py:63
↓ 1 callersFunctionsend
()
HC3/selenium_crawler.py:222
↓ 1 callersFunctiontrain_lr_classifier
(save_path: str, x, y)
detect/ml_train.py:241
Functionadd_len
(x)
detect/ml_train.py:169
Functionclose_driver
(_signal, frame)
HC3/selenium_crawler.py:174
Functioncompute_metrics
(eval_preds)
detect/dl_ood.py:107
Functioncompute_metrics
(eval_preds)
detect/dl_train.py:104
Functionfunc
(batch)
detect/dl_eval.py:46
Functiongltr_batched
Batched rank buckets computation of GLTR.
detect/ml_train.py:45
Functionppl_batched
Batched ppl features. We use the setting of `stride=1024` in https://huggingface.co/docs/transformers/perplexity
detect/ml_train.py:84
Functionsent_cut_zh
(para: str)
detect/ml_eval.py:27
Functionsent_cut_zh
(para: str)
detect/ml_train.py:31
Functiontokenize_fn
(example)
detect/dl_ood.py:86
Functiontokenize_fn
(example)
detect/dl_train.py:83