Skip to content

Commit c6e738a

Browse files
author
igor_rukhovich
committed
Checking for caching
1 parent 2e0fb59 commit c6e738a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modelbuilders/lgbm_mb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
help='Maximum delta step we allow each leaf output to be')
2828
parser.add_argument('--max-depth', type=int, default=6,
2929
help='Maximum depth of a tree')
30-
parser.add_argument('--max-leaves', type=int, default=31,
30+
parser.add_argument('--max-leaves', type=int, default=0,
3131
help='Maximum number of nodes to be added')
3232
parser.add_argument('--min-child-weight', type=float, default=1,
3333
help='Minimum sum of instance weight needed in a child')

modelbuilders/xgb_mb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def predict(dtest=None):
122122
return model_xgb.predict(dtest)
123123

124124
t_train, model_xgb = measure_function_time(fit, dtrain if params.count_dmatrix else None, params=params)
125-
y_train_pred = model_xgb.predict(dtrain)
126-
train_metric = metric_func(y_train, y_train_pred)
125+
y_train_pred = 0 # model_xgb.predict(dtrain)
126+
train_metric = 0 # metric_func(y_train, y_train_pred)
127127

128128
t_xgb_pred, y_test_pred = measure_function_time(predict, dtest if params.count_dmatrix else None, params=params)
129129
test_metric_xgb = metric_func(y_test, y_test_pred)

0 commit comments

Comments
 (0)