Skip to content

Commit 1adf5a1

Browse files
committed
Update train_config.yaml with enhanced model search space and parameters
1 parent 3fe656c commit 1adf5a1

File tree

1 file changed

+47
-6
lines changed

1 file changed

+47
-6
lines changed

train_and_deploy/configs/train_config.yaml

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ model:
5959
extra:
6060
notify_on_failure: True
6161
# pipeline level parameters
62+
# Updated train_config.yaml
63+
6264
parameters:
6365
target_env: staging
64-
# This set contains all the model configurations that you want
65-
# to evaluate during hyperparameter tuning stage.
6666
model_search_space:
6767
random_forest:
6868
model_package: sklearn.ensemble
@@ -78,15 +78,20 @@ parameters:
7878
- 8
7979
- 10
8080
- 12
81+
- None # Allow unlimited depth
8182
min_samples_leaf:
8283
range:
8384
start: 1
84-
end: 10
85+
end: 15
8586
n_estimators:
8687
range:
8788
start: 50
88-
end: 500
89-
step: 25
89+
end: 1000
90+
step: 50
91+
max_features:
92+
- auto
93+
- sqrt
94+
- log2
9095
decision_tree:
9196
model_package: sklearn.tree
9297
model_class: DecisionTreeClassifier
@@ -101,7 +106,43 @@ parameters:
101106
- 8
102107
- 10
103108
- 12
109+
- None
104110
min_samples_leaf:
105111
range:
106112
start: 1
107-
end: 10
113+
end: 15
114+
gradient_boosting:
115+
model_package: sklearn.ensemble
116+
model_class: GradientBoostingClassifier
117+
search_grid:
118+
learning_rate:
119+
- 0.01
120+
- 0.1
121+
- 0.2
122+
n_estimators:
123+
range:
124+
start: 50
125+
end: 500
126+
step: 50
127+
max_depth:
128+
- 3
129+
- 5
130+
- 7
131+
subsample:
132+
- 0.6
133+
- 0.8
134+
- 1.0
135+
svc:
136+
model_package: sklearn.svm
137+
model_class: SVC
138+
search_grid:
139+
C:
140+
- 0.1
141+
- 1
142+
- 10
143+
kernel:
144+
- linear
145+
- rbf
146+
gamma:
147+
- scale
148+
- auto

0 commit comments

Comments
 (0)