W3cubDocs

/scikit-learn

get_config

sklearn.get_config()[source]

Retrieve current values for configuration set by set_config.

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–2025 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.6/modules/generated/sklearn.get_config.html