pykoopman icon indicating copy to clipboard operation
pykoopman copied to clipboard

How to save and load the regressor or model?

Open sunnyshi0310 opened this issue 11 months ago • 3 comments

Hi,

I am trying to implement the NNDMD and want to save the learned dlk_regressor for future use. How could I save and load the learned regressors and models (e.g., run with pk.Koopman.fit())?

Thanks in advance for any assistance.

Lu

sunnyshi0310 avatar Mar 09 '24 09:03 sunnyshi0310

You can output the A matrix and C matrix, so that next time you only need to use the A and C matrices.

Dionysus7777777 avatar Apr 02 '24 13:04 Dionysus7777777

Hi, thanks for the reply. While I want to know how to save the neural network models, i.e., the learned dictionary of lifting functions $\phi$. Looking forward to your reply. Thanks.

sunnyshi0310 avatar Apr 03 '24 07:04 sunnyshi0310

you can look at the definition of A matrix it is used for functions psi

Dionysus7777777 avatar Apr 03 '24 07:04 Dionysus7777777