NSAPH-Projects / topological-equivariant-networks

E(n)-Equivariant Topological Neural Networks
MIT License
19 stars 0 forks source link

Use lifter memberships as cell features #11

Closed ekarais closed 7 months ago

ekarais commented 7 months ago

Changes

This PR adds a new field called mem_dict (short for memberships dictionary) to instances of SimplicialComplexData that enables tracking which set of lifters each cell is generated from. It also adds the option to use the memberships as cell features that the EMPSN can train on.

Example

Assume we specify the graph lift as a combination of identity, functional_group and ring lifts. The resulting CC will include cells that were generated by each kind of graph lifter. Let's say we have a cell [0,1,2] that is a functional group, but it is not a ring nor is it present in the original graph (so it is not generated by the identity lift either). Then, its mem_dict entry will be [False, True, False]. Multiple values can be True, for example if a cell is a functional group as well as a ring.

Details