Add verified graph dataloader example
Browse files
loaders/gwam_graph_dataloader.py
CHANGED
|
@@ -6,8 +6,8 @@ view_evidence, visual features, and edge records can all share the same storage
|
|
| 6 |
slot id. That 256-slot axis is only a storage/alignment convention. This loader
|
| 7 |
drops inactive padded slots and returns a ragged graph with N_real active nodes.
|
| 8 |
|
| 9 |
-
The raw node_state channel 1 (`family_idx`) is categorical.
|
| 10 |
-
|
| 11 |
fixed 10-D one-hot block, or `family_encoding="embedding_placeholder"` to return
|
| 12 |
integer family ids separately for a model-side nn.Embedding.
|
| 13 |
"""
|
|
|
|
| 6 |
slot id. That 256-slot axis is only a storage/alignment convention. This loader
|
| 7 |
drops inactive padded slots and returns a ragged graph with N_real active nodes.
|
| 8 |
|
| 9 |
+
The raw node_state channel 1 (`family_idx`) is categorical. Never feed raw
|
| 10 |
+
family_idx as a continuous scalar feature. Use `family_encoding="onehot"` for a
|
| 11 |
fixed 10-D one-hot block, or `family_encoding="embedding_placeholder"` to return
|
| 12 |
integer family ids separately for a model-side nn.Embedding.
|
| 13 |
"""
|