rllm.transforms¶
Graph Transforms¶
Basic Level¶
Base class for node-wise transformations on graph data. |
|
Base class for edge-wise transformations on graph data. |
|
Row-normalizes the node features. |
|
Dimensionality reduction of node features via Singular Value Decomposition (SVD). |
|
Builds a k-NN adjacency matrix from node features. |
|
Adds missing self-loops to the adjacency matrix. |
|
Removes diagonal self-loop edges from an adjacency matrix. |
|
Applies the standard GCN adjacency normalization. |
|
Processes the graph via Graph Diffusion Convolution (GDC) from the "Diffusion Improves Graph Learning" paper (functional name: |
Model Level¶
The GraphTransform class is a base class for applying a series of transformations to graph data. |
|
Preprocessing pipeline used by the original GCN model. |
|
The RECTTransform class is based on the method described in the "Network Embedding with Completely-imbalanced Labels" paper. |
Table Transforms¶
Basic Level¶
An abstract base class for transforming individual column features in table data. |
|
The ColNormalize class is designed to normalize numerical features in tabular data. |
|
One-hot encodes categorical features. |
|
The StackNumerical class is designed to transform numerical features in tabular data by stacking them into a specified dimension. |
Model Level¶
Base class for table Transform. |
|
Default table transform that only performs missing-value handling. |
|
TabTransformerTransform applies ColNormalize transform to tabular data specifically for the TabTransformer model. |
Utils¶
Removes classes from the node-level training set as given by data.train_mask, e.g., in order to get a zero-shot label scenario. |