-
Notifications
You must be signed in to change notification settings - Fork 1
Enable L0 hyperparameter tuning #78
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5434002
enable L0 hyperparameter tuning
juaristi22 1398743
increase the importance of achieving sparsity with L0
juaristi22 0c5d975
pass seed to torch too
juaristi22 4fef2f3
add holdout to hyperparam tuning
juaristi22 24bf593
update test to handle new logic
juaristi22 9b9c39d
add test to show behavior without holdouts
juaristi22 066015c
return information about each holdout when tuning
juaristi22 bca9f26
add robustness evaluation logic independent of l0 tuning
juaristi22 e839cab
Merge branch 'main' of https://github.com/PolicyEngine/microcalibrate…
juaristi22 c8757dc
add sparsity learning rate
juaristi22 c92c747
Merge branch 'main' of https://github.com/PolicyEngine/microcalibrate…
juaristi22 7bd54f7
refactor hyperparameter tuning into its own module
juaristi22 344c27d
fix versioning for deployment
juaristi22 6fb3cfc
add optuna to .toml
juaristi22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| - bump: minor | ||
| changes: | ||
| added: | ||
| - Add hyperparameter tuning for L0 implementation with option to holdout targets. | ||
| - Add method to evaluate robustness of calibration to target holdouts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ dependencies = [ | |
| "pandas", | ||
| "tqdm", | ||
| "l0-python", | ||
| "optuna", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,7 @@ | ||
| from .calibration import Calibration | ||
| from .evaluation import evaluate_estimate_distance_to_targets | ||
| from .evaluation import ( | ||
| evaluate_estimate_distance_to_targets, | ||
| evaluate_holdout_robustness, | ||
| evaluate_sparse_weights, | ||
| ) | ||
| from .hyperparameter_tuning import tune_l0_hyperparameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.