feat(models): GIN encoder for assembly graphs #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implement
solver/models/gin.pywith aGINEncoder(nn.Module)for assembly constraint graphs.Depends on #18.
Architecture
[n, 22], edge_index[2, E], edge_attr[E, 22]num_layersGINConv layers with batch normalization and dropoutedge_attrand adds to neighbor messages[n, hidden_dim]and graph-level embedding[hidden_dim]via global mean poolingConfig (from
configs/model/baseline.yaml)Registration
Register with
@register_encoder("gin")sobuild_modelresolves it automatically.Files
solver/models/gin.pytests/models/test_gin.pyAcceptance criteria
(n, hidden_dim)and(hidden_dim,)build_model