Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Dec 25, 2024
1 parent a186a43 commit 77e4eb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PyGDatasets"
uuid = "44f67abd-f36e-4be4-bfe5-65f468a62b3d"
authors = ["Carlo Lucibello <[email protected]> and contributors"]
version = "0.1.1"
version = "0.1.2"

[deps]
DLPack = "53c2dc0f-f7d5-43fd-8906-6c0220547083"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ load_dataset("MoleculeNet", name="ESOL")

# heterographs
load_dataset("IMDB")
load_dataset("AMiner")
load_dataset("MovieLens100K")
```

## Dataset References
Expand Down
10 changes: 4 additions & 6 deletions src/load_dataset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and return it as an [`InMemoryGNNDataset`](@ref) object.
The keyword arguments `kws` are passed to the dataset constructor.
See [`pygdata_to_gnngraph`](@ref) for details on the conversion of
PyTorch Geometric `Data` objects to `GNNGraph`s.
PyTorch Geometric `Data` and `HeteroData` objects to `GNNGraph` and `GNNHeteroGraph` objects.
For PyG datasets requiring a `root` argument, the default value
`"\$(PyGDatasets.DEFAULT_ROOT[])/\$name"` is provided if not specified.
Expand All @@ -21,11 +21,9 @@ This scratch space will be deleted when the package is removed.
# Examples
```julia
load_dataset("TUDataset", root="./", name="MUTAG")
# is equivalent to the python code
# pyg.datasets.TUDataset(root="./", name="MUTAG")
load_dataset("Planetoid", name="Cora")
dataset = load_dataset("TUDataset", root="./", name="MUTAG")
dataset = load_dataset("Planetoid", name="Cora") # use default root
dataset = load_dataset("IMDB") # heterogenous graph dataset
```
"""
function load_dataset(dataset::String; root=nothing, kws...)
Expand Down

2 comments on commit 77e4eb4

@CarloLucibello
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/122002

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.2 -m "<description of version>" 77e4eb412e4aab7162d7c1f224ccde34470f4c95
git push origin v0.1.2

Please sign in to comment.