Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…59a85eaf3d42ac5d28786305f264b00cc0/make/req_env.mk#L463 and ensure can import lightgbm if using DAI
  • Loading branch information
pseudotensor committed Dec 3, 2020
1 parent 7e5c40d commit d413698
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dask_lightgbm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import dask.array as da
import dask.dataframe as dd
from h2oaicore.lightgbm_dynamic import got_cpu_lgb, got_gpu_lgb
import lightgbm
import numpy as np
import pandas as pd
Expand Down Expand Up @@ -119,7 +120,8 @@ def train(client, data, label, params, model_factory, weight=None, **kwargs):
# Tell each worker to train on the parts that it has locally
futures_classifiers = [client.submit(_train_part,
model_factory=model_factory,
params=assoc(params, 'num_threads', worker_ncores[worker]),
#params=assoc(params, 'num_threads', worker_ncores[worker]),
params=params,
list_of_parts=list_of_parts,
worker_addresses=list(worker_map.keys()),
local_listen_port=params.get('local_listen_port', 12400),
Expand Down
1 change: 1 addition & 0 deletions dask_lightgbm/tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import dask.array as da
import dask.dataframe as dd
from h2oaicore.lightgbm_dynamic import got_cpu_lgb, got_gpu_lgb
import lightgbm
import numpy as np
import pandas as pd
Expand Down

0 comments on commit d413698

Please sign in to comment.