Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brightmart/bert_language_understanding
/ functions
Functions
125 in github.com/brightmart/bert_language_understanding
⨍
Functions
125
◇
Types & classes
14
Function
main
(_)
train_bert_lm.py:54
Function
main
(_)
train_bert_fine_tuning.py:60
Function
main
(_)
train_transform.py:53
Function
main
(_)
run_classifier_predict_online.py:323
Function
mask_language_model_multi_processing
generate data for perform mask language model. :parameter source_file: source file where raw data come from :parameter target_file: save
pretrain_task.py:141
Function
multi_head_attention_for_sentence_vectorized
(layer_number)
model/multi_head_attention.py:118
Method
position_wise_feed_forward_fc_fn
positional wise fully connected feed forward implement as original version. FFN(x) = max(0,xW1+b1)W2+b2 this function provide
model/poistion_wise_feed_forward.py:57
Function
predict
()
model/bert_cnn_model.py:327
Function
predict
()
model/transfomer_model.py:149
Function
predict
()
model/bert_model.py:239
Function
process_one_chunk_lm
process one chunk for generate data of language model :return:
pretrain_task.py:217
Method
project_tasks
project the representation, then to do classification. :param h: [batch_size,sequence_length,d_model] :return: logits: [batch
model/bert_cnn_model.py:156
Method
project_tasks
project the representation, then to do classification. :param h: [batch_size,sequence_length,d_model] :return: logits: [batch
model/bert_model.py:143
Method
scaled_dot_product_attention_batch_mine
scaled dot product attention :param Q: query. shape:[batch,sequence_length,d_model] :param K_s: keys. shape:[batch,sequenc
model/multi_head_attention.py:56
Function
test
()
model/layer_norm_residual_conn.py:48
Function
test
()
model/encoder.py:115
Function
test
()
model/poistion_wise_feed_forward.py:97
Function
test_postion_wise_feed_forward
(encoder_class,x,layer_index)
model/encoder.py:101
Function
test_sub_layer_multi_head_attention
(encoder_class,index_layer,Q,K_s,V_s)
model/encoder.py:105
Function
train
()
model/bert_cnn_model.py:294
Function
train
()
model/transfomer_model.py:119
Function
train
()
model/bert_model.py:206
Method
train_lm_old
based on the loss, use SGD to update parameter
model/bert_cnn_model.py:239
Method
train_old
based on the loss, use SGD to update parameter
model/bert_cnn_model.py:260
Function
transform_mulitihot_as_dense_list
(multihot_list)
data_util_hdf5.py:207
← previous
101–125 of 125, ranked by callers