Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
48d357b8
Unverified
Commit
48d357b8
authored
Feb 08, 2021
by
xiang song(charlie.song)
Committed by
GitHub
Feb 08, 2021
Browse files
Fix numbers (#2641)
Co-authored-by:
Ubuntu
<
ubuntu@ip-172-31-56-220.ec2.internal
>
parent
bc3a532f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
examples/pytorch/rgcn/README.md
examples/pytorch/rgcn/README.md
+4
-4
examples/pytorch/rgcn/entity_classify_mp.py
examples/pytorch/rgcn/entity_classify_mp.py
+1
-1
No files found.
examples/pytorch/rgcn/README.md
View file @
48d357b8
...
@@ -43,14 +43,14 @@ AIFB: accuracy avg(5 runs) 90.56%, best 94.44% (DGL)
...
@@ -43,14 +43,14 @@ AIFB: accuracy avg(5 runs) 90.56%, best 94.44% (DGL)
python3 entity_classify_mp.py -d aifb --testing --gpu 0 --fanout='20,20' --batch-size 128
python3 entity_classify_mp.py -d aifb --testing --gpu 0 --fanout='20,20' --batch-size 128
```
```
MUTAG: accuracy avg(
5
runs)
70.00
%, best 7
3.53
% (DGL)
MUTAG: accuracy avg(
10
runs)
69.41
%, best 7
6.47
% (DGL)
```
```
python3 entity_classify_mp.py -d mutag --l2norm 5e-4 --n-bases 30 --testing --gpu 0 --batch-size 64 --fanout
'50,40'
--use-self-loop --dgl-sparse --n-epochs
3
0 --sparse-lr 0.01 --dropout 0.
7
python3 entity_classify_mp.py -d mutag --l2norm 5e-4 --n-bases 30 --testing --gpu 0 --batch-size 64 --fanout
"-1, -1"
--use-self-loop --dgl-sparse --n-epochs
2
0 --sparse-lr 0.01 --dropout 0.
5
```
```
BGS: accuracy avg(5 runs) 8
4.83
%, best
89.66
% (DGL)
BGS: accuracy avg(5 runs) 8
5.52
%, best
93.10
% (DGL)
```
```
python3 entity_classify_mp.py -d bgs --l2norm 5e-4 --n-bases 40 --testing --gpu 0 --fanout
'50,40'
--n-epochs=
20
--batch-size=
32
--dgl-sparse --lr 0.01 --sparse-lr 0.0
1
--dropout 0.3
python3 entity_classify_mp.py -d bgs --l2norm 5e-4 --n-bases 40 --testing --gpu 0 --fanout
"-1, -1"
--n-epochs=
16
--batch-size=
16
--dgl-sparse --lr 0.01 --sparse-lr 0.0
5
--dropout 0.3
```
```
AM: accuracy avg(5 runs) 88.59%, best 88.89% (DGL)
AM: accuracy avg(5 runs) 88.59%, best 88.89% (DGL)
...
...
examples/pytorch/rgcn/entity_classify_mp.py
View file @
48d357b8
...
@@ -432,7 +432,7 @@ def run(proc_id, n_gpus, n_cpus, args, devices, dataset, split, queue=None):
...
@@ -432,7 +432,7 @@ def run(proc_id, n_gpus, n_cpus, args, devices, dataset, split, queue=None):
print
(
"{}/{} Mean backward time: {:4f}"
.
format
(
proc_id
,
n_gpus
,
print
(
"{}/{} Mean backward time: {:4f}"
.
format
(
proc_id
,
n_gpus
,
np
.
mean
(
backward_time
[
len
(
backward_time
)
//
4
:])))
np
.
mean
(
backward_time
[
len
(
backward_time
)
//
4
:])))
if
proc_id
==
0
:
if
proc_id
==
0
:
print
(
"Test Accuracy: {:.4f} | Test loss: {:.4f}"
.
format
(
test_acc
,
test_loss
))
print
(
"
Final
Test Accuracy: {:.4f} | Test loss: {:.4f}"
.
format
(
test_acc
,
test_loss
))
print
(
"Train {}s, valid {}s, test {}s"
.
format
(
train_time
,
validation_time
,
test_time
))
print
(
"Train {}s, valid {}s, test {}s"
.
format
(
train_time
,
validation_time
,
test_time
))
def
main
(
args
,
devices
):
def
main
(
args
,
devices
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment