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

Grid locator #20

Merged
merged 13 commits into from
Mar 15, 2024
Merged

Grid locator #20

merged 13 commits into from
Mar 15, 2024

Conversation

Jacob-Stevens-Haas
Copy link
Owner

@Jacob-Stevens-Haas Jacob-Stevens-Haas commented Mar 12, 2024

Substantial refactoring going on here. Big changes are (a) moving gridsearch to its own package to limit the coupling between it and the odes/pdes experiments, and (b) introducing the gen_experiments.gridsearch.GridLocator object, which allows one to specify criteria to match intermediate points in the gridsearch.

To test it out, run any existing experiment, build a GridLocator object, and find the matching points with gridsearch.find_gridpoints(your_locator, results["plot_data"], results)

{"sim_params.noise_abs": 8},
GridLocator(
...,
(..., ...),
Copy link
Collaborator

@yb6599 yb6599 Mar 15, 2024

Choose a reason for hiding this comment

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

What does ... signify here in the GridLocator arguments? Is it meant to be taking all the metrics or is it empty?

Edit: I've read about the Ellipsis object.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Nice! Yeah, I wanted to borrow some notation from numpy that means "all elements". They're both what are called "singletons". Only one NoneType object exists in a python program, just like only one EllipsisType object ever exists.

I suppose I could have used None instead. That may be an arguably better way, I just wanted to use an object that people associate with "all" of something.

),
),
"test-absrel3": _PlotPrefs(
"absrel-newloc": _PlotPrefs(
Copy link
Collaborator

Choose a reason for hiding this comment

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

For running the experiments, which one of the plot_prefs do I use? test_absrel12 or absrel-newloc?

Copy link
Owner Author

Choose a reason for hiding this comment

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

absrel-newloc, but double check me that it's meaning is clear, given the GridLocator argument

Copy link
Collaborator

@yb6599 yb6599 left a comment

Choose a reason for hiding this comment

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

LGTM

@Jacob-Stevens-Haas Jacob-Stevens-Haas merged commit e236e17 into main Mar 15, 2024
5 checks passed
@Jacob-Stevens-Haas Jacob-Stevens-Haas deleted the grid-locator branch April 3, 2024 13:40
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