MCPcopy Create free account

hub / github.com/MorvanZhou/NLP-Tutorials / functions

Functions287 in github.com/MorvanZhou/NLP-Tutorials

Method__init__
(self, n_head, model_dim, drop_rate)
pytorch/transformer.py:13
Method__init__
(self,model_dim, dropout = 0.0)
pytorch/transformer.py:68
Method__init__
(self, n_head, emb_dim, drop_rate)
pytorch/transformer.py:88
Method__init__
(self,n_head,model_dim,drop_rate)
pytorch/transformer.py:112
Method__init__
(self, n_head, model_dim, drop_rate, n_layer)
pytorch/transformer.py:127
Method__init__
(self, max_len, emb_dim, n_vocab)
pytorch/transformer.py:142
Method__init__
(self, n_vocab, max_len, n_layer = 6, emb_dim=512, n_head = 8, drop_rate=0.1, padding_idx=0)
pytorch/transformer.py:160
Method__init__
( self, model_dim, max_len, num_layer, num_head, n_vocab, lr, max_seg=3, drop_rate=0.2, paddin
pytorch/BERT.py:17
Method__init__
(self,v_dim,emb_dim)
pytorch/skip_gram.py:36
Method__len__
(self)
pytorch/utils.py:37
Method__len__
(self)
pytorch/utils.py:210
Method__len__
(self)
pytorch/utils.py:249
Functionall_mask_kinds
()
visual.py:63
Methodattentions
(self)
GPT.py:90
Methodattentions
(self)
transformer.py:209
Methodattentions
(self)
pytorch/GPT.py:67
Methodbuild
(self, input_shape)
simple_realize/seq2seq_attention.py:22
Methodbuild
(self, input_shape)
simple_realize/seq2seq.py:26
Methodbuild
(self, input_shape)
simple_realize/cnn-lm.py:26
Methodbuild
(self, input_shape)
simple_realize/transformer.py:27
Methodbuild
(self, input_shape)
simple_realize/transformer.py:53
Methodbuild
(self, input_shape)
simple_realize/transformer.py:71
Methodbuild
(self, input_shape)
simple_realize/transformer.py:108
Methodbuild
(self, input_shape)
simple_realize/transformer.py:131
Methodbuild
(self, input_shape)
simple_realize/transformer.py:149
Methodbuild
(self, input_shape)
simple_realize/transformer.py:178
Methodcall
(self, q, k, v, mask, training)
transformer.py:31
Methodcall
(self, x)
transformer.py:64
Methodcall
(self, xz, training, mask)
transformer.py:78
Methodcall
(self, yz, xz, training, yz_look_ahead_mask, xz_pad_mask)
transformer.py:105
Methodcall
(self, yz, xz, training, yz_look_ahead_mask, xz_pad_mask)
transformer.py:120
Methodcall
(self, x)
transformer.py:140
Methodcall
(self,inputs, **kwargs)
simple_realize/seq2seq_attention.py:30
Methodcall
(self, inputs, training=None, mask=None)
simple_realize/seq2seq_attention.py:102
Methodcall
(self, y_true, y_pred)
simple_realize/CBOW.py:106
Methodcall
(self, inputs, training=None, mask=None)
simple_realize/seq2seq.py:74
Methodcall
(self, inputs, training=None, mask=None)
simple_realize/cnn-lm.py:86
Methodcall
(self, inputs, mask=None, **kwargs)
simple_realize/transformer.py:37
Methodcall
(self, x, **kwargs)
simple_realize/transformer.py:60
Methodcall
(self, inputs, mask=None, **kwargs)
simple_realize/transformer.py:78
Methodcall
(self, inputs, mask=None, **kwargs)
simple_realize/transformer.py:96
Methodcall
(self, inputs, look_ahead_mask=None, pad_mask=None, **kwargs)
simple_realize/transformer.py:114
Methodcall
(self, inputs, look_ahead_mask=None, pad_mask=None)
simple_realize/transformer.py:135
Methodcall
(self, x, **kwargs)
simple_realize/transformer.py:162
Methodcall
(self, inputs, training=None, **kwargs)
simple_realize/transformer.py:185
Methodcall
(self, y_true, y_pred)
simple_realize/transformer.py:232
Methodcall
(self, y_true, y_pred)
simple_realize/skip-gram.py:106
Methodforward
(self,x,training=None, mask=None)
pytorch/CBOW.py:44
Methodforward
(self,seqs)
pytorch/ELMo.py:33
Methodforward
(self,seqs, segs, training=False)
pytorch/GPT.py:36
Methodforward
(self,q,k,v,mask,training)
pytorch/transformer.py:27
Methodforward
(self,x)
pytorch/transformer.py:76
Methodforward
(self, xz, training, mask)
pytorch/transformer.py:93
Methodforward
(self, xz, training, mask)
pytorch/transformer.py:105
Methodforward
(self,yz, xz, training, yz_look_ahead_mask,xz_pad_mask)
pytorch/transformer.py:117
Methodforward
(self, yz, xz, training, yz_look_ahead_mask, xz_pad_mask)
pytorch/transformer.py:136
Methodforward
(self, x)
pytorch/transformer.py:153
Methodforward
(self,x,y,training= None)
pytorch/transformer.py:172
Methodforward
(self,x,training=None, mask=None)
pytorch/skip_gram.py:45
Methodmask
abcd-- a010011 b001011 c000111 d000011 -000001 -000000 a is a embedding for a-cd
BERT_window_mask.py:10
Methodmask
(self, seqs)
BERT.py:36
Methodmask
(self, seqs)
pytorch/BERT.py:36
Methodmask_id
(self)
utils.py:157
Methodmask_id
(self)
pytorch/utils.py:214
Methodnum_word
(self)
utils.py:54
Methodnum_word
(self)
utils.py:153
Methodnum_word
(self)
utils.py:186
Methodnum_word
(self)
utils.py:202
Methodnum_word
(self)
pytorch/utils.py:41
Methodnum_word
(self)
pytorch/utils.py:72
Methodnum_word
(self)
pytorch/utils.py:207
Methodnum_word
(self)
pytorch/utils.py:242
Methodon_epoch_end
(self, epoch, logs=None)
simple_realize/seq2seq_attention.py:119
Methodon_epoch_end
(self, epoch, logs=None)
simple_realize/CBOW.py:82
Methodon_epoch_end
(self, epoch, logs=None)
simple_realize/seq2seq.py:91
Methodon_epoch_end
(self, epoch, logs=None)
simple_realize/cnn-lm.py:103
Methodon_epoch_end
(self, epoch, logs=None)
simple_realize/transformer.py:246
Methodon_epoch_end
(self, epoch, logs=None)
simple_realize/skip-gram.py:82
Functionposition_embedding
()
visual.py:107
Methodsample
(self, n)
utils.py:147
Methodsample
(self, n)
utils.py:180
Methodsample
(self, n)
pytorch/utils.py:201
Methodsample
(self, n)
pytorch/utils.py:236
Functionself_attention_line
(bert_or_gpt="bert", case=0)
visual.py:252
Functionself_attention_matrix
(bert_or_gpt="bert", case=0)
visual.py:222
Functionseq2seq_attention
()
visual.py:41
Functionset_soft_gpu
(soft_gpu)
utils.py:249
← previous201–287 of 287, ranked by callers