Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache directory typo in docs #1347

Open
prabhant opened this issue Sep 12, 2024 · 1 comment
Open

Cache directory typo in docs #1347

prabhant opened this issue Sep 12, 2024 · 1 comment

Comments

@prabhant
Copy link
Contributor

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

@PGijsbers
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants