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
b6087efd
Unverified
Commit
b6087efd
authored
Jan 10, 2024
by
Muhammed Fatih BALIN
Committed by
GitHub
Jan 10, 2024
Browse files
[GraphBolt] PyG example typo fix (#6931)
parent
80203e34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/sampling/pyg/node_classification.py
examples/sampling/pyg/node_classification.py
+1
-1
No files found.
examples/sampling/pyg/node_classification.py
View file @
b6087efd
...
...
@@ -224,7 +224,7 @@ def main():
valid_accuracy
=
evaluate
(
model
,
valid_dataloader
,
device
,
num_classes
)
print
(
f
"Epoch
{
epoch
}
, Train Loss:
{
train_loss
:.
4
f
}
, Train Accuracy:
{
valid
_accuracy
:.
4
f
}
, "
f
"Epoch
{
epoch
}
, Train Loss:
{
train_loss
:.
4
f
}
, Train Accuracy:
{
train
_accuracy
:.
4
f
}
, "
f
"Valid Accuracy:
{
valid_accuracy
:.
4
f
}
"
)
test_accuracy
=
evaluate
(
model
,
test_dataloader
,
device
,
num_classes
)
...
...
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