-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix broken datasets url #10415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
xnuohz
wants to merge
13
commits into
pyg-team:master
Choose a base branch
from
xnuohz:fix/broken-dataset
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix broken datasets url #10415
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b43e0c2
update
xnuohz 752b8b5
update
xnuohz e8ed24e
update
xnuohz 62e84a7
update
xnuohz a26c7e4
Merge branch 'master' into fix/broken-dataset
xnuohz e77ef1d
Merge branch 'master' into fix/broken-dataset
xnuohz 3dee74d
Merge branch 'master' into fix/broken-dataset
xnuohz 66c0847
update
xnuohz 0adaf78
Merge branch 'master' into fix/broken-dataset
xnuohz 1e9ac10
Merge branch 'master' into fix/broken-dataset
xnuohz 5e1b31e
fix twitch dataset
xnuohz 2bea2f1
update changelog
xnuohz a3aa4f9
Merge branch 'master' into fix/broken-dataset
xnuohz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| from torch_geometric.datasets import DeezerEurope | ||
| from torch_geometric.testing import onlyFullTest, onlyOnline | ||
|
|
||
|
|
||
| @onlyOnline | ||
| @onlyFullTest | ||
| def test_deezer_europe(): | ||
| dataset = DeezerEurope(root='./data/DeezerEurope') | ||
| data = dataset[0] | ||
| assert data.x.size() == (28281, 128) | ||
| assert data.edge_index.size() == (2, 92752) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| from torch_geometric.datasets import FacebookPagePage | ||
| from torch_geometric.testing import onlyFullTest, onlyOnline | ||
|
|
||
|
|
||
| @onlyOnline | ||
| @onlyFullTest | ||
| def test_facebook(): | ||
| dataset = FacebookPagePage(root='./data/FacebookPagePage') | ||
| data = dataset[0] | ||
| assert data.x.size() == (22470, 128) | ||
| assert data.edge_index.size() == (2, 171002) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| from torch_geometric.datasets import GemsecDeezer | ||
| from torch_geometric.testing import onlyFullTest, onlyOnline | ||
|
|
||
|
|
||
| @onlyOnline | ||
| @onlyFullTest | ||
| def test_gemsec(): | ||
| dataset = GemsecDeezer(root='./data/GemsecDeezer', name='HU') | ||
| data = dataset[0] | ||
| assert data.edge_index.size() == (2, 222887) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| from torch_geometric.datasets import GitHub | ||
| from torch_geometric.testing import onlyFullTest, onlyOnline | ||
|
|
||
|
|
||
| @onlyOnline | ||
| @onlyFullTest | ||
| def test_github(): | ||
| dataset = GitHub(root='./data/GitHub') | ||
| data = dataset[0] | ||
| assert data.x.size() == (37700, 128) | ||
| assert data.edge_index.size() == (2, 289003) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| from torch_geometric.datasets import LastFMAsia | ||
| from torch_geometric.testing import onlyFullTest, onlyOnline | ||
|
|
||
|
|
||
| @onlyOnline | ||
| @onlyFullTest | ||
| def test_lastfm_asia(): | ||
| dataset = LastFMAsia(root='./data/LastFMAsia') | ||
| data = dataset[0] | ||
| assert data.x.size() == (7624, 128) | ||
| assert data.edge_index.size() == (2, 27806) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import pytest | ||
|
|
||
| from torch_geometric.datasets import Twitch | ||
| from torch_geometric.testing import onlyFullTest, onlyOnline | ||
|
|
||
|
|
||
| @onlyOnline | ||
| @onlyFullTest | ||
| @pytest.mark.parametrize('name, n_dim, e_dim', [ | ||
| ('ENGB', 7126, 35324), | ||
| ('ES', 4648, 59382), | ||
| ('FR', 6551, 112666), | ||
| ('PTBR', 1912, 31299), | ||
| ('RU', 4385, 37304), | ||
| ('DE', 9498, 153138), | ||
| ]) | ||
| def test_twitch(name: str, n_dim: int, e_dim: int): | ||
| dataset = Twitch(root='./data/Twitch', name=name) | ||
| data = dataset[0] | ||
| assert data.x.size() == (n_dim, 128) | ||
| assert data.edge_index.size() == (2, e_dim) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| from torch_geometric.datasets import WikipediaNetwork | ||
| from torch_geometric.testing import onlyFullTest, onlyOnline | ||
|
|
||
|
|
||
| @onlyOnline | ||
| @onlyFullTest | ||
| def test_wikipedia_network(): | ||
| dataset = WikipediaNetwork(root='./data/WikipediaNetwork', | ||
| name='crocodile') | ||
| data = dataset[0] | ||
| assert data.x.size() == (11631, 128) | ||
| assert data.edge_index.size() == (2, 180020) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.