_config
openml._config
#
Store module level information like the API key, cache directory and the server
ConfigurationForExamples
#
ConfigurationForExamples(manager: OpenMLConfigManager)
Allows easy switching to and from a test configuration, used for examples.
Source code in openml/_config.py
start_using_configuration_for_example
#
Sets the configuration to connect to the test server with valid apikey.
To configuration as was before this call is stored, and can be recovered
by using the stop_use_example_configuration method.
Source code in openml/_config.py
stop_using_configuration_for_example
#
Return to configuration as it was before start_use_example_configuration.
Source code in openml/_config.py
OpenMLConfig
dataclass
#
OpenMLConfig(apikey: str | None = '', server: str = 'https://www.openml.org/api/v1/xml', cachedir: Path = _resolve_default_cache_dir(), avoid_duplicate_runs: bool = False, retry_policy: Literal['human', 'robot'] = 'human', connection_n_retries: int = 5, show_progress: bool = False)
Dataclass storing the OpenML configuration.
OpenMLConfigManager
#
The OpenMLConfigManager manages the configuration of the openml-python package.
Source code in openml/_config.py
determine_config_file_path
#
Determine the path to the openml configuration file.
Source code in openml/_config.py
get_cache_directory
#
Get the cache directory for the current server.
Source code in openml/_config.py
get_config_as_dict
#
get_server_base_url
#
Get the base URL of the OpenML server (i.e., without /api).
overwrite_config_context
#
Overwrite the current configuration within a context manager.
Source code in openml/_config.py
set_console_log_level
#
Set the log level for console output.
set_field_in_config_file
#
Set a field in the configuration file.
Source code in openml/_config.py
set_file_log_level
#
set_retry_policy
#
Set the retry policy for server connections.
Source code in openml/_config.py
set_root_cache_directory
#
Set the root cache directory.
start_using_configuration_for_example
#
Sets the configuration to connect to the test server with valid apikey.
stop_using_configuration_for_example
#
Store the configuration as it was before start_use_example_configuration.