MCPcopy Create free account

hub / github.com/daiquocnguyen/Graph-Transformer / functions

Functions364 in github.com/daiquocnguyen/Graph-Transformer

Functionadaptive_universal_transformer_tall_actlossw0011
()
UGformerV1_TF/universal_transformer_modified.py:548
Functionadaptive_universal_transformer_tall_actlossw01
()
UGformerV1_TF/universal_transformer_modified.py:537
Functionadaptive_universal_transformer_tiny1
()
UGformerV1_TF/universal_transformer_modified.py:512
Functionadaptive_universal_transformer_with_sru_base1
()
UGformerV1_TF/universal_transformer_modified.py:691
Methodbody
Universal Transformer main model_fn. Args: features: Map of features to the model. Should contain the following: "inputs":
UGformerV1_TF/universal_transformer_modified.py:151
Methodbody
Universal Transformer main model_fn. Args: features: Map of features to the model. Should contain the following: "inputs": Tr
UGformerV1_TF/universal_transformer_modified.py:314
Functionchebyshev_polynomials
Calculate Chebyshev polynomials up to order k. Return a list of sparse matrices (tuple representation).
TextGNN/utils.py:168
Functionclean_str
Tokenization/string cleaning for all datasets except for SST. Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process
TextGNN/utils.py:211
Functionclean_str_sst
Tokenization/string cleaning for the SST dataset
TextGNN/utils.py:231
Functionconstruct_feed_dict
Construct feed dictionary.
TextGNN/utils.py:157
Functioncoo_to_tuple
(sparse_coo)
TextGNN/utils.py:115
Methodforward
(self, inputs, adj, mask)
TextGNN/model_MPGNN.py:46
Methodforward
(self, inputs, adj, mask)
TextGNN/model_MPGNN.py:88
Methodforward
(self, inputs, adj, mask)
TextGNN/model_MPGNN.py:126
Methodforward
(self, input, adj)
TextGNN/model_MPGNN.py:164
Methodforward
(self, Adj_block, node_features)
UGformerV2_PyTorch/UGformerV2.py:36
Methodforward
(self, X_concat, input_x, input_y)
UGformerV1_PyTorch/UGformerV1_UnSup.py:29
Methodforward
(self, inputs, labels)
UGformerV1_PyTorch/sampled_softmax.py:29
Methodforward
(self, input_x, graph_pool, X_concat)
UGformerV1_PyTorch/UGformerV1_Sup.py:30
FunctionloadWord2Vec
Read Word Vectors
TextGNN/utils.py:191
Functionnormalize_sparse
Row-normalize sparse matrix
UGformerV2_PyTorch/util.py:13
Functionones
All ones.
gcn_baseline/gcn_layer.py:25
Methodoperator !=
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:335
Methodoperator ==
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:334
Methodoperator&
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:332
Methodoperator->
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:331
Functionparse_index_file
Parse index file.
TextGNN/utils.py:14
Functionsample_mask
Create mask.
TextGNN/utils.py:22
Functionseparate_data
(graph_list, fold_idx, seed=0)
gcn_baseline/util.py:130
Functionseparate_data_idx
(graph_list, fold_idx, seed=0)
UGformerV2_PyTorch/util.py:171
Functionshould_continue
(u0, u1, halting_probability, u2, n_updates, u3)
UGformerV1_TF/universal_transformer_modified_utils.py:1196
Functionsparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
UGformerV2_PyTorch/util.py:22
Functionsparse_to_tuple
(sparse_mx)
UGformerV2_PyTorch/util.py:184
Functionsparse_to_tuple
(sparse_mx)
UGformerV1_PyTorch/util.py:159
Functiontransformer_decoder_attention_unit
Applies multihead attention function which is parametrised for decoding. Args: x: input (decoder input) hparams: model hyper-parameters
UGformerV1_TF/universal_transformer_modified_utils.py:487
Functiontransformer_decoder_ffn_unit
Applies a feed-forward function which is parametrised for decoding. Args: x: input hparams: model hyper-parameters nonpadding_mask
UGformerV1_TF/universal_transformer_modified_utils.py:444
Functiontransformer_encoder_attention_unit
Applies multihead attention function which is parametrised for encoding. Args: x: input hparams: model hyper-parameters encoder_se
UGformerV1_TF/universal_transformer_modified_utils.py:401
Functiontransformer_encoder_ffn_unit
Applies a feed-forward function which is parametrised for encoding. Args: x: input hparams: model hyper-parameters nonpadding_mask
UGformerV1_TF/universal_transformer_modified_utils.py:353
Functionuniform
Uniform init.
gcn_baseline/gcn_layer.py:9
Functionuniversal_transformer_base_range1
Range of hyperparameters.
UGformerV1_TF/universal_transformer_modified.py:713
Functionuniversal_transformer_basic
Basic Universal Transformer. This model is pretty similar to the vanilla transformer in which weights are shared between layers. For some task
UGformerV1_TF/universal_transformer_modified_utils.py:552
Functionuniversal_transformer_decoder
Universal Transformer decoder function. Prepares all the arguments and the inputs and passes it to a core_universal_transformer_layer to decod
UGformerV1_TF/universal_transformer_modified_utils.py:133
Functionuniversal_transformer_depthwise_attention
universal_transformer with depth-wise attention. It uses an attention mechanism-flipped vertically- over all the states from previous steps to
UGformerV1_TF/universal_transformer_modified_utils.py:764
Functionuniversal_transformer_dwa_base1
()
UGformerV1_TF/universal_transformer_modified.py:593
Functionuniversal_transformer_encoder
Universal Transformer encoder function. Prepares all the arguments and the inputs and passes it to a universal_transformer_layer to encode the
UGformerV1_TF/universal_transformer_modified_utils.py:62
Functionuniversal_transformer_gru_base1
()
UGformerV1_TF/universal_transformer_modified.py:608
Functionuniversal_transformer_highway
Universal Transformer with highway connection. It transforms the state using a block contaaining sel-attention and transition function and
UGformerV1_TF/universal_transformer_modified_utils.py:587
Functionuniversal_transformer_highway_base1
()
UGformerV1_TF/universal_transformer_modified.py:586
Functionuniversal_transformer_lstm_base1
()
UGformerV1_TF/universal_transformer_modified.py:600
Functionuniversal_transformer_lstm_tall1
()
UGformerV1_TF/universal_transformer_modified.py:616
Functionuniversal_transformer_mix_after_ut_base1
()
UGformerV1_TF/universal_transformer_modified.py:660
Functionuniversal_transformer_mix_before_ut_base1
()
UGformerV1_TF/universal_transformer_modified.py:653
Functionuniversal_transformer_position_random_timing_tiny1
()
UGformerV1_TF/universal_transformer_modified.py:624
Functionuniversal_transformer_position_step_timing_tiny1
()
UGformerV1_TF/universal_transformer_modified.py:631
Functionuniversal_transformer_sepconv_base1
()
UGformerV1_TF/universal_transformer_modified.py:706
Functionuniversal_transformer_sepconv_big1
()
UGformerV1_TF/universal_transformer_modified.py:699
Functionuniversal_transformer_skip
Universal Transformer with highway connection. It transforms the state using attention and ffn and wrap this transformation with a skip-all
UGformerV1_TF/universal_transformer_modified_utils.py:676
Functionuniversal_transformer_skip_base1
()
UGformerV1_TF/universal_transformer_modified.py:579
Functionuniversal_transformer_small_dropconnect1
()
UGformerV1_TF/universal_transformer_modified.py:490
Functionuniversal_transformer_step_sinusoid_timing_tiny1
()
UGformerV1_TF/universal_transformer_modified.py:638
Functionuniversal_transformer_teeny1
()
UGformerV1_TF/universal_transformer_modified.py:475
Functionuniversal_transformer_with_gru_as_transition_function
Universal Transformer which uses a gru as transition function. It's kind of like having a gru, filliped vertically next to the Universal Trans
UGformerV1_TF/universal_transformer_modified_utils.py:821
Functionuniversal_transformer_with_lstm_as_transition_function
Universal Transformer which uses a lstm as transition function. It's kind of like having a lstm, filliped vertically next to the Universal Tra
UGformerV1_TF/universal_transformer_modified_utils.py:913
Functionut_function
implements act (position-wise halting). Args: state: 3-D Tensor: [batch_size, length, channel] step: indicates number of steps ta
UGformerV1_TF/universal_transformer_modified_utils.py:1109
← previous301–364 of 364, ranked by callers