Skip to content

Commit e921753

Browse files
committed
Fix xgboost ci step
1 parent 013fa3c commit e921753

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sklbench/benchmarks/sklearn_estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def function(*args, **kwargs):
505505

506506
return data_descriptor
507507

508-
return function()
508+
return function
509509

510510

511511
def measure_sklearn_estimator(

sklbench/datasets/special_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def assign_case_special_values_on_run(
213213
and library == "xgboost"
214214
and estimator == "XGBClassifier"
215215
):
216-
y_train = convert_to_numpy(data[1])
216+
y_train = convert_to_numpy(data[2])
217217
value_counts = pd.value_counts(y_train).sort_index()
218218
if len(value_counts) != 2:
219219
logger.info(

sklbench/datasets/transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ def split_and_transform_data(dataset_info, data, device, data_description):
183183
data_description[subset_name]["features"] = converted_data.shape[1]
184184

185185
return (
186-
(data_dict[name] for name in ["x_train", "x_test", "y_train", "y_test"]),
186+
[data_dict[name] for name in ["x_train", "x_test", "y_train", "y_test"]],
187187
data_description,
188188
)

0 commit comments

Comments
 (0)