ACEsuit / Polynomials4ML.jl

Polynomials for ML: fast evaluation, batching, differentiation
MIT License
12 stars 5 forks source link

Symmetrization layer #42

Closed CheukHinHoJerry closed 1 year ago

CheukHinHoJerry commented 1 year ago

I am doing that for single species case, after confirming it works fine I will then do that for multi-specices case.

A minor issue is that currently RepLieGroups is using P4ML so there is a circular dependency issue. However in RepLieGroups/src we do not need P4ML and we should remove that from deps.

cortner commented 1 year ago

I agree. RepLieGroups only needs to be assured that the basis transforms as expected.

However, I'm not convinced that P4ML should depend on RepLieGroups. For now can we please work in a separate "drafting repo"? I will create that now.

CheukHinHoJerry commented 1 year ago

Just done a first draft on this and I will wait for the 2023MitacsDV repo to set up before I push the code.

cortner commented 1 year ago

That repo is already ready. Just create a folder inside, eg call it jhh_ace1 with a Project and example script.

cortner commented 1 year ago

We should think about how we can do the synmetrisation layer for real SH. Probably not hard, probably can be reduced to specifying the CG for rSH which should be a trivial linear transformation.

cortner commented 1 year ago

@CheukHinHoJerry -- I talked to @zhanglw0521 about creating another package called EquivariantLux.jl in which we make available utility functions to build equivariant models from RepLie and P4ML. We can also develop some example models in that package. It could be a sort of intermediate layer between RepLie, P4ML and ACE.

zhanglw0521 commented 1 year ago

Sorry, I should have mentioned this earlier - so now we have an elementary version in this regard, which might be served as a starting point.

Edit: Maybe Jerry doesn't yet have access to this package, though?

CheukHinHoJerry commented 1 year ago

Ah yes - thanks for noticing this.

CheukHinHoJerry commented 1 year ago

I believe this is already implemented - I will close this now.

Ref https://github.com/ACEsuit/RepLieGroups.jl/pull/7#issue-1768116439