Skip to content

Commit 77e4eb4

Browse files
cleanup
1 parent a186a43 commit 77e4eb4

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PyGDatasets"
22
uuid = "44f67abd-f36e-4be4-bfe5-65f468a62b3d"
33
authors = ["Carlo Lucibello <carlo.lucibello@gmail.com> and contributors"]
4-
version = "0.1.1"
4+
version = "0.1.2"
55

66
[deps]
77
DLPack = "53c2dc0f-f7d5-43fd-8906-6c0220547083"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ load_dataset("MoleculeNet", name="ESOL")
5252

5353
# heterographs
5454
load_dataset("IMDB")
55-
load_dataset("AMiner")
55+
load_dataset("MovieLens100K")
5656
```
5757

5858
## Dataset References

src/load_dataset.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and return it as an [`InMemoryGNNDataset`](@ref) object.
77
The keyword arguments `kws` are passed to the dataset constructor.
88
99
See [`pygdata_to_gnngraph`](@ref) for details on the conversion of
10-
PyTorch Geometric `Data` objects to `GNNGraph`s.
10+
PyTorch Geometric `Data` and `HeteroData` objects to `GNNGraph` and `GNNHeteroGraph` objects.
1111
1212
For PyG datasets requiring a `root` argument, the default value
1313
`"\$(PyGDatasets.DEFAULT_ROOT[])/\$name"` is provided if not specified.
@@ -21,11 +21,9 @@ This scratch space will be deleted when the package is removed.
2121
# Examples
2222
2323
```julia
24-
load_dataset("TUDataset", root="./", name="MUTAG")
25-
# is equivalent to the python code
26-
# pyg.datasets.TUDataset(root="./", name="MUTAG")
27-
28-
load_dataset("Planetoid", name="Cora")
24+
dataset = load_dataset("TUDataset", root="./", name="MUTAG")
25+
dataset = load_dataset("Planetoid", name="Cora") # use default root
26+
dataset = load_dataset("IMDB") # heterogenous graph dataset
2927
```
3028
"""
3129
function load_dataset(dataset::String; root=nothing, kws...)

0 commit comments

Comments
 (0)