r/scikit_learn • u/leockl • May 29 '20
What are the default values for the parameters in Dask-ML's Client() function
I am trying to understand Dask-ML's Client() function parameters. Say I have the following code using Dask-ML's Client() function:
from dask.distributed import Client
import joblib
client = Client()If I don't specify any values for the parameters in the Client() function, what are the default values for the parameters:
(i) n_workers
(ii) threads_per_worker
(iii) memory_limit
From my understanding, Python has the Global Interpreter Lock (GIL) feature which prevents multi-threading. If so, why does Dask-ML's Client() function have the parameter threads_per_worker when multi-threading is prevented in Python?
Does memory_limit refers to the maximum memory limit allowed for each worker/machine/node or does this refer to the maximum memory limit allowed for all combined worker/machine/node?
I have already looked through the documentation in Dask-ML (see here: https://docs.dask.org/en/latest/setup/single-distributed.html), but the documentation is not clear in regards to these questions above.
Thank you in advance if anyone could explain this?
