Giter Club home page Giter Club logo

ness's Introduction

NESS: Node Embeddings from Static Subgraphs

Author: Talip Ucar ([email protected])

Paper: NESS: Node Embeddings from Static Subgraphs

PWC PWC PWC

Table of Contents:

  1. Model
  2. Datasets
  3. Environment
  4. Configuration
  5. Training
  6. Results
  7. Citing this repo

Model

NESS

Supports the following encoder types and their variational counterparts:

  • GNAE, VGNAE
  • GCN, VGCN
  • GAT
  • Linear, VariationalLinear
  • ARGA, ARGVA

Datasets

Following datasets are supported:

  1. cora
  2. citeseer
  3. pubmed
  4. texas
  5. wisconsin
  6. cornell
  7. charmeleon

Note: Config file for Cora is provided. For others, you can copy Cora config file and change its name to the dataset of interest.

Environment

It is tested with Python 3.9. You can set up the environment by following steps:

pip install pipenv             # To install pipenv if you don't have it already
pipenv install --skip-lock     # To install required packages. 
pipenv shell                   # To activate virtual env

Configuration

A yaml config file for each dataset (e.g., cora.yaml) must be saved under the "./config/" directory. The name of config file needs to match the name of the dataset.

Training

You can train the model using any supported dataset.

python train.py -d cora

Results

Results at the end of training is saved under "./results" directory. Results directory structure:

results
    |
  dataset name  (e.g. cora)      
        |-evaluation 
            |-reconstructions (not used)
            |-clusters (not used)
        |-training
            |-model  (where the models are saved)
            |-plots  (where the plots are saved as png files)
            |-loss   (where the summary of metrics is saved as csv file)

Citing this repo

If you use this work in your own studies, and work, you can cite it by using the following:

@Misc{talip_ucar_2023_NESS,
  author =   {Talip Ucar},
  title =    {{Pytorch implementation of "NESS: Node Embeddings from Static Subgraphs"}},
  howpublished = {\url{https://github.com/AstraZeneca/NESS}},
  month        = May,
  year = {since 2023}
}

ness's People

Contributors

talipucar avatar

Stargazers

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

Watchers

 avatar  avatar

ness's Issues

Test Results

I have a problem about the test results.
As mentioned in the paper, "Aggregating the node representations learned from each subgraph to obtain a joint representation of the graph at test time."
Since the split of the subgraphs is randomized, are the node representations uncertain at test time?

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.