Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GraphBolt] Labor example #7437

Merged
merged 37 commits into from
Jun 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
af5203c
[GraphBolt] Add labor example
mfbalin May 10, 2024
017e7c1
add dataset loading
mfbalin May 10, 2024
627528e
refine the implementation, make other datasets work.
mfbalin May 10, 2024
eceb411
Make yelp dataset work as well.
mfbalin May 10, 2024
95a91bd
minor improvement.
mfbalin May 10, 2024
fae0715
linting
mfbalin May 10, 2024
e16e35c
stop overriding overlap_feature_fetch
mfbalin May 10, 2024
9dcac88
get torch compile working.
mfbalin May 10, 2024
aa633ea
add option to disable logging
mfbalin May 10, 2024
f565063
add logging of node and edge counts.
mfbalin May 10, 2024
812b6a9
add pointer to new example from the DGL example.
mfbalin May 10, 2024
8518cc6
refine the example.
mfbalin May 10, 2024
89155dd
refine logging.
mfbalin May 10, 2024
144e1a0
add torch compile fix.
mfbalin May 10, 2024
83ff392
add custom comv
mfbalin May 12, 2024
7dc8a6f
fix reset parameter logic of custom model
mfbalin May 12, 2024
4889daf
Merge branch 'master' into gb_labor_example
mfbalin May 12, 2024
6d6e1f7
fix reset_parameters bug.
mfbalin May 12, 2024
73347ed
fix typo
mfbalin May 12, 2024
5aeef02
remove unnecessary root_weight parameter.
mfbalin May 12, 2024
550e31f
remove unused normalize param.
mfbalin May 12, 2024
92d7aff
remove unnecessary things
mfbalin May 12, 2024
3585c1b
bug fix.
mfbalin May 12, 2024
25323a6
increase early stopping patience
mfbalin May 15, 2024
b61a84f
add loss return for val.
mfbalin May 15, 2024
70636e3
stop using lightning as it is slow.
mfbalin May 29, 2024
437b527
Merge branch 'master' into gb_labor_example
mfbalin May 29, 2024
83b6b6a
fix accuracy calculation.
mfbalin May 29, 2024
4572aa5
reduce batch size for inference
mfbalin May 29, 2024
55f73fe
log num nodes sampled and the cache miss rate.
mfbalin May 31, 2024
c8d88a1
add README
mfbalin May 31, 2024
e4dffe5
add note about early stopping
mfbalin May 31, 2024
dcce59b
remove unused line
mfbalin May 31, 2024
23f6163
add a performance note
mfbalin May 31, 2024
b026917
add note about neighbor sampler # sampled nodes.
mfbalin May 31, 2024
7592a32
move under the PyG folder.
mfbalin Jun 21, 2024
c8b94ed
Merge branch 'master' into gb_labor_example
mfbalin Jun 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix reset parameter logic of custom model
mfbalin committed May 12, 2024
commit 7dc8a6ff00fe9d62f696e9dc34ac765f0304771a
6 changes: 5 additions & 1 deletion examples/sampling/graphbolt/labor/nasc_conv.py
Original file line number Diff line number Diff line change
@@ -84,6 +84,7 @@ def __init__(
self.normalize = normalize
self.root_weight = root_weight
self.project = project
self.nasc = nasc

if isinstance(in_channels, int):
in_channels = (in_channels, in_channels)
@@ -97,7 +98,7 @@ def __init__(

self.activation = GELU() if nasc else Identity()

if nasc:
if self.nasc:
self.skip_l = (
Linear(in_channels[0], out_channels)
if in_channels[0] != out_channels
@@ -138,6 +139,9 @@ def reset_parameters(self):
self.lin_l.reset_parameters()
if self.root_weight:
self.lin_r.reset_parameters()
if self.nasc:
self.skip_l.reset_parameters()
self.skip_r.reset_parameters()

def forward(
self,