Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parallel learning using Dask

Scikit-Learn already provides parallel computing on a single machine with Joblib.
But l want to use Dask how can l achieve this?

from dask.distributed import Client
client = Client()  

how do l proceed from this?

like image 497
Deep Analytics Avatar asked Aug 04 '26 13:08

Deep Analytics


1 Answers

There is a snippet from the dask documentation, you can use both the dask syntax and sk"Scikit-learn" code

import dask_ml.joblib
from sklearn.externals.joblib import parallel_backend
with parallel_backend('dask'):
# Your normal scikit-learn code here

Additional documentation here: http://dask-ml.readthedocs.io/

like image 147
Simbarashe Timothy Motsi Avatar answered Aug 07 '26 04:08

Simbarashe Timothy Motsi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!