pykoopman
pykoopman copied to clipboard
How to save and load the regressor or model?
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
You can output the A matrix and C matrix, so that next time you only need to use the A and C matrices.
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.
you can look at the definition of A matrix it is used for functions psi