-
Notifications
You must be signed in to change notification settings - Fork 6
Adding DMD capabilities #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
fd = None | ||
fd_oper = None | ||
|
||
def __init__(self, dim, high_order_terms, rand_functions, nt, config): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the usage shown below, high_order_terms
and rand_functions
can be parsed from config
and need not be passed as input arguments. Can we parse them from config
and reduce the number of input arguments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They could be. But updating the workflow maintains the original structure of defining trainers/latent space/latent physics. Can update it your way through if necessary!
|
||
# Updating the dynamics callback to account for the higher order terms and other non linear functions from the .yml file. | ||
|
||
latent_dynamics = ld_dict[ld_type](latent_space.n_z, config['latent_dynamics'][ld_type]['higher_order_terms'], config['latent_dynamics'][ld_type]['extra_functions'], physics.nt, config['latent_dynamics']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I mentioned above, high_order_terms
and rand_functions
can be parsed from config
and need not be passed as input arguments. That way we wouldn't have to change this line.
Adding EDMD implementation to the latent space dynamics. Updated codebase allows user to choose standard/extended DMD through the .yml file.