Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Irenehere/Auto-Debias
/ functions
Functions
14 in github.com/Irenehere/Auto-Debias
⨍
Functions
14
◇
Types & classes
1
↓ 7 callers
Function
load_word_list
(f_path)
utils.py:5
↓ 2 callers
Function
clean_word_list
(vocabs,tokenizer)
utils.py:56
↓ 2 callers
Function
clean_word_list2
(tar1_words_,tar2_words_,tokenizer)
utils.py:47
↓ 2 callers
Function
get_prompt_jsd
(tar1_words, tar2_words, prompts, model, ster_words)
generate_prompts.py:130
↓ 2 callers
Function
get_tokenized_prompt
(prompts,tar1_words,tar2_words,tokenizer)
auto-debias.py:89
↓ 2 callers
Function
run_model
(model,inputs,mask_index,ster_words)
generate_prompts.py:91
↓ 2 callers
Function
send_to_cuda
(tar1_tokenized,tar2_tokenized)
auto-debias.py:103
↓ 1 callers
Function
get_JSD
(tar1_tokenized,tar2_tokenized,tar1_mask_index,tar2_mask_index,model,ster_words)
generate_prompts.py:97
↓ 1 callers
Function
get_tokenized_ith_prompt
(prompts,tar1_word,tar2_word,tokenizer)
generate_prompts.py:76
↓ 1 callers
Function
load_wiki_word_list
(f_path)
utils.py:14
↓ 1 callers
Function
send_to_cuda
(tar1_tokenized,tar2_tokenized)
generate_prompts.py:69
Method
__init__
(self,reduction='batchmean')
utils.py:24
Function
clean_vocab
(vocab)
utils.py:39
Method
forward
(self, net_1_logits, net_2_logits)
utils.py:28