Skip to main content

Tools for doing hyperparameter search Scikit-Learn and Dask

Project description

Travis Status Documentation Status

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

This library provides implementations of Scikit-Learn’s GridSearchCV and RandomizedSearchCV. They implement many (but not all) of the same parameters, and should be a drop-in replacement for the subset that they do implement. For certain problems, these implementations can be more efficient than those in Scikit-Learn, as they can avoid expensive repeated computations.

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)

Project details


Download files

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

Source Distribution

dask-searchcv-0.0.1.tar.gz (45.6 kB view details)

Uploaded Source

File details

Details for the file dask-searchcv-0.0.1.tar.gz.

File metadata

File hashes

Hashes for dask-searchcv-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b14ed363209d1761a7858197639a5e09278270ac6cd226ca6ab2e4ca6c3ec50b
MD5 7d8fb38ba01d7518e2d22e5933f1e419
BLAKE2b-256 65a20c1b1fdeecfc7e050d20dc2ed74605b1cce67243786181eb7916cfbb3718

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page