Giter Site home page Giter Site logo

gckm's Introduction

Graph Convolutional Kernel Machine GCKM

GCKM is introduced in "Unsupervised Neighborhood Propagation Kernel Layers for Semi-supervised Node Classification". This repository contains the code to be used to reproduce results and/or as a starting point for future work. Links to the paper are provided below.

Abstract

We present a deep Graph Convolutional Kernel Machine(GCKM) for semi-supervised node classification in graphs. The method is built of two main types of blocks: (i) We introduce unsupervised kernel machine layers propagating the node features in a one-hop neighborhood, using implicit node feature mappings. (ii) We specify a semi-supervised classification kernel machine through the lens of the Fenchel-Young inequality. We derive an effective initialization scheme and efficient end-to-end training algorithm in the dual variables for the full architecture. The main idea underlying GCKM is that, because of the unsupervised core, the final model can achieve higher performance in semi-supervised node classification when few labels are available for training. Experimental results demonstrate the effectiveness of the proposed framework.

Useful links

Cite

BibTex

@article{Achten_Tonin_Patrinos_Suykens_2024, 
	title={Unsupervised Neighborhood Propagation Kernel Layers for Semi-supervised Node Classification}, 
	volume={38}, 
	url={https://ojs.aaai.org/index.php/AAAI/article/view/28949}, 
	DOI={10.1609/aaai.v38i10.28949}, 
	abstractNote={We present a deep Graph Convolutional Kernel Machine (GCKM) for semi-supervised node classification in graphs. The method is built of two main types of blocks: (i) We introduce unsupervised kernel machine layers propagating the node features in a one-hop neighborhood, using implicit node feature mappings. (ii) We specify a semi-supervised classification kernel machine through the lens of the Fenchel-Young inequality. We derive an effective initialization scheme and efficient end-to-end training algorithm in the dual variables for the full architecture. The main idea underlying GCKM is that, because of the unsupervised core, the final model can achieve higher performance in semi-supervised node classification when few labels are available for training. Experimental results demonstrate the effectiveness of the proposed framework.}, 
	number={10}, 
	journal={{Proceedings of the AAAI Conference on Artificial Intelligence}}, 
	author={Achten, Sonny and Tonin, Francesco and Patrinos, Panagiotis and Suykens, Johan A.K.}, 
	year={2024}, 
	month={Mar.}, 
	pages={10766-10774} 
}

Code Usage

Download

First, navigate to the unzipped directory and install required python packages with the provided requirements.txt file. This is explained in the following section.

Install packages in conda environment

Run the following in terminal. This will create a conda environment named gckm.

conda create --name gckm python=3.10

Activate the conda environment with the command conda activate gckm. To install the required dependencies, run:

pip install -r requirements.txt

Remember to install pytorch-geometric separately from their website according to your setup.

Train

Activate the conda environment conda activate gckm.

The configuration is done using YAML files with hydra. Available configurations are in the conf directory. You may edit the provided default_config.yaml file or write your own YAML files.

To reproduce the reported experiments, choose one of the config files (e.g., table2_cora_gckm.yaml) and run the following command:

python run_experiment.py --config-name table2_cora_gckm

gckm's People

Contributors

sonnyachten avatar

Watchers

 avatar

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.