Graph Classification with Transformers
Key point
Explains how to implement graph classification using the Transformers library and the Graphormer model.
Details
This covers the technical method for performing graph classification using Hugging Face's Transformers library. It focuses on Graphormer by Microsoft, the graph transformer model currently supported by the library.
Data Loading and Format
It provides a detailed guide on how to load OGB (Open Graph Benchmark) datasets via the datasets library, and the standard format of graph data consisting of edge_index, num_nodes, y, node_feat, and edge_attr.
Preprocessing It includes the preprocessing process of generating in/out degree information and shortest path matrices between nodes to help train the Graphormer model.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.