Skip to content
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

Separate data generation step #37

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Separate data generation step #37

merged 4 commits into from
Oct 1, 2024

Conversation

Jacob-Stevens-Haas
Copy link
Owner

This PR removes the gen_data or gen_pde_data from the ODE/PDE experiments, making it a fully-fledged experiment step. gridsearch now has to dispatch the data params to the correct data generation method. These methods are hollowed out and simply handle default parameters/lookups/guard code, with the actual data generation extracted to helper functions.

mitosis ode_data odes -e ode_data.group=\"lorenz\"

You should be able to run with:

```
mitosis ode_data -e ode_data.seed=1 ...
```
Now that data generation fits the mitosis API, make odes.run and pdes.run
accept their data as input.  Gridsearch handles them separately as well.

Also fix fitting with t_train/dt
model = make_model(input_features, dt, diff_params, feat_params, opt_params)

model.fit(x_train)
model.fit(x_train, t=dt)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should be t=t_train instead of t=dt, right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Alright, I understand how it should have been done instead of how I did it. Thanks, this is much more simpler than what I've done.

@Jacob-Stevens-Haas Jacob-Stevens-Haas marked this pull request as ready for review October 1, 2024 19:51
@Jacob-Stevens-Haas Jacob-Stevens-Haas merged commit e3e378a into main Oct 1, 2024
5 checks passed
@Jacob-Stevens-Haas Jacob-Stevens-Haas deleted the separate-datagen branch October 1, 2024 20:00
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.

2 participants