Skip to content

Commit

Permalink
sweeper
Browse files Browse the repository at this point in the history
  • Loading branch information
teyaberg committed Aug 21, 2024
1 parent 0d7ed27 commit 9c542ea
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MEDS_tabular_automl/configs/model/knn_classifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ model_params:

hydra:
sweeper:
direction: maximize
n_trials: 250
n_jobs: 25

params:
model_params.model.n_neighbors: range(1, 20)
model_params.model.weights: choice(['uniform', 'distance'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ model_params:

hydra:
sweeper:
direction: maximize
n_trials: 250
n_jobs: 25

params:
model_params.model.C: tag(log, interval(1e-6, 1))
model_params.model.penalty: choice(['l1', 'l2', 'elasticnet'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ model_params:

hydra:
sweeper:
direction: maximize
n_trials: 250
n_jobs: 25

params:
model_params.model.n_estimators: range(50, 300, 50)
model_params.model.max_depth: choice([null, 10, 20, 30, 40, 50])
Expand Down
3 changes: 3 additions & 0 deletions src/MEDS_tabular_automl/configs/model/sgd_classifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ model_params:

hydra:
sweeper:
direction: maximize
n_trials: 250
n_jobs: 25
params:
+model_params.model.alpha: tag(log, interval(1e-6, 1))
+model_params.model.l1_ratio: interval(0, 1)
Expand Down
4 changes: 4 additions & 0 deletions src/MEDS_tabular_automl/configs/model/xgboost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ model_params:

hydra:
sweeper:
direction: maximize
n_trials: 250
n_jobs: 25

params:
+model_params.model.eta: tag(log, interval(0.001, 1))
+model_params.model.lambda: tag(log, interval(0.001, 1))
Expand Down

0 comments on commit 9c542ea

Please sign in to comment.