repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/ewd/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:34:59.696552
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/ewd/ewd.py
null
null
null
null
null
null
Python
2026-05-04T02:34:59.850038
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/exp/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:34:59.872589
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/exp/exp.py
null
null
null
null
null
null
Python
2026-05-04T02:34:59.899682
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/exp_edit/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:34:59.907462
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/exp_edit/cython_files/setup.py
null
null
null
null
null
null
Python
2026-05-04T02:34:59.911792
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/exp_edit/exp_edit.py
null
null
null
null
null
null
Python
2026-05-04T02:34:59.921213
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/exp_edit/mersenne.py
null
null
null
null
null
null
Python
2026-05-04T02:34:59.966721
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/exp_gumbel/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.011099
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/exp_gumbel/exp_gumbel.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.265764
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/ie/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.272376
from .ie import IE from .ie import IEConfig from .model import ( Classifier, Unified_Feature_Translator ) from .navigator import Navigator
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/ie/calculate_auroc_tpr.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.447297
import os import json from copy import deepcopy import pandas as pd import sklearn.metrics as metrics import numpy as np def get_roc_aur(human_z, machine_z): assert len(human_z) == len(machine_z) baseline_z_scores = np.array(human_z) watermark_z_scores = np.array(machine_z) all_scores = np.concatenat...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/ie/ie.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.460426
import os import torch from math import sqrt from transformers import AutoModel, AutoTokenizer from functools import partial from utils.utils import load_config_file from utils.transformers_config import TransformersConfig from transformers import LogitsProcessor, LogitsProcessorList from .model import Classifier, Unif...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/ie/navigator.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.482804
import json import numpy as np import pandas as pd from rich import print from .calculate_auroc_tpr import get_roc_aur, get_tpr class Navigator: def __init__(self, task_name, beam_size, entropy_list, base_evaluation_file, base_human_file, direction='right'): self.task_name = task_name self.beam_si...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/ie/model.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.484270
import torch import torch.nn as nn from transformers import AutoTokenizer import torch.nn.functional as F class Classifier(nn.Module): def __init__(self, input_dim, *args, **kwargs): super().__init__() self.fc1 = nn.Linear(input_dim, 512) self.fc2 = nn.Linear(512, 256) ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/its_edit/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.500611
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
THU-BPM/MarkLLM
https://github.com/THU-BPM/MarkLLM
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
watermark/its_edit/cython_files/setup.py
null
null
null
null
null
null
Python
2026-05-04T02:35:00.530811
# Copyright 2024 THU-BPM MarkLLM. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/parts/memory.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.887940
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/algorithms/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.889482
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/algorithms/ppo/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.895901
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/scripts/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.897814
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.900490
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/parts/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.902174
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/algorithms/ppo/utility.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.931337
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/algorithms/ppo/ppo.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.991317
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/parts/normalize.py
null
null
null
null
null
null
Python
2026-05-04T02:35:02.992273
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/parts/iterate_sequences.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.007122
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/scripts/configs.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.744433
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/attr_dict.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.745124
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/scripts/networks.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.747283
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/scripts/train.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.748365
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/scripts/utility.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.749420
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/scripts/train_ppo_test.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.782284
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/attr_dict_test.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.784197
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/scripts/visualize.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.791400
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:03.927712
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/batch_env.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.009502
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/in_graph_env.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.549101
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/in_graph_batch_env.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.550422
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/mock_environment.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.551566
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/count_weights_test.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.747513
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/mock_algorithm.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.749601
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/loop_test.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.750561
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/nested_test.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.751691
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/nested.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.798841
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/count_weights.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.808931
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/loop.py
null
null
null
null
null
null
Python
2026-05-04T02:35:04.951921
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/simulate_test.py
null
null
null
null
null
null
Python
2026-05-04T02:35:05.565875
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T02:35:05.771497
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/streaming_mean.py
null
null
null
null
null
null
Python
2026-05-04T02:35:05.771938
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/simulate.py
null
null
null
null
null
null
Python
2026-05-04T02:35:05.975861
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/wrappers_test.py
null
null
null
null
null
null
Python
2026-05-04T02:35:05.976428
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
google-research/batch-ppo
https://github.com/google-research/batch-ppo
null
null
null
null
976
null
null
apache-2.0
null
null
null
null
null
null
null
agents/tools/wrappers.py
null
null
null
null
null
null
Python
2026-05-04T02:35:07.739737
# Copyright 2017 The TensorFlow Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/node_classification/dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.684365
from openhgnn.dataset import generate_random_hg from dgl import transforms as T from dgl import DGLHeteroGraph from dgl.data import DGLDataset import torch as th category = 'author' meta_paths_dict = {'APA': [('author', 'author-paper', 'paper'), ('paper', 'rev_author-paper', 'author')]} class MyNCDataset(DGLDataset)...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
docs/source/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.685758
import datetime import doctest import sphinx_rtd_theme import openhgnn # build docs may error here extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.mathjax', 'sphinx.ext.napoleon', 'sphinx.ext.viewcode', 'sphi...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/link_prediction/dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.687065
import torch as th from openhgnn.dataset import generate_random_hg from dgl import transforms as T from dgl import DGLHeteroGraph from dgl.data import DGLDataset meta_paths_dict = {'APA': [('author', 'author-paper', 'paper'), ('paper', 'rev_author-paper', 'author')]} target_link = [('author', 'author-paper', 'paper')]...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/knowledge_graph/train.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.688173
import argparse import dgl import torch from openhgnn import Experiment from openhgnn.dataset import AsLinkPredictionDataset from dataset import MyDataset, target_link if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='TransE', type=str, help='name of mo...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/graph_representation_learning/train.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.697780
import argparse from openhgnn import Experiment from dataset import MyDataset if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='Metapath2vec', type=str, help='name of models') parser.add_argument('--gpu', '-g', default='-1', type=int, help='-1 means...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/knowledge_graph/dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.699535
from openhgnn.dataset import generate_random_hg from dgl import transforms as T from dgl import DGLHeteroGraph from dgl.data import DGLDataset meta_paths_dict = {'APA': [('author', 'author-paper', 'paper'), ('paper', 'rev_author-paper', 'author')]} target_link = [('author', 'author-paper', 'paper')] class MyDataset(...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/link_prediction/train.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.700207
import argparse from openhgnn import Experiment from openhgnn.dataset import AsLinkPredictionDataset from dataset import MyLPDatasetWithPredEdges, target_link, target_link_r if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='RGCN', type=str, help='name o...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/link_prediction/inference.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.702041
import argparse from openhgnn import Experiment from openhgnn.dataset import AsLinkPredictionDataset from dataset import MyLPDatasetWithPredEdges, target_link, target_link_r if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='RGCN', type=str, help='name o...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/knowledge_graph/inference.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.728187
import argparse import dgl import torch from openhgnn import Experiment from openhgnn.dataset import AsLinkPredictionDataset from dataset import MyDataset, target_link if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='TransE', type=str, help='name of ...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/graph_representation_learning/dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:10.729561
from openhgnn.dataset import generate_random_hg from dgl import transforms as T from dgl import DGLHeteroGraph from dgl.data import DGLDataset meta_paths_dict = {'APA': [('author', 'author-paper', 'paper'), ('paper', 'rev_author-paper', 'author')]} class MyDataset(DGLDataset): def __init__(self): super()...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/basic_usage/run_experiment.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.520707
from openhgnn import Experiment if __name__ == '__main__': experiment = Experiment(model='RGCN', dataset='acm4GTN', task='node_classification', gpu=-1, lr=0.05, hidden_dim=64, max_epoch=30, num_layers=3) experiment.run()
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
main.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.521245
# @Time : 2021/1/28 # @Author : Tianyu Zhao # @Email : tyzhao@bupt.edu.cn import argparse from openhgnn.experiment import Experiment if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='GTN', type=str, help='name of models') parser.add_argument('-...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/node_classification/train.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.523051
import argparse from openhgnn import Experiment from openhgnn.dataset import AsNodeClassificationDataset from dataset import MyNCDataset if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='RGCN', type=str, help='name of models') parser.add_argument('-...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.705740
from .models import * from .dataset import * from .layers import * from .trainerflow import * from .tasks import * from .utils import * from .sampler import * from .experiment import *
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/customization/custom_node_classification_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.707118
import torch as th from openhgnn import Experiment from openhgnn.dataset import AsNodeClassificationDataset, generate_random_hg from dgl import transforms as T from dgl import DGLHeteroGraph from dgl.data import DGLDataset from openhgnn.dataset import ACM4GTNDataset category = 'author' meta_paths_dict = {'APA': [('aut...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/customization/custom_model.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.708332
import torch.nn as nn import dgl.nn as dglnn import torch.nn.functional as F from openhgnn.dataset import IMDB4GTNDataset, HGBDataset from openhgnn import Experiment # Define a Heterograph Conv model. The example is from https://docs.dgl.ai/guide/training-node.html#heterogeneous-graph class MyRGCN(nn.Module): de...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
main_GUI.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.709694
import tkinter as tk from tkinter import ttk from openhgnn.experiment import Experiment import threading import sys # 定义一个类来捕获stdout并输出到tkinter的Text控件 class OutputRedirector: def __init__(self, widget): self.widget = widget def write(self, text): self.widget.insert(tk.END, text) self....
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/applications/node_classification/inference.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.801594
import argparse from openhgnn import Experiment from openhgnn.dataset import AsNodeClassificationDataset from dataset import MyNCDataset if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--model', '-m', default='RGCN', type=str, help='name of models') parser.add_argument('-...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/customization/custom_link_prediction_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:11.802979
import torch as th from openhgnn import Experiment from openhgnn.dataset import AsLinkPredictionDataset, generate_random_hg from dgl import transforms as T from dgl import DGLHeteroGraph from dgl.data import DGLDataset from dgl.dataloading.negative_sampler import GlobalUniform meta_paths_dict = {'APA': [('author', 'au...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/auto/hpo.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.151979
from ..trainerflow import build_flow import optuna from ..utils import set_random_seed def hpo_experiment(args, trainerflow, **kwargs): logger = args.logger tool = AutoML(args, trainerflow, n_trials=args.hpo_trials, search_space=args.hpo_search_space, logger=logger) result = tool.run() logger.info("[H...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/auto/hpo_space.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.154420
def func_search(trial): return { "lr": trial.suggest_categorical("lr", [1e-3, 5e-3, 1e-2]), "hidden_size": trial.suggest_categorical("hidden_size", [8, 16, 32]), "dropout": trial.suggest_uniform("dropout", 0.0, 0.5), 'num_layers': trial.suggest_int('num_layers', 2, 3) }
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/AbnormEventDetectionDataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.284698
import dgl import os import random import torch from dgl.data.utils import load_graphs, download, extract_archive import torch as th from . import BaseDataset, register_dataset from tqdm import tqdm @register_dataset('abnorm_event_detection') class AbnormEventDetectionDataset(BaseDataset): r""" The class *Ab...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/AdapropI_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.295614
import os import torch import numpy as np from scipy.sparse import csr_matrix from collections import defaultdict import requests import zipfile import io class AdapropIDataLoader: def __init__(self, args): self.args = args self.dir = './data' name1=self.args.dataset_name name2=name...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/AdapropT_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.364514
import io import os import torch from scipy.sparse import csr_matrix import numpy as np from collections import defaultdict import requests import zipfile class AdapropTDataLoader: def __init__(self, args): self.args = args # self.task_dir = task_dir = args.data_path # current_dir = os.get...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/config.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.375729
import configparser import re import numpy as np import torch as th from .utils.activation import act_dict import warnings class Config(object): def __init__(self, file_path, model, dataset, task, gpu): conf = configparser.ConfigParser( ) try: conf.read(file_path) except: ...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/HGCLDataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.399684
import torch as t from dgl.data import DGLDataset from dgl.data.utils import download, extract_archive from dgl.data.utils import load_graphs import os import numpy as np import dgl import pickle class HGCLDataset(DGLDataset): _prefix = 'https://s3.cn-north-1.amazonaws.com.cn/dgl-data/' _urls = ...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/EdgeClassificationDataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.408261
import torch as th from . import BaseDataset, register_dataset from . import Mg2vecDataSet @register_dataset('edge_classification') class EdgeClassificationDataset(BaseDataset): r""" The class *EdgeClassificationDataset* is a base class for datasets which can be used in task *edge classification*. ...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
examples/hyperparameter_optimization/hpo.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.486955
from openhgnn import Experiment def search_space(trial): return { "lr": trial.suggest_categorical("lr", [1e-3, 5e-3, 1e-2]), "hidden_dim": trial.suggest_categorical("hidden_dim", [32, 64]), "dropout": trial.suggest_uniform("dropout", 0.0, 0.5), 'num_layers': trial.suggest_int('num_...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/HypergraphDataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.714913
import pickle import os from openhgnn.dataset import register_dataset, BaseDataset import numpy as np import copy from torch.utils.data import Dataset from scipy.sparse import vstack as s_vstack from scipy.sparse import csr_matrix from dgl.data.utils import download, extract_archive class HgraphDataset(Dataset): ...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/Ingram_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.788360
import numpy as np import random import torch import dgl import time import os import igraph import requests import zipfile import io def remove_duplicate(x): return list(dict.fromkeys(x)) class UnionFind: def __init__(self, n): self.n = n self.parent = list(range(n)) def find(self, x)...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/MetaHIN_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.919160
import gc import glob import os import pickle # from DataProcessor import Movielens from tqdm import tqdm from multiprocessing import Process, Pool from multiprocessing.pool import ThreadPool import numpy as np import torch class Meta_DataHelper: def __init__(self, input_dir, config): self.input_dir = i...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/NBF_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:12.919695
import os import torch,requests,zipfile,io import os.path as osp from typing import Any, Callable, List, Optional from collections.abc import Sequence import copy import ssl import sys import urllib import errno class NBF_Dataset(): def __init__(self, root, name, version, transform=None, pre_transform=None):# ...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/RecommendationDataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.007423
import os import dgl import torch as th import numpy as np from . import BaseDataset, register_dataset from dgl.data.utils import download,load_graphs,save_graphs,save_info,load_info from scipy.sparse import csr_matrix import scipy.sparse as sp from .multigraph import MultiGraphDataset from ..sampler.negative_sampler i...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/NodeClassificationDataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.032907
import os import dgl import dgl.function as fn import torch as th import numpy as np from dgl.data.rdf import AIFBDataset, MUTAGDataset, BGSDataset, AMDataset from dgl.data.utils import load_graphs, save_graphs from dgl.data import CoraGraphDataset,CiteseerGraphDataset,PubmedGraphDataset from dgl import sparse as dglsp...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.034063
import importlib from dgl.data import DGLDataset from .base_dataset import BaseDataset from .utils import load_acm, load_acm_raw, generate_random_hg from .academic_graph import AcademicDataset,IMDB4MAGNN_Dataset from .hgb_dataset import HGBDataset from .ohgb_dataset import OHGBDataset from .gtn_dataset import * from .a...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/academic_graph.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.130185
import os from dgl.data.utils import download, extract_archive from dgl.data import DGLDataset from dgl.data.utils import load_graphs, idx2mask import pickle import scipy import numpy as np import dgl import torch as th # get dataset from database class IMDB4MAGNN_Dataset(DGLDataset): def __init__(self, name, a...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/adapter.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.355230
"""Dataset adapters for re-purposing a dataset for a different kind of training task.""" import os import json import numpy as np from dgl.data import utils, DGLDataset from dgl import backend as F import dgl from dgl.dataloading.negative_sampler import GlobalUniform, PerSourceUniform import torch as th from dgl impor...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/base_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.386077
from abc import ABC, ABCMeta, abstractmethod from dgl.data.utils import load_graphs class BaseDataset(ABC): def __init__(self, *args, **kwargs): super(BaseDataset, self).__init__() self.logger = kwargs['logger'] self.g = None self.meta_paths = None self.meta_paths_dict = No...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/alircd_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.386926
import torch import torch as th import os from dgl.data import DGLBuiltinDataset from dgl.data.utils import load_graphs, save_graphs import csv from tqdm import tqdm import numpy as np import pickle as pkl import dgl __all__ = ['AliRCDDataset', 'AliRCDSmallDataset', 'AliRCDSession1Dataset', 'AliRCDSession2Dataset','Al...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/hgb_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.561460
import os from dgl.data.utils import download, extract_archive from dgl.data import DGLDataset from dgl.data.utils import load_graphs class HGBDataset(DGLDataset): _prefix = 'https://s3.cn-north-1.amazonaws.com.cn/dgl-data/' _urls = { } def __init__(self, name, raw_dir=None, force_reload=False, ver...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/gtn_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.561947
import pickle import torch as th import numpy as np import dgl import os from dgl.data import DGLBuiltinDataset from dgl.data.utils import idx2mask, load_graphs, save_graphs __all__ = ['GTNDataset', 'IMDB4GTNDataset', 'ACM4GTNDataset', 'DBLP4GTNDataset'] class GTNDataset(DGLBuiltinDataset): r"""GTN Dataset. ...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/mg2vec_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.636768
import os from dgl.data.utils import download, extract_archive from dgl.data import DGLDataset from dgl.data.utils import load_graphs from dgl.data.utils import save_graphs # Download and process the dataset for mg2vec class Mg2vecDataSet(DGLDataset): _prefix = 'https://s3.cn-north-1.amazonaws.com.cn/dgl-data/' ...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/meirec_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.647160
from pathlib import Path import numpy as np import torch from torch.utils.data import DataLoader, Dataset from dgl.data.utils import download, extract_archive import os class MeiRECDataset(Dataset): def __init__(self, phase , args = None): # 这是从云盘上下载下来的 本地zip文件 self.zip_file = os.path.j...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/mag_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.647683
import os import numpy as np import scipy.sparse as sp import torch import dgl from dgl.data import download, extract_archive from . import BaseDataset, register_dataset @register_dataset('mag_dataset') class MagDataset(BaseDataset): def __init__(self, *args, **kwargs): train_percent = kwargs.pop('train...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/multigraph.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.726862
import os from dgl.data.utils import download, extract_archive from dgl.data import DGLDataset from dgl.data.utils import load_graphs class MultiGraphDataset(DGLDataset): _prefix = 'https://s3.cn-north-1.amazonaws.com.cn/dgl-data/' _urls = { } def __init__(self, name, raw_dir=None, force_reload=Fal...
BUPT-GAMMA/OpenHGNN
https://github.com/BUPT-GAMMA/OpenHGNN
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
openhgnn/dataset/oag_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:35:13.997809
import os import dgl import torch as th from dgl.data import extract_archive, download from . import BaseDataset, register_dataset @register_dataset("oag_dataset") class OAGDataset(BaseDataset): def __init__(self, *args, **kwargs): super(OAGDataset, self).__init__(*args, **kwargs) self.name = "o...
keras-team/keras-hub
https://github.com/keras-team/keras-hub
null
null
null
null
975
null
null
apache-2.0
null
null
null
null
null
null
null
benchmarks/sentiment_analysis.py
null
null
null
null
null
null
Python
2026-05-04T02:35:18.535101
import inspect import time import tensorflow as tf import tensorflow_datasets as tfds from absl import app from absl import flags from tensorflow import keras import keras_hub FLAGS = flags.FLAGS flags.DEFINE_string( "model", None, "The name of the classifier such as BertTextClassifier.", ) flags.DEFINE_...