Skip to content

Commit

Permalink
Decrease size of trees in test
Browse files Browse the repository at this point in the history
  • Loading branch information
neNasko1 committed Sep 21, 2024
1 parent 3fe4577 commit 9e3e8ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/python_package_test/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,12 +1450,11 @@ def test_init_score(task, output, cluster):
_, _, _, _, dX, dy, dw, dg = _create_data(objective=task, output=output, group=None)

model_factory = task_to_dask_factory[task]
rnd = np.random.RandomState(42)

params = {"n_estimators": 30, "num_leaves": 15, "time_out": 5}
params = {"n_estimators": 1, "num_leaves": 2, "time_out": 5}
num_classes = 3 if task == "multiclass-classification" else 1

rnd = np.random.RandomState(42)

if output.startswith("dataframe"):
init_scores = dy.map_partitions(lambda x: pd.DataFrame(rnd.uniform(size=(x.size, num_classes))))
else:
Expand Down

0 comments on commit 9e3e8ed

Please sign in to comment.