MCPcopy Create free account

hub / github.com/InsaneLife/dssm / functions

Functions205 in github.com/InsaneLife/dssm

↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
model/bert/modeling_v1.py:366
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
model/bert/modeling.py:358
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank
model/bert/modeling_v1.py:867
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank
model/bert/modeling.py:859
↓ 8 callersMethod_transform2id
(self, word)
data_input.py:59
↓ 8 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
data_input.py:152
↓ 7 callersFunctionconvert_word2id
(query, vocab_map)
data_input.py:193
↓ 6 callersMethod_transform_seq2bert_id
(self, words, padding=0)
data_input.py:89
↓ 6 callersFunctionpull_batch
(user_data, item_positive, batch_id)
multi_view_dssm_v3.py:268
↓ 5 callersFunctionconvert_to_sparse_tensor
(data_in)
multi_view_dssm_v3.py:259
↓ 5 callersMethodrestore_session
(self, dir_model)
model/base_model.py:154
↓ 4 callersFunctionadd_layer
(inputs, in_size, out_size, activation_function=None)
dssm.py:36
↓ 4 callersFunctionbatch_normalization
Batch normalization on convolutional maps. Ref.: http://stackoverflow.com/questions/33949786/how-could-i-use-batch-normalization-in-tensorflo
dssm.py:54
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *ke
model/bert/modeling_v1.py:337
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *ke
model/bert/modeling.py:329
↓ 4 callersFunctionwrite_file
(out_arr:list, file_:str, splitter='\t')
util.py:42
↓ 3 callersMethod_add_summary
(self)
model/base_model.py:158
↓ 3 callersMethod_init_session
(self)
model/base_model.py:144
↓ 3 callersMethod_transform_seq2id
(self, words, padding=0)
data_input.py:69
↓ 3 callersMethodadd_train_op
(self, learning_method, learning_rate, loss, clip=-1)
model/base_model.py:460
↓ 3 callersMethodapply_gradients
See base class.
model/bert/optimization.py:105
↓ 3 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
model/bert/tokenization.py:27
↓ 3 callersMethodfeed_batch
(self, t1_ids, t1_len, t2_ids, t2_len, label=None, is_test=0)
model/siamese_network.py:181
↓ 3 callersMethodfeed_batch
(self, out_ids1, m_ids1, seg_ids1, seq_len1, out_ids2, m_ids2, seg_ids2, seq_len2, label=None, is_test=0)
model/siamese_network.py:304
↓ 3 callersMethodfeed_batch
(self, out_ids1, m_ids1, seg_ids1, seq_len1, label=None, is_test=0)
model/bert_classifier.py:95
↓ 3 callersFunctionfeed_dict
(on_training, data_set, batch_id, drop_prob)
dssm_rnn.py:173
↓ 3 callersFunctionfeed_dict
(on_verify, Train, batch_id)
multi_view_dssm_v3.py:276
↓ 3 callersFunctionfeed_dict
(on_training, data_set, batch_id, drop_prob)
dssm.py:218
↓ 3 callersMethodfit
:param words_list: [[w11, w12, ...], [w21, w22, ...], ...] :return:
data_input.py:36
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
model/bert/modeling_v1.py:353
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
model/bert/modeling.py:345
↓ 3 callersFunctionread_file
(file_:str, splitter:str=None)
util.py:34
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
model/bert/modeling_v1.py:902
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
model/bert/modeling.py:894
↓ 3 callersMethodshare_bert_layer
(self, is_train_place, query_ids, mask_ids, seg_ids, use_bert_pre=1)
model/base_model.py:341
↓ 3 callersFunctiontrans_lcqmc
最大长度
data_input.py:287
↓ 3 callersFunctiontrans_lcqmc_bert
最大长度
data_input.py:317
↓ 3 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a peice of text.
model/bert/tokenization.py:96
↓ 2 callersMethod_transform_2seq2bert_id
(self, seq1, seq2, padding=0)
data_input.py:119
↓ 2 callersMethodbuild
(self)
model/siamese_network.py:172
↓ 2 callersFunctionconvert_seq2bow
(query, vocab_map)
data_input.py:205
↓ 2 callersFunctionconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
model/bert/tokenization.py:85
↓ 2 callersMethodfit
@description: 模型训练 @param {type} @return:
model/base_model.py:184
↓ 2 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
model/bert/modeling.py:89
↓ 2 callersMethodget_pooled_output
(self)
model/bert/modeling.py:227
↓ 2 callersMethodget_sequence_output
Gets final hidden layer of encoder. Returns: float Tensor of shape [batch_size, seq_length, hidden_size] corresponding to the final
model/bert/modeling.py:230
↓ 2 callersMethodl1_distance
(self, query_rnn_output, doc_rnn_output)
model/siamese_network.py:120
↓ 2 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
model/bert/tokenization.py:70
↓ 2 callersFunctionreshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
model/bert/modeling_v1.py:916
↓ 2 callersFunctionreshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
model/bert/modeling.py:908
↓ 2 callersMethodshare_encoder
(self, query_batch, query_seq_length, keep_prob_place)
model/siamese_network.py:76
↓ 2 callersFunctiontranspose_for_scores
(input_tensor, batch_size, num_attention_heads, seq_length, width)
model/bert/modeling_v1.py:607
↓ 2 callersFunctiontranspose_for_scores
(input_tensor, batch_size, num_attention_heads, seq_length, width)
model/bert/modeling.py:599
↓ 1 callersMethod__init__
(self, cfg, is_training=1)
model/siamese_network.py:65
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
model/bert/tokenization.py:247
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
model/bert/optimization.py:156
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
model/bert/optimization.py:166
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
model/bert/tokenization.py:225
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
model/bert/tokenization.py:335
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
model/bert/tokenization.py:347
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
model/bert/tokenization.py:323
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
model/bert/tokenization.py:192
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
model/bert/tokenization.py:181
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
model/bert/tokenization.py:212
↓ 1 callersMethod_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
data_input.py:108
↓ 1 callersMethodadd_placeholder
(self)
model/siamese_network.py:156
↓ 1 callersMethodadd_placeholder
(self)
model/siamese_network.py:238
↓ 1 callersMethodadd_placeholder
(self)
model/bert_classifier.py:57
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python
model/bert/modeling_v1.py:929
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python
model/bert/modeling.py:921
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is al
model/bert/modeling_v1.py:543
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is al
model/bert/modeling.py:535
↓ 1 callersFunctioncreate_attention_mask_from_input_mask
Create 3D attention mask from a 2D tensor mask. Args: from_tensor: 2D or 3D Tensor of shape [batch_size, from_seq_length, ...]. to_mask:
model/bert/modeling_v1.py:511
↓ 1 callersFunctioncreate_attention_mask_from_input_mask
Create 3D attention mask from a 2D tensor mask. Args: from_tensor: 2D or 3D Tensor of shape [batch_size, from_seq_length, ...]. to_mask:
model/bert/modeling.py:503
↓ 1 callersFunctionembedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. voca
model/bert/modeling_v1.py:371
↓ 1 callersFunctionembedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. voca
model/bert/modeling.py:363
↓ 1 callersFunctionembedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embeddi
model/bert/modeling_v1.py:418
↓ 1 callersFunctionembedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embeddi
model/bert/modeling.py:410
↓ 1 callersMethodeval
(self, test_data)
model/siamese_network.py:190
↓ 1 callersMethodeval
(self, test_data)
model/siamese_network.py:339
↓ 1 callersMethodeval
@description: 测试集评测 @param {type} @return:
model/base_model.py:214
↓ 1 callersMethodeval
(self, test_data)
model/bert_classifier.py:124
↓ 1 callersMethodforward
(self)
model/siamese_network.py:131
↓ 1 callersMethodforward
(self)
model/siamese_network.py:277
↓ 1 callersMethodforward
(self)
model/bert_classifier.py:73
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
model/bert/modeling_v1.py:81
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
model/bert/modeling.py:81
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
model/bert/modeling_v1.py:276
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
model/bert/modeling.py:268
↓ 1 callersFunctionget_batch
(dataset, batch_size=None, is_test=0)
data_input.py:393
↓ 1 callersFunctionget_cosine_score
(query_arr, doc_arr)
dssm.py:107
↓ 1 callersFunctionget_lcqmc
使用LCQMC数据集,并将其转为word_id
data_input.py:306
↓ 1 callersFunctionget_test
(file_:str, vocab:Vocabulary)
data_input.py:349
↓ 1 callersFunctionget_test_bert_by_arr
(test_arr:list, vocab:Vocabulary, is_merge=0)
data_input.py:368
↓ 1 callersFunctionlayer_norm_and_dropout
Runs layer normalization followed by dropout.
model/bert/modeling_v1.py:359
↓ 1 callersFunctionlayer_norm_and_dropout
Runs layer normalization followed by dropout.
model/bert/modeling.py:351
↓ 1 callersFunctionload_vocab
(file_path)
config.py:12
↓ 1 callersMethodpredict
(self, test_data)
model/siamese_network.py:203
↓ 1 callersMethodpredict
(self, test_data)
model/siamese_network.py:352
↓ 1 callersMethodpredict
@description: 无标注数据评测 @param {type} @return:
model/base_model.py:222
next →1–100 of 205, ranked by callers