Skip to content

Commit 6878134

Browse files
committed
Developing DS Code
1 parent 78a9da5 commit 6878134

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

experiments/notebooks/ciaran_experiments/nyc_taxi/nyc_taxi_lgbm_1.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@
66
# COMMAND ----------
77
from training import run_training
88

9+
num_rounds_arr = [20,40,60,80,100,120,140]
910

10-
11-
12-
13-
run_training(
14-
experiment_name = "ciaran_experiment_nyc_taxi",
15-
model_name = "taxi_example_fare_packaged",
16-
model_params = {
17-
"objective": "regression",
18-
"metric": "rmse",
19-
"num_leaves": 25,
20-
"learning_rate": 0.2,
21-
"bagging_fraction": 0.9,
22-
"feature_fraction": 0.9,
23-
"bagging_seed": 42,
24-
"verbosity": -1,
25-
"seed": 42
26-
}
27-
)
28-
from registration import run_registration
29-
run_registration(
30-
model_name = "taxi_example_fare_packaged"
31-
)
11+
for num_rounds in num_rounds_arr:
12+
run_training(
13+
experiment_name = "ciaran_experiment_nyc_taxi",
14+
model_name = "taxi_example_fare_packaged",
15+
model_params = {
16+
"objective": "regression",
17+
"metric": "rmse",
18+
"num_leaves": 25,
19+
"learning_rate": 0.2,
20+
"bagging_fraction": 0.9,
21+
"feature_fraction": 0.9,
22+
"bagging_seed": 42,
23+
"verbosity": -1,
24+
"seed": 42,
25+
"num_rounds": num_rounds
26+
}
27+
)
28+
from registration import run_registration
29+
run_registration(
30+
model_name = "taxi_example_fare_packaged"
31+
)

0 commit comments

Comments
 (0)