Skip to main content

Tools for doing hyperparameter search with Scikit-Learn and Dask

Project description

Travis Status Documentation Status Conda Badge PyPI Badge

Tools for performing hyperparameter search with Scikit-Learn and Dask.


  • Drop-in replacement for Scikit-Learn’s GridSearchCV and RandomizedSearchCV.
  • Hyperparameter optimization can be done in parallel using threads, processes, or distributed across a cluster.
  • Works well with Dask collections. Dask arrays, dataframes, and delayed can be passed to fit.
  • Candidate estimators with identical parameters and inputs will only be fit once. For composite-estimators such as Pipeline this can be significantly more efficient as it can avoid expensive repeated computations.

For more information, check out the documentation.


Dask-searchcv is available via conda or pip:

# Install with conda
$ conda install dask-searchcv -c conda-forge

# Install with pip
$ pip install dask-searchcv


from sklearn.datasets import load_digits
from sklearn.svm import SVC
import dask_searchcv as dcv
import numpy as np

digits = load_digits()

param_space = {'C': np.logspace(-4, 4, 9),
               'gamma': np.logspace(-4, 4, 9),
               'class_weight': [None, 'balanced']}

model = SVC(kernel='rbf')
search = dcv.GridSearchCV(model, param_space, cv=3),

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dask-searchcv, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size dask_searchcv-0.1.0-py2.py3-none-any.whl (36.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dask-searchcv-0.1.0.tar.gz (47.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page