Skip to content

Commit

Permalink
first pass at accounting for separate train and val tasks into config
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-edwards committed Sep 26, 2024
1 parent eea4279 commit 4e303d1
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions examples/fl_post/fl/mlcube/workspace/training_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ aggregator :
init_state_path : save/fl_post_two_init.pbuf
best_state_path : save/fl_post_two_best.pbuf
last_state_path : save/fl_post_two_last.pbuf
rounds_to_train : 10
rounds_to_train : 300
admins:
- [email protected]
allowed_admin_endpoints:
Expand Down Expand Up @@ -47,17 +47,28 @@ assigner :
- name : train_and_validate
percentage : 1.0
tasks :
# - aggregated_model_validation
- aggregated_model_validation
- train
# - locally_tuned_model_validation
- locally_tuned_model_validation

tasks :
defaults : plan/defaults/tasks_torch.yaml
aggregated_model_validation:
function : validate
kwargs :
metrics :
- val_eval
epochs : 1
train:
function : train
kwargs :
metrics :
- train_loss
epochs : 1
locally_tuned_model_validation:
function : validate
kwargs :
metrics :
- val_eval
epochs : 1

Expand Down

0 comments on commit 4e303d1

Please sign in to comment.