Giter Club home page Giter Club logo

link-prediction's Introduction

Link Prediction with Neo4j’s Graph Data Science Library

This repository contains both Jupyter notebooks for solving a link prediction problem using Neo4j’s Graph Data Science Library and scikit-learn.

The associated developer guide for this repository can be found at neo4j.com/developer/graph-data-science/link-prediction/scikit-learn/

Running the examples

You can run the examples by following the instructions below:

Download code from GitHub

git clone https://github.com/neo4j-examples/link-prediction.git
cd link-prediction

Launch Neo4j and Jupyter Notebooks

You can launch the notebooks and Neo4j by using the following command:

docker-compose up

This will spin up a Neo4j server and Jupyter session. The terminal output will look a bit like this:

...
link-prediction-jupyter | [I 05:11:37.148 NotebookApp] The Jupyter Notebook is running at:
link-prediction-jupyter | [I 05:11:37.148 NotebookApp] http://5bf4a4a75310:8888/?token=06ce9ad89428f765734540f3f283cc0d3ad5b1fe0c51746a
link-prediction-jupyter | [I 05:11:37.148 NotebookApp]  or http://127.0.0.1:8888/?token=06ce9ad89428f765734540f3f283cc0d3ad5b1fe0c51746a
link-prediction-jupyter | [I 05:11:37.148 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
link-prediction-jupyter |     To access the notebook, open this file in a browser:
link-prediction-jupyter |         file:///home/jovyan/.local/share/jupyter/runtime/nbserver-6-open.html
link-prediction-jupyter |     Or copy and paste one of these URLs:
link-prediction-jupyter |         http://5bf4a4a75310:8888/?token=06ce9ad89428f765734540f3f283cc0d3ad5b1fe0c51746a
link-prediction-jupyter |      or http://127.0.0.1:8888/?token=06ce9ad89428f765734540f3f283cc0d3ad5b1fe0c51746a
...
link-prediction-neo4j | Starting Neo4j.
link-prediction-neo4j | 2020-08-20 05:11:44.729+0000 INFO  ======== Neo4j 4.0.6 ========
link-prediction-neo4j | 2020-08-20 05:11:44.734+0000 INFO  Starting...
...
link-prediction-neo4j | 2020-08-20 05:11:56.135+0000 INFO  Remote interface available at http://localhost:7474/

link-prediction's People

Contributors

mneedham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

link-prediction's Issues

04_Model_Feature_Engineering.py hava problems at line 233

query = """
CALL gds.labelPrrojection: {
CO_AUTHOR_EARLY: {
type: 'CO_AUTHOR_EARLY',
orientation: 'UNDIRECTED'
}
},
writeProperty: "partitionTrain"
});opagation.write({
nodeProjection: "Author",
relationshipProjection: {
CO_AUTHOR_EARLY: {
type: 'CO_AUTHOR_EARLY',
orientation: 'UNDIRECTED'
}
},
writeProperty: "partitionTrain"
});

at line 233, this query can't run, could please modify it ,thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.