Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daiquocnguyen/Graph-Transformer
/ functions
Functions
364 in github.com/daiquocnguyen/Graph-Transformer
⨍
Functions
364
◇
Types & classes
30
Function
adaptive_universal_transformer_tall_actlossw0011
()
UGformerV1_TF/universal_transformer_modified.py:548
Function
adaptive_universal_transformer_tall_actlossw01
()
UGformerV1_TF/universal_transformer_modified.py:537
Function
adaptive_universal_transformer_tiny1
()
UGformerV1_TF/universal_transformer_modified.py:512
Function
adaptive_universal_transformer_with_sru_base1
()
UGformerV1_TF/universal_transformer_modified.py:691
Method
body
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
Method
body
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
Function
chebyshev_polynomials
Calculate Chebyshev polynomials up to order k. Return a list of sparse matrices (tuple representation).
TextGNN/utils.py:168
Function
clean_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
Function
clean_str_sst
Tokenization/string cleaning for the SST dataset
TextGNN/utils.py:231
Function
construct_feed_dict
Construct feed dictionary.
TextGNN/utils.py:157
Function
coo_to_tuple
(sparse_coo)
TextGNN/utils.py:115
Method
forward
(self, inputs, adj, mask)
TextGNN/model_MPGNN.py:46
Method
forward
(self, inputs, adj, mask)
TextGNN/model_MPGNN.py:88
Method
forward
(self, inputs, adj, mask)
TextGNN/model_MPGNN.py:126
Method
forward
(self, input, adj)
TextGNN/model_MPGNN.py:164
Method
forward
(self, Adj_block, node_features)
UGformerV2_PyTorch/UGformerV2.py:36
Method
forward
(self, X_concat, input_x, input_y)
UGformerV1_PyTorch/UGformerV1_UnSup.py:29
Method
forward
(self, inputs, labels)
UGformerV1_PyTorch/sampled_softmax.py:29
Method
forward
(self, input_x, graph_pool, X_concat)
UGformerV1_PyTorch/UGformerV1_Sup.py:30
Function
loadWord2Vec
Read Word Vectors
TextGNN/utils.py:191
Function
normalize_sparse
Row-normalize sparse matrix
UGformerV2_PyTorch/util.py:13
Function
ones
All ones.
gcn_baseline/gcn_layer.py:25
Method
operator !=
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:335
Method
operator ==
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:334
Method
operator&
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:332
Method
operator->
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:331
Function
parse_index_file
Parse index file.
TextGNN/utils.py:14
Function
sample_mask
Create mask.
TextGNN/utils.py:22
Function
separate_data
(graph_list, fold_idx, seed=0)
gcn_baseline/util.py:130
Function
separate_data_idx
(graph_list, fold_idx, seed=0)
UGformerV2_PyTorch/util.py:171
Function
should_continue
(u0, u1, halting_probability, u2, n_updates, u3)
UGformerV1_TF/universal_transformer_modified_utils.py:1196
Function
sparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
UGformerV2_PyTorch/util.py:22
Function
sparse_to_tuple
(sparse_mx)
UGformerV2_PyTorch/util.py:184
Function
sparse_to_tuple
(sparse_mx)
UGformerV1_PyTorch/util.py:159
Function
transformer_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
Function
transformer_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
Function
transformer_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
Function
transformer_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
Function
uniform
Uniform init.
gcn_baseline/gcn_layer.py:9
Function
universal_transformer_base_range1
Range of hyperparameters.
UGformerV1_TF/universal_transformer_modified.py:713
Function
universal_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
Function
universal_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
Function
universal_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
Function
universal_transformer_dwa_base1
()
UGformerV1_TF/universal_transformer_modified.py:593
Function
universal_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
Function
universal_transformer_gru_base1
()
UGformerV1_TF/universal_transformer_modified.py:608
Function
universal_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
Function
universal_transformer_highway_base1
()
UGformerV1_TF/universal_transformer_modified.py:586
Function
universal_transformer_lstm_base1
()
UGformerV1_TF/universal_transformer_modified.py:600
Function
universal_transformer_lstm_tall1
()
UGformerV1_TF/universal_transformer_modified.py:616
Function
universal_transformer_mix_after_ut_base1
()
UGformerV1_TF/universal_transformer_modified.py:660
Function
universal_transformer_mix_before_ut_base1
()
UGformerV1_TF/universal_transformer_modified.py:653
Function
universal_transformer_position_random_timing_tiny1
()
UGformerV1_TF/universal_transformer_modified.py:624
Function
universal_transformer_position_step_timing_tiny1
()
UGformerV1_TF/universal_transformer_modified.py:631
Function
universal_transformer_sepconv_base1
()
UGformerV1_TF/universal_transformer_modified.py:706
Function
universal_transformer_sepconv_big1
()
UGformerV1_TF/universal_transformer_modified.py:699
Function
universal_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
Function
universal_transformer_skip_base1
()
UGformerV1_TF/universal_transformer_modified.py:579
Function
universal_transformer_small_dropconnect1
()
UGformerV1_TF/universal_transformer_modified.py:490
Function
universal_transformer_step_sinusoid_timing_tiny1
()
UGformerV1_TF/universal_transformer_modified.py:638
Function
universal_transformer_teeny1
()
UGformerV1_TF/universal_transformer_modified.py:475
Function
universal_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
Function
universal_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
Function
ut_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
← previous
301–364 of 364, ranked by callers