Pickle-based caching library with SKLearn estimators supports
Project description
Scikit Cache
Pickle-based caching library. Supports file-system caching only.
Installation
pip install scikit_cache
Or to develop package you may install dev dependencies:
pip install -e ".[dev]" && pip uninstall -y scikit_cache
How to disable logs
Option 1: Disable all logs in cache controller
from scikit_cache import CacheController
cache = CacheController(..., logger=None)
Option 2: Disable specific logs
To disable specific logs you need to add one of these lines before executing code with cache:
import logging
# Disable basic logs like "cache enabled" or "cache disabled"
logging.getLogger('scikit_cache.controller').setLevel(logging.ERROR)
# Disable logs from "@cache.decorator" only
logging.getLogger('scikit_cache.decorator').setLevel(logging.ERROR)
# Disable logs for estimators created by "make_cached_estimator"
logging.getLogger('scikit_cache.estimator').setLevel(logging.ERROR)
# Disable hashing errors
logging.getLogger('scikit_cache.hashing').setLevel(logging.ERROR)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scikit-cache-0.1.1.tar.gz
(30.2 kB
view hashes)
Built Distribution
Close
Hashes for scikit_cache-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0589b1468741d84a5a40fff24bc0dd353c95a278bf82d175628744d584e8174 |
|
MD5 | 8de35f30d403c6ad9d79f0f095eb7d62 |
|
BLAKE2b-256 | 2e720e7e90cc1f0c01e2db5f2464dedf95484258a2d3b82c5e6cd4ca1b8e1f95 |