[Model] NASA#239
Open
wensi123 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Motivation and Context
This PR introduces an implementation of the NASA model from the paper: "Regularizing Graph Neural Networks via Consistency-Diversity Graph Augmentations".
The core contribution of this paper is a novel regularization method for Graph Neural Networks that improves performance and generalization in semi-supervised node classification tasks. It achieves this through:
L_CR) that enforces prediction consistency among neighboring nodes in the augmented graph, effectively leveraging unlabeled data.2. Summary of Changes
This PR adds the following components:
Core Library Components:
gammagl/transforms/nr_augmentor.py: A newNR_Augmentor_GammaGLclass that performs the Neighbor Replacement augmentation on agammagl.data.Graphobject.gammagl/models/nasa_gcn.py: A newNASA_GCN_GammaGLmodel, which is a GCN backbone equipped with the customcompute_nasa_lossfunction that includes both the supervised cross-entropy loss and the neighbor-constrained regularization loss.gammagl/transforms/__init__.py: ExportedNR_Augmentor_GammaGL.gammagl/models/__init__.py: ExportedNASA_GCN_GammaGL.gammagl/utils/nasa_utils.py: Utility functions (accuracy_tlx,compute_gcn_norm) required for the example.Example and Documentation:
examples/nasa/: A new directory for the NASA example.examples/nasa/nasa_gcn_trainer.py: A complete training and evaluation script demonstrating how to use the new model and augmentor.examples/nasa/README.md: A clear guide on how to run the example and understand its components.