ecboghiu / inflation

Implementations of the Inflation Technique for Causal Inference.
GNU General Public License v3.0
22 stars 3 forks source link

Add a function apply_symmetry #15

Open apozas opened 2 years ago

apozas commented 2 years ago

This would be useful for imposing other symmetries such as invariance under permutation of parties. In the same spirit of what happens inside of apply_inflation_symmetries, it would take a permutation of the list of generating monomials, apply it to the moment matrix, and update the necessary objects. Then we could even make apply_inflation_symmetries to call this function internally.

ecboghiu commented 2 years ago

We could add an extrasymmetries flatg to generate_relaxation in the format of permutations of the generating set or, maybe ask the user to give a new orbits dictionary that encodes their symmetry.