Skip to content

Connecting Link Predictions from Keras Model back to Stellargraph Links - Help with the Examples #2091

Answered by chriskmanx
chriskmanx asked this question in General
Discussion options

You must be logged in to vote

Ok ,so I am going to answer this myself. It wasn't obvious but there is no abstraction in place to incorporate Keras predictions directly back into Stellargraph graph objects. In my case I was using binary classification where the Keras model predictions simply yield "probabilities" between 0 and 1. 0 suggests the link ought not to be there whereas 1 suggests the link ought to be there. We need to join these with the relevant labels to identify the correct node pairs and then amend our Stellargraph graph as required or incorporate into another graph model, e.g. networkX or other, for further processing.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chriskmanx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant