Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/HGB
/ functions
Functions
2,023 in github.com/THUDM/HGB
⨍
Functions
2,023
◇
Types & classes
293
↓ 1 callers
Method
aggregate
(self, entities, relations)
Recom/KGNN-LS/src/model.py:286
↓ 1 callers
Method
aggregate_all
(self, triple_list_batch, triple_index)
NC/HetGNN/code/tools.py:302
↓ 1 callers
Method
aggregate_all
(self, triple_list_batch, triple_index)
NC/benchmark/methods/HetGNN/code/DBLP/tools.py:307
↓ 1 callers
Method
aggregate_all
(self, triple_list_batch, triple_pair)
NC/benchmark/methods/HetGNN/code/ACM/tools.py:158
↓ 1 callers
Method
aggregate_all
(self, triple_list_batch, triple_pair)
NC/benchmark/methods/HetGNN/code/IMDB/tools.py:160
↓ 1 callers
Method
aggregate_all
(self, triple_list_batch, triple_index)
LP/HetGNN/code/tools.py:302
↓ 1 callers
Method
aggregate_all
(self, triple_list_batch, triple_pair)
LP/benchmark/methods/HetGNN/tools.py:161
↓ 1 callers
Function
average_precision
Score is average precision (area under PR curve) Relevance is binary (nonzero is relevant). Returns: Average precision
Recom/baseline/Model/utility/metrics.py:21
↓ 1 callers
Function
average_precision
Score is average precision (area under PR curve) Relevance is binary (nonzero is relevant). Returns: Average precision
Recom/KGAT/Model/utility/metrics.py:21
↓ 1 callers
Function
baseline_model
(input_adj_train, input_features_train, input_adj_val, input_features_val)
TC/HGAT/model/code/train.py:272
↓ 1 callers
Function
baseline_model
(hg, args, edge_type_count, feature_dims)
TC/HGAT/model/code/base.py:274
↓ 1 callers
Function
build_entity_feature_with_description
(datapath, stopwords=list())
TC/HGAT/build_features.py:27
↓ 1 callers
Method
build_hidden_layer
(self, idx)
NC/RGCN/model.py:131
↓ 1 callers
Method
build_hidden_layer
(self, idx)
NC/benchmark/methods/RGCN/model.py:41
↓ 1 callers
Method
build_hidden_layer
(self, idx)
LP/RGCN/model.py:132
↓ 1 callers
Method
build_hidden_layer
(self, idx)
LP/RGCN-WN18/code/model.py:40
↓ 1 callers
Method
build_hidden_layer
(self, idx)
LP/benchmark/methods/RGCN/model.py:40
↓ 1 callers
Method
build_input_layer
(self)
NC/RGCN/model.py:128
↓ 1 callers
Method
build_input_layer
(self)
NC/benchmark/methods/RGCN/model.py:38
↓ 1 callers
Method
build_input_layer
(self)
LP/RGCN/model.py:129
↓ 1 callers
Method
build_input_layer
(self)
LP/RGCN-WN18/code/model.py:37
↓ 1 callers
Method
build_input_layer
(self)
LP/benchmark/methods/RGCN/model.py:37
↓ 1 callers
Method
build_model
(self)
NC/RGCN/model.py:113
↓ 1 callers
Method
build_model
(self)
NC/benchmark/methods/RGCN/model.py:25
↓ 1 callers
Method
build_model
(self)
LP/RGCN/model.py:114
↓ 1 callers
Method
build_model
(self)
LP/RGCN-WN18/code/model.py:24
↓ 1 callers
Method
build_model
(self)
LP/benchmark/methods/RGCN/model.py:24
↓ 1 callers
Method
build_output_layer
(self)
NC/RGCN/model.py:134
↓ 1 callers
Method
build_output_layer
(self)
NC/benchmark/methods/RGCN/model.py:44
↓ 1 callers
Method
build_output_layer
(self)
LP/RGCN/model.py:135
↓ 1 callers
Method
build_output_layer
(self)
LP/RGCN-WN18/code/model.py:43
↓ 1 callers
Method
build_output_layer
(self)
LP/benchmark/methods/RGCN/model.py:43
↓ 1 callers
Function
build_relation_adj
build a AIFB-relation graph adjacency based on random walk from the original graph
NC/benchmark/methods/RSHN/build_coarsened_line_graph/relation_graph.py:8
↓ 1 callers
Function
build_relation_adj
build a AIFB-relation graph adjacency based on random walk from the original graph
NC/RSHN/build_coarsened_line_graph/relation_graph.py:8
↓ 1 callers
Function
build_text_feature
(datapath, DATASETS, rho=0.3, lp=0.5, stopwords=list())
TC/HGAT/build_features.py:71
↓ 1 callers
Function
build_topic_feature_sklearn
(datapath, DATASETS, TopicNum=20, stopwords=list(), train=False)
TC/HGAT/build_features.py:151
↓ 1 callers
Function
build_x
()
NC/RSHN/model/RSHN.py:37
↓ 1 callers
Function
build_x
()
NC/RSHN/model/RSHN_gnn.py:44
↓ 1 callers
Function
calc_filtered_mrr
(embedding, w, train_triplets, valid_triplets, test_triplets, hits=[])
LP/RGCN/utils.py:326
↓ 1 callers
Function
calc_raw_mrr
(embedding, w, test_triplets, hits=[], eval_bz=100)
LP/RGCN/utils.py:218
↓ 1 callers
Method
calc_score
(self, embedding, triplets)
LP/RGCN/link_predict.py:59
↓ 1 callers
Method
calc_score
(self, embedding, triplets)
LP/RGCN-WN18/code/model.py:78
↓ 1 callers
Function
change_to_homo
(input_adj_train, input_features_train, input_adj_val, input_features_val)
TC/HGAT/model/code/train.py:230
↓ 1 callers
Function
change_to_homo
(input_adj_train, input_features_train)
TC/HGAT/model/code/base.py:238
↓ 1 callers
Function
comp_deg_norm
(g)
LP/RGCN/utils.py:131
↓ 1 callers
Method
compute_sample_p
(self)
NC/HetGNN/code/data_generator.py:394
↓ 1 callers
Method
compute_sample_p
(self)
NC/benchmark/methods/HetGNN/code/DBLP/data_generator.py:217
↓ 1 callers
Method
compute_sample_p
(self)
NC/benchmark/methods/HetGNN/code/ACM/data_generator.py:133
↓ 1 callers
Method
compute_sample_p
(self)
NC/benchmark/methods/HetGNN/code/IMDB/data_generator.py:150
↓ 1 callers
Method
compute_sample_p
(self)
LP/HetGNN/code/data_generator.py:394
↓ 1 callers
Method
compute_sample_p
(self)
LP/benchmark/methods/HetGNN/data_generator.py:147
↓ 1 callers
Function
construct_adj
(args, kg, entity_num)
Recom/KGCN/src/data_loader.py:90
↓ 1 callers
Function
construct_adj
(args, kg, entity_num)
Recom/KGNN-LS/src/data_loader.py:88
↓ 1 callers
Function
construct_kg
(kg_np)
Recom/KGCN/src/data_loader.py:73
↓ 1 callers
Function
construct_kg
(kg_np)
Recom/KGNN-LS/src/data_loader.py:71
↓ 1 callers
Function
contains_isolated_nodes
(edge_index, num_nodes=None)
NC/benchmark/methods/RSHN/torch_geometric/utils/isolated.py:7
↓ 1 callers
Function
contains_isolated_nodes
(edge_index, num_nodes=None)
NC/RSHN/torch_geometric/utils/isolated.py:7
↓ 1 callers
Function
contains_self_loops
(edge_index)
NC/benchmark/methods/RSHN/torch_geometric/utils/loop.py:6
↓ 1 callers
Function
contains_self_loops
(edge_index)
NC/RSHN/torch_geometric/utils/loop.py:6
↓ 1 callers
Function
convert_kg
()
Recom/KGCN/src/preprocess.py:75
↓ 1 callers
Function
convert_kg
()
Recom/KGNN-LS/src/preprocess.py:75
↓ 1 callers
Function
convert_rating
()
Recom/KGCN/src/preprocess.py:21
↓ 1 callers
Function
convert_rating
()
Recom/KGNN-LS/src/preprocess.py:21
↓ 1 callers
Method
create_sparsity_split
(self)
Recom/baseline/Model/utility/load_data.py:158
↓ 1 callers
Method
create_sparsity_split
(self)
Recom/KGAT/Model/utility/load_data.py:162
↓ 1 callers
Function
dataset_split
(rating_np, args)
Recom/KGCN/src/data_loader.py:31
↓ 1 callers
Function
dataset_split
(rating_np, args)
Recom/KGNN-LS/src/data_loader.py:31
↓ 1 callers
Method
de_dismult
(self, x, edge_index)
LP/GATNE/src/homGNN.py:171
↓ 1 callers
Method
de_dismult
(self, x, edge_index)
LP/GATNE/src/homGNN.py:222
↓ 1 callers
Function
degree
Computes the degree of a given index tensor. Args: index (LongTensor): Source or target indices of edges. num_nodes (int, optiona
NC/benchmark/methods/RSHN/torch_geometric/utils/degree.py:6
↓ 1 callers
Function
degree
Computes the degree of a given index tensor. Args: index (LongTensor): Source or target indices of edges. num_nodes (int, optiona
NC/RSHN/torch_geometric/utils/degree.py:6
↓ 1 callers
Method
download
(self)
NC/benchmark/methods/RSHN/torch_geometric/data/dataset.py:30
↓ 1 callers
Method
download
(self)
NC/RSHN/torch_geometric/data/dataset.py:30
↓ 1 callers
Function
download_and_extract
(path)
NC/benchmark/scripts/data_loader.py:15
↓ 1 callers
Function
download_and_extract
(path)
LP/benchmark/scripts/data_loader.py:15
↓ 1 callers
Function
download_url
(url, folder, log=True)
NC/benchmark/methods/RSHN/torch_geometric/data/download.py:9
↓ 1 callers
Function
download_url
(url, folder, log=True)
NC/RSHN/torch_geometric/data/download.py:9
↓ 1 callers
Function
early_stopping
(log_value, best_value, stopping_step, expected_order='acc', flag_step=100)
Recom/baseline/Model/utility/helper.py:38
↓ 1 callers
Method
edge_softmax
(self, g)
NC/MAGNN/model/base_MAGNN.py:66
↓ 1 callers
Method
edge_softmax
(self, g)
NC/benchmark/methods/MAGNN/model/base_MAGNN.py:66
↓ 1 callers
Method
edge_softmax
(self, g)
LP/MAGNN/model/base_MAGNN.py:66
↓ 1 callers
Method
edge_softmax
(self, g)
LP/benchmark/methods/MAGNN/model/base_MAGNN.py:66
↓ 1 callers
Method
edge_softmax
(self, g)
LP/benchmark/methods/MAGNN_ini/model/base_MAGNN.py:66
↓ 1 callers
Function
encode_onehot
(labels)
TC/HGAT/model/code/utils.py:140
↓ 1 callers
Method
eval
(self, sess, feed_dict)
Recom/KGCN/src/model.py:194
↓ 1 callers
Method
eval
(self, sess, feed_dict)
Recom/KGNN-LS/src/model.py:192
↓ 1 callers
Method
evaluate
(self, pred)
NC/benchmark/scripts/data_loader.py:182
↓ 1 callers
Method
evaluate_AUC_MRR
(self)
LP/benchmark/scripts/LP_AUC_MRR.py:49
↓ 1 callers
Method
evaluate_F1
(self,pred_label)
NC/benchmark/scripts/NC_F1.py:57
↓ 1 callers
Function
evaluate_results_nc
(embeddings, labels, num_classes)
NC/benchmark/methods/MAGNN/utils/tools.py:51
↓ 1 callers
Function
extract_tar
(path, folder, mode='r:gz', log=True)
NC/benchmark/methods/RSHN/torch_geometric/data/extract.py:15
↓ 1 callers
Function
extract_tar
(path, folder, mode='r:gz', log=True)
NC/RSHN/torch_geometric/data/extract.py:15
↓ 1 callers
Function
extract_zip
(zip_path, extract_path)
NC/benchmark/scripts/NC_F1.py:87
↓ 1 callers
Function
extract_zip
(zip_path, extract_path)
LP/benchmark/scripts/LP_AUC_MRR.py:115
↓ 1 callers
Function
false_negative
(pred, target, num_classes)
NC/benchmark/methods/RSHN/torch_geometric/utils/metric.py:34
↓ 1 callers
Function
false_negative
r"""Computes the number of false negative predictions. Args: pred (Tensor): The predictions. target (Tensor): The targets.
NC/benchmark/methods/GTN/utils.py:73
↓ 1 callers
Function
false_negative
(pred, target, num_classes)
NC/RSHN/torch_geometric/utils/metric.py:34
↓ 1 callers
Function
false_negative
r"""Computes the number of false negative predictions. Args: pred (Tensor): The predictions. target (Tensor): The targets.
NC/GTN/utils.py:73
↓ 1 callers
Function
false_positive
(pred, target, num_classes)
NC/benchmark/methods/RSHN/torch_geometric/utils/metric.py:26
↓ 1 callers
Function
false_positive
r"""Computes the number of false positive predictions. Args: pred (Tensor): The predictions. target (Tensor): The targets.
NC/benchmark/methods/GTN/utils.py:55
← previous
next →
501–600 of 2,023, ranked by callers