openml-python icon indicating copy to clipboard operation
openml-python copied to clipboard

Cache directory typo in docs

Open prabhant opened this issue 1 year ago • 1 comments

Description

The cache directory change from example did not really work for me: https://openml.github.io/openml-python/develop/examples/20_basic/introduction_tutorial.html

``

Steps/Code to Reproduce

Expected Results

openml.config.get_cache_directory()
'mydir'

Actual Results

openml.config.get_cache_directory()
'oldcache'

Versions

PS: This worked for me when I used openml.config._root_cache_directory

prabhant avatar Sep 12 '24 09:09 prabhant

The way the cache directory should be set changed. It should be :

openml.config.set_root_cache_directory("my/directory")

This internally sets openml.config._root_cache_directory, but it's more future proof (private variable may change in new releases without notice).

The documentation needs an update here.

PGijsbers avatar Sep 12 '24 10:09 PGijsbers

Should be fixed in #1379

SubhadityaMukherjee avatar Jun 16 '25 14:06 SubhadityaMukherjee