Skip to content

Commit

Permalink
Fix the typo of command running papers100M (#1121)
Browse files Browse the repository at this point in the history
Fix the typo of command running papers100M and test it with the docker
for dataset downloading, preprocessing, and evaluation.

---------

Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
YukeWang96 and Ubuntu authored Jan 1, 2025
1 parent ab784a6 commit 70f70b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ docs/source/generated
# IDEs and Python venv
.idea
.venv
.vscode
.vscode

dataset/*
Empty file modified graphstorm_job.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion python/graphstorm/data/ogbn_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, raw_dir, dataset, edge_pct=1,
self._num_classes = 47
elif dataset == "ogbn-arxiv":
self._num_classes = 40
elif dataset == "ogbn-papers100M":
elif dataset == "ogbn-papers100M" or dataset == "ogbn-papers100m":
self._num_classes = 172
self.retain_original_features = retain_original_features
self.lm_model_name=lm_model_name
Expand Down
3 changes: 2 additions & 1 deletion tools/partition_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
retain_original_features=args.retain_original_features,
max_sequence_length=args.max_seq_length,
lm_model_name=args.lm_model_name)
elif args.dataset == 'ogbn-papers100m':
elif args.dataset == 'ogbn-papers100M' or args.dataset == 'ogbn-papers100m':
args.dataset = 'ogbn-papers100M'
dataset = OGBTextFeatDataset(args.filepath, dataset=args.dataset,
retain_original_features=args.retain_original_features,
max_sequence_length=args.max_seq_length,
Expand Down

0 comments on commit 70f70b7

Please sign in to comment.