sksearchspace
Scikit-learn Search Space Configurations with curated search spaces for scikit-learn estimators.
Usage
from sksearchspace import SearchSpace
from sklearn.tree import DecisionTreeClassifier
estimator_space = SearchSpace.for_sklearn_estimator(DecisionTreeClassifier, seed=42)
estimator_space.sample()
# {'criterion': 'entropy','min_samples_leaf': 15, 'min_samples_split': 11}
estimator_space.sample()
# {'criterion': 'entropy', 'min_samples_leaf': 12, 'min_samples_split': 4}
sksearchspace uses ConfigSpace for sampling. The ConfigSpace configuration can be accessed through an attribute:
estimator_space.configuration
# Configuration space object:
# Hyperparameters:
# criterion, Type: Categorical, Choices: {gini, entropy}, Default: gini
# min_samples_leaf, Type: UniformInteger, Range: [1, 20], Default: 1
# min_samples_split, Type: UniformInteger, Range: [2, 20], Default: 2
A json file can be loaded as follows:
with open("search_space.json", "r") as f:
estimator_space = SearchSpace(f.read())
License
Copyright (c) 2020 Thomas J. Fan
Distributed under the terms of the MIT license, pytest is free and open source software.
Metadata
Release files for sksearchspace 2020.8.0.0.23.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sksearchspace-2020.8.0.0.23.1.tar.gz | 6.8 kB | Without provenance | Details for sksearchspace-2020.8.0.0.23.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sksearchspace-2020.8.0.0.23.1-py3-none-any.whl | Python 3 | none | any | Details for sksearchspace-2020.8.0.0.23.1-py3-none-any.whl |
Total release size: 13.7 kB
Release files / sksearchspace-2020.8.0.0.23.1.tar.gz
| Download URL | sksearchspace-2020.8.0.0.23.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dca4985d19fbadee1daf949501ff85d851e3b2aa78a828f10d4f6b1c8aea3ed
|
|
BLAKE2b-256 checksum How to use checksums |
6e473e4ed2555cb9c271377a11d13d052b2466d9b03c60b3645b2530b1839712
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / sksearchspace-2020.8.0.0.23.1-py3-none-any.whl
| Download URL | sksearchspace-2020.8.0.0.23.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01ac11389773c7f79fec5ff7cc24427c2a5e3744cc06ba4d69652cb9cf3046da
|
|
BLAKE2b-256 checksum How to use checksums |
d52c82aa6c240fbbbfd9b4ab82cd58b4204a6db9168ba7cd1f378ebf204198fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for sksearchspace 2020.8.0.0.23.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.