Skip to content
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

Train test and validation for graph datasets. #168

Closed
wants to merge 8 commits into from

Conversation

Dsantra92
Copy link
Collaborator

@Dsantra92 Dsantra92 commented Sep 1, 2022

Closes #158

Additionally #167

@codecov-commenter
Copy link

codecov-commenter commented Sep 1, 2022

Codecov Report

Merging #168 (b63ddfb) into master (abbde1b) will increase coverage by 0.28%.
The diff coverage is 52.08%.

@@            Coverage Diff             @@
##           master     #168      +/-   ##
==========================================
+ Coverage   33.01%   33.30%   +0.28%     
==========================================
  Files          41       41              
  Lines        2084     2066      -18     
==========================================
  Hits          688      688              
+ Misses       1396     1378      -18     
Impacted Files Coverage Δ
src/MLDatasets.jl 100.00% <ø> (ø)
src/datasets/graphs/citeseer.jl 38.09% <ø> (-7.74%) ⬇️
src/datasets/graphs/cora.jl 38.09% <ø> (-7.74%) ⬇️
src/datasets/graphs/movielens.jl 0.37% <ø> (-0.37%) ⬇️
src/datasets/graphs/polblogs.jl 81.25% <ø> (-8.23%) ⬇️
src/datasets/graphs/pubmed.jl 38.09% <ø> (-7.74%) ⬇️
src/datasets/graphs/reddit.jl 2.27% <0.00%> (-1.99%) ⬇️
src/datasets/graphs/tudataset.jl 1.38% <0.00%> (-1.36%) ⬇️
src/graph.jl 50.00% <ø> (ø)
src/datasets/graphs/ogbdataset.jl 62.83% <53.33%> (+5.56%) ⬆️
... and 11 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@CarloLucibello
Copy link
Member

Can you edit the OP and describe the changes in this PR?

Additionally #167

additionally what?


An abstract dataset type for graph learning tasks.
"""
abstract type GraphDataset <: AbstractDataset end
Copy link
Member

Choose a reason for hiding this comment

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

better rename this as

Suggested change
abstract type GraphDataset <: AbstractDataset end
abstract type AbstractGraphDataset <: AbstractDataset end

especially if we go with #169

Copy link
Member

Choose a reason for hiding this comment

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

Also, it is better to file this change as a separate PR. Generally a PR should target a single issue or a single feature addition

@CarloLucibello
Copy link
Member

Let's split the fix to #167 to a separate PR

@@ -19,9 +19,9 @@ end

function Base.show(io::IO, ::MIME"text/plain", d::D) where D <: AbstractDataset
recur_io = IOContext(io, :compact => false)

Copy link
Member

Choose a reason for hiding this comment

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

it would be good to avoid polluting PRs with this formatting changes, there should be some option in your editor to avoid doing this

@Dsantra92
Copy link
Collaborator Author

Too many changes happened in this pr. I will be closing this pr and making separate prayer for each of them.

@Dsantra92 Dsantra92 closed this Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better Train, test, val split for graphs
3 participants