Skip to content

Weak SINDy#29

Open
andersonw1 wants to merge 4 commits into
mainfrom
weak_SINDy
Open

Weak SINDy#29
andersonw1 wants to merge 4 commits into
mainfrom
weak_SINDy

Conversation

@andersonw1

Copy link
Copy Markdown
Collaborator

Add weak SINDy class and corresponding weak form derivatives

@andersonw1 andersonw1 requested a review from dreamer2368 June 16, 2026 20:48
@dreamer2368

Copy link
Copy Markdown
Collaborator

One big change I may request is to make wSINDy as a derived class of SINDy. Many of the class methods are duplicates of SINDy or their slight extensions:

  • compute_time_derivative, simulate: identical to SINDy.
  • __init__, export: addition to SINDy's implementation. So they can be written based upon super()'s function.

Comment thread src/lasdi/workflow.py

latent_dict = {'ae': Autoencoder}

ld_dict = {'sindy': SINDy}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think workflow.py might change in future based on our discussion that the code will change toward a library of utility functions rather than a unified training framework.

So I won't leave much comments here, but wouldn't this require to include wSINDy?

Comment thread src/lasdi/workflow.py
ld_type = config['latent_dynamics']['type']
assert(ld_type in config['latent_dynamics'])
assert(ld_type in ld_dict)
latent_dynamics = ld_dict[ld_type](latent_space.n_z, physics.nt, config['latent_dynamics'])

@dreamer2368 dreamer2368 Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that wSINDy takes different input parameters than this. So registering wSINDy in ld_dict will break this line anyway.

I may not ask for updating this function now, but we'll have to discuss about how to refactor workflow.py as soon as possible. We shouldn't leave it broken too long. maybe raise a RuntimeError for now if wsindy is chosen?

@dreamer2368

Copy link
Copy Markdown
Collaborator

If you can write some description about this PR, that'd be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants