Skip to main content

Travis Status Documentation Status Conda Badge PyPI Badge

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

Highlights

  • 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.

Install

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

Example

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)

search.fit(digits.data, digits.target)

Metadata

Release files for dask-searchcv 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dask-searchcv 0.2.0
File Size Uploaded Provenance
dask-searchcv-0.2.0.tar.gz 52.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dask-searchcv 0.2.0
File Interpreter ABI Platform
dask_searchcv-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 92.4 kB

Release files / dask-searchcv-0.2.0.tar.gz

Download URL dask-searchcv-0.2.0.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c1eaa9271dadc0d25659550352e883402dc7c28a217209c4715d5b46556a8565
BLAKE2b-256 checksum
How to use checksums
a9abac49083e81aa1527ef2d0cd30a0ea1260c7e74262174ddbc6c8a7a94f816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dask_searchcv-0.2.0-py2.py3-none-any.whl

Download URL dask_searchcv-0.2.0-py2.py3-none-any.whl
Size 40.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e869bd7850fe197fd3084502b6a3b03cb818cda75ef4ce026647c764b3bacf3d
BLAKE2b-256 checksum
How to use checksums
5d02a83e3146c314d4ab38d9c604c8bc11058b0b6d52a562ab2b043951a27277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dask-searchcv 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page