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

Use the new StellarGraph for Cora examples #795

Merged
merged 4 commits into from
Feb 12, 2020
Merged

Conversation

huonw
Copy link
Member

@huonw huonw commented Feb 5, 2020

This doesn't convert the link prediction examples that use Cora because they don't load the data in the same way.

See: #717

(Reopening of #720 due to #786.)

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.

start = self._type_element_ilocs[type_name].start
feature_ilocs = id_ilocs - start

# FIXME: better error messages
Copy link

Choose a reason for hiding this comment

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

Take the required action to fix the issue indicated by this "FIXME" comment.

if self._graph is not None:
return self._graph.edges(triple)

# FIXME: these would be better returned as the 2 or 3 arrays directly, rather than tuple-ing
Copy link

Choose a reason for hiding this comment

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

Take the required action to fix the issue indicated by this "FIXME" comment.

# models that build fixed-size structures (e.g. GraphSAGE) based on neighbours to fill out
# missing neighbours with zeros automatically, using None as a sentinel.

# FIXME: None as a sentinel forces nodes to have dtype=object even with integer IDs, could
Copy link

Choose a reason for hiding this comment

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

Take the required action to fix the issue indicated by this "FIXME" comment.

self._nodes.ids.to_iloc(self.sources), minlength=len(self._nodes)
)

assert len(degrees) == len(self._nodes)
Copy link

Choose a reason for hiding this comment

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

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

@codeclimate
Copy link

codeclimate bot commented Feb 5, 2020

Code Climate has analyzed commit 0cece3d and detected 0 issues on this pull request.

View more on Code Climate.

@stellar-graph-bot
Copy link

Codecov Report

Merging #795 into develop will decrease coverage by 0.56%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #795      +/-   ##
===========================================
- Coverage    82.74%   82.18%   -0.57%     
===========================================
  Files           46       46              
  Lines         5391     5159     -232     
===========================================
- Hits          4461     4240     -221     
+ Misses         930      919      -11     
Impacted Files Coverage Δ
stellargraph/data/edge_splitter.py 89.61% <0.00%> (-0.28%) ⬇️
stellargraph/data/explorer.py 97.27% <0.00%> (+1.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9401f6e...f8efc9d. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Feb 11, 2020

Codecov Report

Merging #795 into develop will increase coverage by 0.4%.
The diff coverage is 94%.

Impacted file tree graph

@@            Coverage Diff            @@
##           develop    #795     +/-   ##
=========================================
+ Coverage     82.2%   82.6%   +0.4%     
=========================================
  Files           46      47      +1     
  Lines         5159    5328    +169     
=========================================
+ Hits          4240    4400    +160     
- Misses         919     928      +9
Impacted Files Coverage Δ
stellargraph/core/schema.py 86.9% <ø> (-0.2%) ⬇️
stellargraph/mapper/sampled_link_generators.py 92.4% <100%> (+0.1%) ⬆️
stellargraph/core/graph.py 97.8% <100%> (+0.7%) ⬆️
stellargraph/core/element_data.py 92.5% <100%> (+0.2%) ⬆️
stellargraph/core/convert.py 100% <100%> (ø) ⬆️
stellargraph/data/unsupervised_sampler.py 91.8% <100%> (-0.2%) ⬇️
stellargraph/data/explorer.py 94.8% <84.7%> (-2.5%) ⬇️
stellargraph/random.py 94.7% <94.7%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f8efc9d...0cece3d. Read the comment docs.

@huonw huonw marked this pull request as ready for review February 11, 2020 22:18
Copy link
Contributor

@kjun9 kjun9 left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@kieranricardo kieranricardo left a comment

Choose a reason for hiding this comment

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

Looks good!

@huonw huonw merged commit 5c611a5 into develop Feb 12, 2020
@huonw huonw deleted the feature/717-cora-demo branch February 12, 2020 01:12
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.

None yet

5 participants