-
Notifications
You must be signed in to change notification settings - Fork 4
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
Simplify model launcher configs and add script input checks #90
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e1be850
added script input args checks, reduced redundancy in model launcher …
Oufattole 81b022f
added yaml hierarchy for model_launcher
Oufattole 57a4a81
updated configs, fixed most tests
Oufattole e678145
fixed tabularize tests
Oufattole d64e237
added integration tests covering multirun for all launch_model models…
Oufattole 8d12aed
merged dev
Oufattole c631e93
fixed tests
Oufattole 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 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 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 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 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 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 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 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 was deleted.
Oops, something went wrong.
This file contains 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,39 +1,28 @@ | ||
defaults: | ||
- _self_ | ||
- default | ||
- tabularization: default | ||
- model: xgboost # This can be changed to sgd_classifier or any other model | ||
- imputer: default | ||
- normalization: default | ||
- override hydra/callbacks: evaluation_callback | ||
- model_launcher: xgboost | ||
- override hydra/sweeper: optuna | ||
- override hydra/sweeper/sampler: tpe | ||
- override hydra/callbacks: evaluation_callback | ||
- override hydra/launcher: joblib | ||
- _self_ | ||
|
||
task_name: task | ||
task_name: ??? | ||
|
||
# Task cached data dir | ||
input_dir: ${output_cohort_dir}/${task_name}/task_cache | ||
# Directory with task labels | ||
input_label_dir: ${output_cohort_dir}/${task_name}/labels/ | ||
# Location of task, split, and shard specific tabularized data | ||
input_tabularized_cache_dir: ${output_dir}/${task_name}/task_cache | ||
# Location of task, split, and shard specific label data | ||
input_label_cache_dir: ${output_dir}/${task_name}/labels | ||
# Where to output the model and cached data | ||
model_saving: | ||
model_dir: ${output_cohort_dir}/model/model_${now:%Y-%m-%d_%H-%M-%S} | ||
model_file_stem: model | ||
model_file_extension: .json | ||
delete_below_top_k: -1 | ||
model_logging: | ||
model_log_dir: ${model_saving.model_dir}/.logs/ | ||
performance_log_stem: performance | ||
config_log_stem: config | ||
output_model_dir: ??? | ||
|
||
delete_below_top_k: -1 | ||
|
||
name: launch_model | ||
|
||
hydra: | ||
verbose: False | ||
job: | ||
name: MEDS_TAB_${name}_${worker}_${now:%Y-%m-%d_%H-%M-%S} | ||
sweep: | ||
dir: ${model_log_dir} | ||
dir: ${output_model_dir}/sweeps/{now:%Y-%m-%d-%H-%M-%S}/ | ||
subdir: "1" | ||
run: | ||
dir: ${model_log_dir} | ||
dir: ${path.model_log_dir} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Is
MEDS_cohort_dir
used for anything else? If not, do we need to specify it andinput_dir
separately? Can we just have one parameter, which will help avoid the confusion that comes about in the setting where you are or aren't using a resharding stage (b/c when you are using a re-sharding stage, the rawMEDS_cohort_dir
is only the input to that first resharding stage)