get_config
- sklearn.get_config()[source]
-
Retrieve the current scikit-learn configuration.
This reflects the effective global configurations as established by default upon library import, or modified via
set_configorconfig_context.- Returns:
-
- configdict
-
Keys are parameter names that can be passed to
set_config.
See also
config_context-
Context manager for global scikit-learn configuration.
set_config-
Set global scikit-learn configuration.
Examples
>>> import sklearn >>> config = sklearn.get_config() >>> config.keys() dict_keys([...])
© 2007–2026 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.9/modules/generated/sklearn.get_config.html