You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fetch_kddcup99 cache written uncompressed due to legacy decompression workaround #33117
The fetch_kddcup99 dataset loader currently forces joblib.dump(..., compress=0) when writing its local cache. This appears to be a historical workaround for an old decompression bug referenced in an inline comment, but the workaround is still present. As a result, the cache is stored uncompressed even though the dataset is very large, leading to unnecessary disk usage and extra IO.
Impact
Significantly larger local cache footprint for the KDDCup99 dataset
Increased disk usage and slower cache read/write operations
Inconsistent with other dataset fetchers that use compressed joblib caches by default
Steps/Code to Reproduce
fromsklearn.datasetsimportfetch_kddcup99# Download and cache the datasetfetch_kddcup99(download_if_missing=True)
# Inspect the cache directory (default):# ~/scikit_learn_data/kddcup99_10-py3/# Files: samples, targets# Observe these files are uncompressed on disk.
Expected Results
Cache files should be written with compression (e.g., compress=3) to reduce disk usage and IO.
Actual Results
Cache files are always written uncompressed due to compress=0.
I agree we should try to use compression if it works with all supported versions of joblib, but I don't understand how you got the exception in the screenshot.
I agree we should try to use compression if it works with all supported versions of joblib, but I don't understand how you got the exception in the screenshot.
The exception in the screenshot came from a corrupted local cache (zero‑byte samples file), which triggered an EOFError when joblib.load tried to unpickle it. I should not have included that errorr screenshot since it reflects a local, transient cache issue rather than the actual behavior under normal conditions. I’ will remove the screenshot if you want
and ig the PR fixes the issue and is mergeable
Activity
ogrisel commentedon Jan 21, 2026
I agree we should try to use compression if it works with all supported versions of joblib, but I don't understand how you got the exception in the screenshot.
un1u3 commentedon Jan 21, 2026
The exception in the screenshot came from a corrupted local cache (zero‑byte samples file), which triggered an EOFError when joblib.load tried to unpickle it. I should not have included that errorr screenshot since it reflects a local, transient cache issue rather than the actual behavior under normal conditions. I’ will remove the screenshot if you want
and ig the PR fixes the issue and is mergeable
ogrisel commentedon Jan 21, 2026
Let's remove the screenshot with the traceback because it's confusing.
ogrisel commentedon Jan 21, 2026
Also, for the future, it's more efficient and more accessible to copy and paste code as a text rather than screenshots.
You can use markdown to preserve the formatting of code blocks or multi line tracebacks and use syntax highlighting:
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks
un1u3 commentedon Jan 21, 2026
All set now
I think everything is okay and mergable