Skip to content

Commit

Permalink
set non-default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez committed Aug 16, 2022
1 parent 7f91b29 commit 6a2fd1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/python_package_test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,10 @@ def test_chunked_dataset_linear():

def test_save_dataset_subset_and_load_from_file(tmp_path):
data = np.random.rand(100, 2)
ds = lgb.Dataset(data)
params = {'max_bin': 50, 'min_data_in_bin': 10}
ds = lgb.Dataset(data, params=params)
ds.subset([1, 2, 3, 5, 8]).save_binary(tmp_path / 'subset.bin')
lgb.Dataset(tmp_path / 'subset.bin').construct()
lgb.Dataset(tmp_path / 'subset.bin', params=params).construct()


def test_subset_group():
Expand Down

0 comments on commit 6a2fd1f

Please sign in to comment.