MCPcopy Create free account

hub / github.com/Albert-Ma/PROP / functions

Functions183 in github.com/Albert-Ma/PROP

Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:372
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:387
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:401
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:418
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:436
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:451
Method__init__
(self, config, bert_model_embedding_weights)
pytorch_pretrain_bert/modeling.py:468
Method__init__
(self, config, bert_model_embedding_weights)
pytorch_pretrain_bert/modeling.py:487
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:497
Method__init__
(self, config, bert_model_embedding_weights)
pytorch_pretrain_bert/modeling.py:507
Method__init__
(self, config, *inputs, **kwargs)
pytorch_pretrain_bert/modeling.py:522
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:722
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:898
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:962
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:1024
Method__init__
(self, config, num_labels)
pytorch_pretrain_bert/modeling.py:1088
Method__init__
(self, config, num_choices)
pytorch_pretrain_bert/modeling.py:1153
Method__init__
(self, config, num_labels)
pytorch_pretrain_bert/modeling.py:1223
Method__init__
(self, config)
pytorch_pretrain_bert/modeling.py:1298
Method__iter__
(self)
run_pretraining.py:138
Method__len__
(self)
run_pretraining.py:116
Method__len__
(self)
run_pretraining.py:146
Method__len__
(self)
bprop/multiprocessing_generate_word_sets.py:49
Method__len__
(self)
bprop/multiprocessing_generate_word_sets.py:108
Method__len__
(self)
prop/preprocessing_data.py:39
Method__len__
(self)
prop/multiprocessing_generate_pairwise_instances.py:35
Method__len__
(self)
prop/multiprocessing_generate_word_sets.py:45
Method__len__
(self)
prop/multiprocessing_generate_word_sets.py:83
Method__len__
(self)
prop/multiprocessing_generate_word_sets.py:146
Method__repr__
(self)
pytorch_pretrain_bert/modeling.py:214
Function_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
bprop/extract_bert_attention.py:177
Methodadd
(self, stemmed_word, word)
bprop/multiprocessing_generate_word_sets.py:81
Functionconstruct_pairwise_examples
(docs, chunk_indexs, rop_num_per_doc, max_seq_len, mlm, bert_tokenizer, maske
prop/multiprocessing_generate_pairwise_instances.py:138
Methodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
pytorch_pretrain_bert/tokenization.py:130
Functionerror_callback
(e)
bprop/multiprocessing_generate_word_sets.py:237
Functionerror_callback
(e)
prop/multiprocessing_generate_pairwise_instances.py:202
Functionerror_callback
(e)
prop/multiprocessing_generate_word_sets.py:280
Methodexit
(self)
prop/multiprocessing_generate_word_sets.py:104
Functionfilename_to_url
Return the url and etag (which may be ``None``) stored for `filename`. Raise ``EnvironmentError`` if `filename` or its stored metadata do not
pytorch_pretrain_bert/file_utils.py:63
Methodforward
(self, x)
pytorch_pretrain_bert/modeling.py:244
Methodforward
(self, input_ids, token_type_ids=None)
pytorch_pretrain_bert/modeling.py:264
Methodforward
(self, hidden_states, attention_mask, output_attentions=False)
pytorch_pretrain_bert/modeling.py:303
Methodforward
(self, hidden_states, input_tensor)
pytorch_pretrain_bert/modeling.py:350
Methodforward
(self, input_tensor, attention_mask, output_attentions=False)
pytorch_pretrain_bert/modeling.py:363
Methodforward
(self, hidden_states)
pytorch_pretrain_bert/modeling.py:380
Methodforward
(self, hidden_states, input_tensor)
pytorch_pretrain_bert/modeling.py:393
Methodforward
(self, hidden_states, attention_mask, output_attentions=False)
pytorch_pretrain_bert/modeling.py:407
Methodforward
(self, hidden_states, attention_mask, output_all_encoded_layers=True, output_attentions=False)
pytorch_pretrain_bert/modeling.py:423
Methodforward
(self, hidden_states)
pytorch_pretrain_bert/modeling.py:441
Methodforward
(self, hidden_states)
pytorch_pretrain_bert/modeling.py:460
Methodforward
(self, hidden_states)
pytorch_pretrain_bert/modeling.py:480
Methodforward
(self, sequence_output)
pytorch_pretrain_bert/modeling.py:491
Methodforward
(self, pooled_output)
pytorch_pretrain_bert/modeling.py:501
Methodforward
(self, sequence_output, pooled_output)
pytorch_pretrain_bert/modeling.py:512
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, output_all_encoded_layers=True, o
pytorch_pretrain_bert/modeling.py:729
Methodforward
(self, input_ids, token_type_ids=None, input_mask=None, masked_lm_labels=None, representative_
pytorch_pretrain_bert/modeling.py:818
Methodforward
(self, input_ids, token_type_ids=None, input_mask=None, masked_lm_labels=None, next_sentence_l
pytorch_pretrain_bert/modeling.py:904
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None)
pytorch_pretrain_bert/modeling.py:968
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, next_sentence_label=None)
pytorch_pretrain_bert/modeling.py:1030
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
pytorch_pretrain_bert/modeling.py:1096
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
pytorch_pretrain_bert/modeling.py:1161
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, labels=None)
pytorch_pretrain_bert/modeling.py:1231
Methodforward
(self, input_ids, token_type_ids=None, attention_mask=None, start_positions=None, end_positions=None)
pytorch_pretrain_bert/modeling.py:1306
Methodfrom_pretrained
Instantiate a BertPreTrainedModel from a pre-trained model file or a pytorch state dict. Download and cache the pre-trained model fil
pytorch_pretrain_bert/modeling.py:547
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
pytorch_pretrain_bert/modeling.py:122
Functiongenerate_word_sets_from_document
(docs, chunk_indexs, stem, rop_num_per_doc, possion_lambda, vocab_mean_att
bprop/multiprocessing_generate_word_sets.py:154
Functiongenerate_word_sets_from_document
(docs, chunk_indexs, stem, rop_num_per_doc, possion_lambda, docs_tf, normalized_df, negative_table, averag
prop/multiprocessing_generate_word_sets.py:180
Functionget_file_extension
(path, dot=True, lower=True)
pytorch_pretrain_bert/file_utils.py:268
Methodget_lr
(self)
pytorch_pretrain_bert/optimization.py:88
Methodinit_bert_weights
Initialize the weights.
pytorch_pretrain_bert/modeling.py:533
Methodnum_samples
(self)
run_pretraining.py:135
Functionread_set_from_file
Extract a de-duped collection (set) of text from a file. Expected file format is one item per line.
pytorch_pretrain_bert/file_utils.py:256
Functions3_request
Wrapper function for s3 requests in order to create more helpful error messages.
pytorch_pretrain_bert/file_utils.py:132
Methodsample
(self, count, layer=0)
bprop/multiprocessing_generate_word_sets.py:142
Methodsample_word
(self, item)
bprop/multiprocessing_generate_word_sets.py:105
Methodsave_vocabulary
Save the tokenizer vocabulary to a directory or file.
pytorch_pretrain_bert/tokenization.py:137
Functionswish
(x)
pytorch_pretrain_bert/modeling.py:131
Methodto_json_file
Save this instance to a json file.
pytorch_pretrain_bert/modeling.py:226
Methodtokenize
Tokenizes a piece of text.
pytorch_pretrain_bert/tokenization.py:215
Methodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
pytorch_pretrain_bert/tokenization.py:326
Functionwarmup_constant
Linearly increases learning rate over `warmup`*`t_total` (as provided to BertAdam) training steps. Learning rate is 1. afterwards.
pytorch_pretrain_bert/optimization.py:33
Functionwarmup_cosine
(x, warmup=0.002)
pytorch_pretrain_bert/optimization.py:27
Functionwrapper
(url, *args, **kwargs)
pytorch_pretrain_bert/file_utils.py:139
← previous101–183 of 183, ranked by callers