Giter Site home page Giter Site logo

albertoformaggio1 / fine_tuning_classification_prediction_gnn Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 888 KB

Empirical Research over the possible advantages of pretraining a Graph Neural Network for Classification by using Link Prediction. We used GCN, GAT and GraphSAGE with minibatch generation. Done for the Learning From Networks course taught by professor Fabio Vandin at the University of Padova

Python 100.00%
gat gatv2 gcn graph-neural-networks graph-sage link-prediction networks node-classification pyg pytorch-geometric learning-from-networks neighbor-sampling

fine_tuning_classification_prediction_gnn's Introduction

GNN Integration for Node Classification and Link Prediction

Research Overview:

This repository investigates the collaborative dynamics between node classification and link prediction in the realm of Graph Neural Networks (GNNs). The primary goal is to evaluate the potential advantages gained by integrating these tasks within a graph, as opposed to solely utilizing GNNs for node classification. By merging the predictive capabilities of link prediction with the node classification features of GNNs, the aim is to enhance the overall performance and effectiveness of graph-based models.

Implementation Details:

  • In the "main.py" file, the combination of GNN + MLP (Multi-Layer Perceptron) + Link Prediction is implemented.
  • For an alternative approach without MLP, refer to the "main_no_MLP.py" file, utilizing the combination of GNN + Link Prediction.

Configuration:

Before running the code, navigate to the COMMANDS section (lines 25-30) in either "main.py" or "main_no_mlp.py" to set the preferred GNN (GCN, GAT, SAGE) and dataset (cora, citeseer, pubmed). For hyperparameter testing, enable the "use_grid_search" option. Adjust hyperparameters in the "parameters.py" file, filling the "parameters_[GNN]" dictionary for specific sets, or use "parameters_grid_[GNN]" for comprehensive hyperparameter combination testing by setting "use_grid_search = True".

fine_tuning_classification_prediction_gnn's People

Contributors

albertoformaggio1 avatar danielezebele avatar manuel383 avatar

Watchers

 avatar  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.