Skip to content

Commit

Permalink
Update ogc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SinuoXu committed Oct 13, 2023
1 parent 25ca95b commit deb1cc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/pytorch/ogc/ogc.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def OGC(linear_clf, U, g):
features = g.ndata["feat"]

adj = symmetric_normalize_adjacency(g)
print(g.num_edges)
I_N = sp.eye(features.shape[0])
# lazy random walk (also known as lazy graph convolution)
lazy_adj = (1 - beta) * I_N + beta * adj
Expand All @@ -101,4 +100,4 @@ def OGC(linear_clf, U, g):
time_tot = time.time() - start_time

print(f'Test Acc:{res:.4f}')
print(f'Total Time:{time_tot:.4f}')
print(f'Total Time:{time_tot:.4f}')

0 comments on commit deb1cc3

Please sign in to comment.