LLNL / GPLaSDI

http://software.llnl.gov/GPLaSDI/
MIT License
32 stars 3 forks source link

Latent dynamics & GP factorization #8

Closed dreamer2368 closed 1 month ago

dreamer2368 commented 2 months ago

latent_dynamics module

latent_dynamics.sindy module

gp module

Previously, Gaussian-process modules go through unnecessary data preparation steps. Also, the routines are limited to SINDy, limiting the use of general latent dynamics. Now GP-related routines are simplified into three functions:

gplasdi module

postprocess module

timing module

A light-weight timer class Timer is implemented for computation time profiling.

Separating/removing unnecessary and complex routines

Several routines that use unnecessary and complex steps are now either factorized and removed:

Moved legacy codes

Legacy code examples are now moved into the directory legacy.

dreamer2368 commented 2 months ago

Very nice work on refactoring the code! Is the plan to make (just) GPLaSDI easier to use or are there plans to bring-in some elements of other LaSDI models (e.g. weak form). A full "production-ready" LaSDI library could be really cool!

Thanks! Full "production-ready" LaSDI library is indeed the plan of this refactoring. On one hand we'd like to make small simple modules with which people can easily prototype, and on the other hand we'd like to incorporate all variation of LaSDI. This PR lays the ground for such incorporation. Hopefully more people will be able to jump in for introducing more variations.