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.2.tar.gz
(30.4 kB
view details)
Built Distribution
File details
Details for the file scikit-cache-0.1.2.tar.gz
.
File metadata
- Download URL: scikit-cache-0.1.2.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e09d76f37a1a66f03bb85c8101a1f0bced23dc888a0a3d83f9098faccc17ac81 |
|
MD5 | c927abf61004937400958cbfadf0d6ba |
|
BLAKE2b-256 | 030be75c651119af7a752239657fb93bba95fc1e3a9a70e14bd9ca31ba60dc1c |
File details
Details for the file scikit_cache-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: scikit_cache-0.1.2-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b8398b6ac61be5a893e15dadf8a84aad14b9be9fb2ab0eb543fdb964ab65ef |
|
MD5 | e5400dbdd7043d061be51ea272175d44 |
|
BLAKE2b-256 | aa4712044ac4f0f21ac293d55c44d517e321a3069616601158cdcd279874b3b4 |