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
↓ 1 callers
Method
__init__
(self, **kwargs)
gcn_baseline/gcn_layer.py:76
↓ 1 callers
Function
__pyx_convert_pair_to_py_long____long
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:5400
↓ 1 callers
Function
__pyx_convert_unordered_set_from_py_long
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:4997
↓ 1 callers
Function
__pyx_convert_vector_to_py_std_3a__3a_pair_3c_long_2c_long_3e___
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:5461
↓ 1 callers
Function
__pyx_f_5numpy__util_dtypestring
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:3744
↓ 1 callers
Function
__pyx_find_code_object
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:7267
↓ 1 callers
Function
__pyx_insert_code_object
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:7281
↓ 1 callers
Function
__pyx_pf_11log_uniform_17LogUniformSampler_10probability
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:2419
↓ 1 callers
Function
__pyx_pf_11log_uniform_17LogUniformSampler_12__reduce_cython__
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:2483
↓ 1 callers
Function
__pyx_pf_11log_uniform_17LogUniformSampler_14__setstate_cython__
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:2537
↓ 1 callers
Function
__pyx_pf_11log_uniform_17LogUniformSampler_2__dealloc__
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:1913
↓ 1 callers
Function
__pyx_pf_11log_uniform_17LogUniformSampler_4sample_unique
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:2007
↓ 1 callers
Function
__pyx_pf_11log_uniform_17LogUniformSampler_6sample
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:2143
↓ 1 callers
Function
__pyx_pf_11log_uniform_17LogUniformSampler_8accidental_match
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:2349
↓ 1 callers
Function
__pyx_pf_11log_uniform_17LogUniformSampler___cinit__
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:1852
↓ 1 callers
Function
__pyx_pf_5numpy_7ndarray_2__releasebuffer__
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:3354
↓ 1 callers
Function
__pyx_pf_5numpy_7ndarray___getbuffer__
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:2592
↓ 1 callers
Function
__pyx_pw_11log_uniform_17LogUniformSampler_1__cinit__
proto*/
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:1804
↓ 1 callers
Function
__pyx_pw_11log_uniform_17LogUniformSampler_3__dealloc__
proto*/
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:1904
↓ 1 callers
Method
_call
(self, inputs)
gcn_baseline/gcn_layer.py:90
↓ 1 callers
Method
_log_vars
(self)
gcn_baseline/gcn_layer.py:102
↓ 1 callers
Method
accidental_matches
UGformerV1_PyTorch/log_uniform/Log_Uniform_Sampler.cpp:34
↓ 1 callers
Function
add_depth_embedding
Add n-dimensional embedding as the depth embedding (timing signal). Adds embeddings to represent the position of the step in the recurrent tow
UGformerV1_TF/universal_transformer_modified_utils.py:1790
↓ 1 callers
Function
add_position_timing_signal
Add n-dimensional embedding as the position (horizontal) timing signal. Args: x: a tensor with shape [batch, length, depth] step: step
UGformerV1_TF/universal_transformer_modified_utils.py:1849
↓ 1 callers
Function
add_step_timing_signal
Add n-dimensional embedding as the step (vertical) timing signal. Args: x: a tensor with shape [batch, length, depth] step: step h
UGformerV1_TF/universal_transformer_modified_utils.py:1898
↓ 1 callers
Function
chebyshev_recurrence
(t_k_minus_one, t_k_minus_two, scaled_lap)
TextGNN/utils.py:181
↓ 1 callers
Function
cross_entropy
(pred, soft_targets)
UGformerV2_PyTorch/train_UGformerV2.py:88
↓ 1 callers
Function
cross_entropy
(pred, soft_targets)
UGformerV1_PyTorch/train_UGformerV1_Sup.py:128
↓ 1 callers
Method
decode
Decode Universal Transformer outputs from encoder representation. It is similar to "transformer.decode", but it uses "universal_transforme
UGformerV1_TF/universal_transformer_modified.py:90
↓ 1 callers
Method
encode
Encode Universal Transformer inputs. It is similar to "transformer.encode", but it uses "universal_transformer_util.universal_transformer_
UGformerV1_TF/universal_transformer_modified.py:44
↓ 1 callers
Method
encode
Encode transformer inputs. Args: inputs: Transformer inputs [batch_size, input_length, input_height, hidden_dim] which will be
UGformerV1_TF/universal_transformer_modified.py:276
↓ 1 callers
Function
eval_step
(input_x, graph_pool, X_concat, one_hot_labels)
UGformerV1_TF/train_UGformerV1_Sup.py:188
↓ 1 callers
Function
evaluate
()
UGformerV2_PyTorch/train_UGformerV2.py:113
↓ 1 callers
Function
evaluate
()
UGformerV1_PyTorch/train_UGformerV1_UnSup.py:159
↓ 1 callers
Function
evaluate
()
UGformerV1_PyTorch/train_UGformerV1_Sup.py:159
↓ 1 callers
Method
gatedGNN
(self, x, adj)
TextGNN/model_MPGNN.py:33
↓ 1 callers
Function
get_Adj_matrix
(graph)
UGformerV2_PyTorch/train_UGformerV2.py:56
↓ 1 callers
Function
get_Adj_matrix
(batch_graph)
UGformerV1_PyTorch/train_UGformerV1_UnSup.py:58
↓ 1 callers
Function
get_Adj_matrix
(batch_graph)
UGformerV1_PyTorch/train_UGformerV1_Sup.py:58
↓ 1 callers
Function
get_Adj_matrix
(batch_graph)
gcn_baseline/train_unsup_gcn.py:53
↓ 1 callers
Function
get_Adj_matrix
(batch_graph)
UGformerV1_TF/train_UGformerV1_UnSup.py:65
↓ 1 callers
Function
get_Adj_matrix
(batch_graph)
UGformerV1_TF/train_UGformerV1_Sup.py:65
↓ 1 callers
Function
get_batch_data
(selected_idx)
UGformerV1_PyTorch/train_UGformerV1_UnSup.py:100
↓ 1 callers
Function
get_batch_data
(batch_graph)
gcn_baseline/train_unsup_gcn.py:99
↓ 1 callers
Function
get_batch_data
(batch_graph)
UGformerV1_TF/train_UGformerV1_UnSup.py:109
↓ 1 callers
Function
get_graphpool
(batch_graph)
UGformerV1_PyTorch/train_UGformerV1_UnSup.py:73
↓ 1 callers
Function
get_graphpool
(batch_graph)
UGformerV1_PyTorch/train_UGformerV1_Sup.py:73
↓ 1 callers
Function
get_graphpool
(batch_graph)
gcn_baseline/train_unsup_gcn.py:74
↓ 1 callers
Function
get_graphpool
(batch_graph)
UGformerV1_TF/train_UGformerV1_UnSup.py:80
↓ 1 callers
Function
get_graphpool
(batch_graph)
UGformerV1_TF/train_UGformerV1_Sup.py:82
↓ 1 callers
Function
get_idx_nodes
(selected_graph_idx)
UGformerV1_PyTorch/train_UGformerV1_UnSup.py:95
↓ 1 callers
Function
get_idx_nodes
(selected_graph_idx)
gcn_baseline/train_unsup_gcn.py:94
↓ 1 callers
Function
get_idx_nodes
(selected_graph_idx)
UGformerV1_TF/train_UGformerV1_UnSup.py:104
↓ 1 callers
Function
get_layer_uid
Helper function, assigns unique layer IDs.
gcn_baseline/gcn_layer.py:36
↓ 1 callers
Function
get_ut_layer
Provides the function that is used in universal transforemr steps. Args: x: input hparams: model hyper-parameters ffn_unit: feed-f
UGformerV1_TF/universal_transformer_modified_utils.py:264
↓ 1 callers
Function
label_smoothing
if smoothing == 0, it's one-hot method if 0 < smoothing < 1, it's smooth method
UGformerV2_PyTorch/UGformerV2.py:89
↓ 1 callers
Function
label_smoothing
if smoothing == 0, it's one-hot method if 0 < smoothing < 1, it's smooth method
UGformerV1_PyTorch/UGformerV1_Sup.py:45
↓ 1 callers
Function
label_smoothing
(inputs, epsilon=0.1)
UGformerV1_TF/UGformerV1_Sup.py:73
↓ 1 callers
Function
load_data
Loads input data from gcn/data directory ind.dataset_str.x => the feature vectors and adjacency matrix of the training instances as list;
TextGNN/utils.py:29
↓ 1 callers
Function
load_data
dataset: name of dataset test_proportion: ratio of test train split seed: random seed for random splitting of dataset
UGformerV2_PyTorch/util.py:53
↓ 1 callers
Function
load_data
dataset: name of dataset test_proportion: ratio of test train split seed: random seed for random splitting of dataset
gcn_baseline/util.py:28
↓ 1 callers
Function
log_uniform
(class_id, range_max)
UGformerV1_PyTorch/log_uniform/test.py:14
↓ 1 callers
Function
log_uniform_distribution
(range_max)
UGformerV1_PyTorch/log_uniform/test.py:17
↓ 1 callers
Function
log_uniform_sample
(N, size)
UGformerV1_PyTorch/log_uniform/test.py:8
↓ 1 callers
Method
probability
UGformerV1_PyTorch/log_uniform/Log_Uniform_Sampler.cpp:18
↓ 1 callers
Function
remove_pads
(x)
UGformerV1_TF/universal_transformer_modified_utils.py:1706
↓ 1 callers
Method
reset_parameters
(self)
TextGNN/model_MPGNN.py:158
↓ 1 callers
Method
reset_parameters
(self)
UGformerV2_PyTorch/UGformerV2.py:75
↓ 1 callers
Method
reset_parameters
(self)
UGformerV1_PyTorch/sampled_softmax.py:25
↓ 1 callers
Method
sample_unique
UGformerV1_PyTorch/log_uniform/Log_Uniform_Sampler.cpp:73
↓ 1 callers
Method
sampled
(self, inputs, labels, sample_values)
UGformerV1_PyTorch/sampled_softmax.py:36
↓ 1 callers
Function
separate_data
(graph_list, fold_idx, seed=0)
UGformerV2_PyTorch/util.py:155
↓ 1 callers
Function
separate_data
(graph_list, fold_idx, seed=0)
UGformerV1_PyTorch/util.py:130
↓ 1 callers
Function
separate_data
(graph_list, fold_idx, seed=0)
UGformerV1_TF/util.py:130
↓ 1 callers
Function
separate_data_idx
(graph_list, fold_idx, seed=0)
UGformerV1_PyTorch/util.py:146
↓ 1 callers
Function
separate_data_idx
(graph_list, fold_idx, seed=0)
gcn_baseline/util.py:146
↓ 1 callers
Function
separate_data_idx
(graph_list, fold_idx, seed=0)
UGformerV1_TF/util.py:146
↓ 1 callers
Function
sparse_dropout
Dropout for sparse tensors.
gcn_baseline/gcn_layer.py:45
↓ 1 callers
Function
sparse_to_tuple
Convert sparse matrix to tuple representation.
TextGNN/utils.py:96
↓ 1 callers
Function
sparse_to_tuple
(sparse_mx)
UGformerV1_TF/util.py:159
↓ 1 callers
Function
train
()
TextGNN/train_TextGNN.py:87
↓ 1 callers
Function
train
()
UGformerV2_PyTorch/train_UGformerV2.py:94
↓ 1 callers
Function
train
()
UGformerV1_PyTorch/train_UGformerV1_UnSup.py:140
↓ 1 callers
Function
train
()
UGformerV1_PyTorch/train_UGformerV1_Sup.py:137
↓ 1 callers
Function
train_step
(Adj_block, X_concat, num_features_nonzero, idx_nodes)
gcn_baseline/train_unsup_gcn.py:158
↓ 1 callers
Function
train_step
A single training step
UGformerV1_TF/train_UGformerV1_UnSup.py:180
↓ 1 callers
Function
train_step
(input_x, graph_pool, X_concat, one_hot_labels)
UGformerV1_TF/train_UGformerV1_Sup.py:177
↓ 1 callers
Function
transformer_teeny1
()
UGformerV1_TF/universal_transformer_modified.py:466
↓ 1 callers
Function
universal_transformer_act
ACT based models. Implementations of all act models are based on craffel@'s cl/160711592. Args: x: input hparams: model hyper-para
UGformerV1_TF/universal_transformer_modified_utils.py:1026
↓ 1 callers
Function
universal_transformer_act_accumulated
The UTAct layer where the final state is the accumulation of all states. (similar to the main ACT paper: --> check the issue of differentiabili
UGformerV1_TF/universal_transformer_modified_utils.py:1216
↓ 1 callers
Function
universal_transformer_act_basic
Basic universal_transformer with ACT based on remainder-distribution ACT. Args: x: input hparams: model hyper-parameters ffn_unit:
UGformerV1_TF/universal_transformer_modified_utils.py:1065
↓ 1 callers
Function
universal_transformer_act_global
The UTAct with global halting probability (not position-wise). Args: x: input hparams: model hyper-parameters ffn_unit: feed-forw
UGformerV1_TF/universal_transformer_modified_utils.py:1367
↓ 1 callers
Function
universal_transformer_act_random
universal_transformer with ACT with random halting probability. Args: x: input hparams: model hyper-parameters ffn_unit: feed-forw
UGformerV1_TF/universal_transformer_modified_utils.py:1509
↓ 1 callers
Function
universal_transformer_big1
()
UGformerV1_TF/universal_transformer_modified.py:442
↓ 1 callers
Function
universal_transformer_tall1
()
UGformerV1_TF/universal_transformer_modified.py:483
↓ 1 callers
Function
zeros
All zeros.
gcn_baseline/gcn_layer.py:20
Function
CYTHON_MAYBE_UNUSED_VAR
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:261
Method
Log_Uniform_Sampler
UGformerV1_PyTorch/log_uniform/Log_Uniform_Sampler.cpp:10
Function
PY_UINT64_T __Pyx_get_object_dict_version
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:7183
Function
PY_UINT64_T __Pyx_get_tp_dict_version
UGformerV1_PyTorch/log_uniform/log_uniform.cpp:7179
← previous
next →
101–200 of 364, ranked by callers