ó
    ¨ñ:i]5  ã                   óØ  • S r SSKrSSKrSSKJr  SSKrSSKJr  \" \R                  5      r	\	\" S5      :  a¦  \
" \R                  R                  SS5      5      \" \R                  R                  SS	5      5      S
S\" \R                  R                  SS5      5      S
SSSS.	r\R                  " 5       rS rS r         SS jr\SSSSSSSSSS.	S j5       rgSSKJrJrJrJr  g)z–This is copy of sklearn/_config.py
# TODO: remove this file when scikit-learn minimum version is 1.3
We remove the array_api_dispatch for the moment.
é    N)Úcontextmanager)Úparse_versionz1.3ÚSKLEARN_ASSUME_FINITEFÚSKLEARN_WORKING_MEMORYi   TÚdiagramÚ SKLEARN_PAIRWISE_DIST_CHUNK_SIZEé   Údefault©	Úassume_finiteÚworking_memoryÚprint_changed_onlyÚdisplayÚpairwise_dist_chunk_sizeÚenable_cython_pairwise_distÚtransform_outputÚenable_metadata_routingÚskip_parameter_validationc                  óˆ   • [        [        S5      (       d  [        R                  " 5       [        l        [        R                  $ )zxGet a threadlocal **mutable** configuration. If the configuration
does not exist, copy the default global configuration.Úglobal_config)ÚhasattrÚ_threadlocalÚ_global_configÚcopyr   © ó    ÚS/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/imblearn/_config.pyÚ_get_threadlocal_configr      s.   € ô ”| _×5Ñ5Ü)7×)<Ò)<Ó)>ŒLÔ&Ü×)Ñ)Ð)r   c                  ó2   • [        5       R                  5       $ )a:  Retrieve current values for configuration set by :func:`set_config`.

Returns
-------
config : dict
    Keys are parameter names that can be passed to :func:`set_config`.

See Also
--------
config_context : Context manager for global scikit-learn configuration.
set_config : Set global scikit-learn configuration.
)r   r   r   r   r   Ú
get_configr    %   s   € ô 'Ó(×-Ñ-Ó/Ð/r   c	                 ó˜   • [        5       n	U b  X	S'   Ub  XS'   Ub  X)S'   Ub  X9S'   Ub  XIS'   Ub  XYS'   Ub  XiS'   Ub  XyS	'   Ub  X‰S
'   gg)aÈ  Set global scikit-learn configuration

.. versionadded:: 0.19

Parameters
----------
assume_finite : bool, default=None
    If True, validation for finiteness will be skipped,
    saving time, but leading to potential crashes. If
    False, validation for finiteness will be performed,
    avoiding error.  Global default: False.

    .. versionadded:: 0.19

working_memory : int, default=None
    If set, scikit-learn will attempt to limit the size of temporary arrays
    to this number of MiB (per job when parallelised), often saving both
    computation time and memory on expensive operations that can be
    performed in chunks. Global default: 1024.

    .. versionadded:: 0.20

print_changed_only : bool, default=None
    If True, only the parameters that were set to non-default
    values will be printed when printing an estimator. For example,
    ``print(SVC())`` while True will only print 'SVC()' while the default
    behaviour would be to print 'SVC(C=1.0, cache_size=200, ...)' with
    all the non-changed parameters.

    .. versionadded:: 0.21

display : {'text', 'diagram'}, default=None
    If 'diagram', estimators will be displayed as a diagram in a Jupyter
    lab or notebook context. If 'text', estimators will be displayed as
    text. Default is 'diagram'.

    .. versionadded:: 0.23

pairwise_dist_chunk_size : int, default=None
    The number of row vectors per chunk for the accelerated pairwise-
    distances reduction backend. Default is 256 (suitable for most of
    modern laptops' caches and architectures).

    Intended for easier benchmarking and testing of scikit-learn internals.
    End users are not expected to benefit from customizing this configuration
    setting.

    .. versionadded:: 1.1

enable_cython_pairwise_dist : bool, default=None
    Use the accelerated pairwise-distances reduction backend when
    possible. Global default: True.

    Intended for easier benchmarking and testing of scikit-learn internals.
    End users are not expected to benefit from customizing this configuration
    setting.

    .. versionadded:: 1.1

transform_output : str, default=None
    Configure output of `transform` and `fit_transform`.

    See :ref:`sphx_glr_auto_examples_miscellaneous_plot_set_output.py`
    for an example on how to use the API.

    - `"default"`: Default output format of a transformer
    - `"pandas"`: DataFrame output
    - `None`: Transform configuration is unchanged

    .. versionadded:: 1.2

enable_metadata_routing : bool, default=None
    Enable metadata routing. By default this feature is disabled.

    Refer to :ref:`metadata routing user guide <metadata_routing>` for more
    details.

    - `True`: Metadata routing is enabled
    - `False`: Metadata routing is disabled, use the old syntax.
    - `None`: Configuration is unchanged

    .. versionadded:: 1.3

skip_parameter_validation : bool, default=None
    If `True`, disable the validation of the hyper-parameters' types
    and values in the fit method of estimators and for arguments passed
    to public helper functions. It can save time in some situations but
    can lead to low level crashes and exceptions with confusing error
    messages.

    Note that for data parameters, such as `X` and `y`, only type validation is
    skipped but validation with `check_array` will continue to run.

    .. versionadded:: 1.3

See Also
--------
config_context : Context manager for global scikit-learn configuration.
get_config : Retrieve current values of the global configuration.
Nr   r   r   r   r   r   r   r   r   )r   )
r   r   r   r   r   r   r   r   r   Úlocal_configs
             r   Ú
set_configr#   6   s—   € ô^ /Ó0ˆàÑ$Ø,9˜Ñ)ØÑ%Ø-;Ð)Ñ*ØÑ)Ø1CÐ-Ñ.ØÑØ&-˜Ñ#Ø#Ñ/Ø7OÐ3Ñ4Ø&Ñ2Ø:UÐ6Ñ7ØÑ'Ø/?Ð+Ñ,Ø"Ñ.Ø6MÐ2Ñ3Ø$Ñ0Ø8QÐ4Ò5ð 1r   c        	      #   ó‚   #   • [        5       n	[        U UUUUUUUUS9	   Sv •  [        S0 U	D6  g! [        S0 U	D6  f = f7f)aº  Context manager for global scikit-learn configuration.

Parameters
----------
assume_finite : bool, default=None
    If True, validation for finiteness will be skipped,
    saving time, but leading to potential crashes. If
    False, validation for finiteness will be performed,
    avoiding error. If None, the existing value won't change.
    The default value is False.

working_memory : int, default=None
    If set, scikit-learn will attempt to limit the size of temporary arrays
    to this number of MiB (per job when parallelised), often saving both
    computation time and memory on expensive operations that can be
    performed in chunks. If None, the existing value won't change.
    The default value is 1024.

print_changed_only : bool, default=None
    If True, only the parameters that were set to non-default
    values will be printed when printing an estimator. For example,
    ``print(SVC())`` while True will only print 'SVC()', but would print
    'SVC(C=1.0, cache_size=200, ...)' with all the non-changed parameters
    when False. If None, the existing value won't change.
    The default value is True.

    .. versionchanged:: 0.23
    Default changed from False to True.

display : {'text', 'diagram'}, default=None
    If 'diagram', estimators will be displayed as a diagram in a Jupyter
    lab or notebook context. If 'text', estimators will be displayed as
    text. If None, the existing value won't change.
    The default value is 'diagram'.

    .. versionadded:: 0.23

pairwise_dist_chunk_size : int, default=None
    The number of row vectors per chunk for the accelerated pairwise-
    distances reduction backend. Default is 256 (suitable for most of
    modern laptops' caches and architectures).

    Intended for easier benchmarking and testing of scikit-learn internals.
    End users are not expected to benefit from customizing this configuration
    setting.

    .. versionadded:: 1.1

enable_cython_pairwise_dist : bool, default=None
    Use the accelerated pairwise-distances reduction backend when
    possible. Global default: True.

    Intended for easier benchmarking and testing of scikit-learn internals.
    End users are not expected to benefit from customizing this configuration
    setting.

    .. versionadded:: 1.1

transform_output : str, default=None
    Configure output of `transform` and `fit_transform`.

    See :ref:`sphx_glr_auto_examples_miscellaneous_plot_set_output.py`
    for an example on how to use the API.

    - `"default"`: Default output format of a transformer
    - `"pandas"`: DataFrame output
    - `None`: Transform configuration is unchanged

    .. versionadded:: 1.2

enable_metadata_routing : bool, default=None
    Enable metadata routing. By default this feature is disabled.

    Refer to :ref:`metadata routing user guide <metadata_routing>` for more
    details.

    - `True`: Metadata routing is enabled
    - `False`: Metadata routing is disabled, use the old syntax.
    - `None`: Configuration is unchanged

    .. versionadded:: 1.3

skip_parameter_validation : bool, default=None
    If `True`, disable the validation of the hyper-parameters' types
    and values in the fit method of estimators and for arguments passed
    to public helper functions. It can save time in some situations but
    can lead to low level crashes and exceptions with confusing error
    messages.

    Note that for data parameters, such as `X` and `y`, only type validation is
    skipped but validation with `check_array` will continue to run.

    .. versionadded:: 1.3

Yields
------
None.

See Also
--------
set_config : Set global scikit-learn configuration.
get_config : Retrieve current values of the global configuration.

Notes
-----
All settings, not just those presently modified, will be returned to
their previous values when the context manager is exited.

Examples
--------
>>> import sklearn
>>> from sklearn.utils.validation import assert_all_finite
>>> with sklearn.config_context(assume_finite=True):
...     assert_all_finite([float('nan')])
>>> with sklearn.config_context(assume_finite=True):
...     with sklearn.config_context(assume_finite=False):
...         assert_all_finite([float('nan')])
Traceback (most recent call last):
...
ValueError: Input contains NaN...
r   Nr   )r    r#   )
r   r   r   r   r   r   r   r   r   Ú
old_configs
             r   Úconfig_contextr&   º   sP   é € ôL  “\ˆ
ÜØ'Ø)Ø1ØØ%=Ø(CØ-Ø$;Ø&?ò
	
ð	%ÛäÑ$˜Ó$øŒJÑ$˜Ó$üs   ‚?Ÿ/ £?¯<¼?)r   r   r&   r    )	NNNNNNNNN)Ú__doc__ÚosÚ	threadingÚ
contextlibr   ÚsklearnÚsklearn.utils.fixesr   Ú__version__Úsklearn_versionÚboolÚenvironÚgetÚintr   Úlocalr   r   r    r#   r&   Úsklearn._configr   r   r   Ú<module>r5      s  ðñó 
Û Ý 7ã Ý -á × 3Ñ 3Ó4€à‘] 5Ó)Ó)á˜bŸj™jŸn™nÐ-DÀeÓLÓMÙ˜bŸj™jŸn™nÐ-EÀtÓLÓMØ"ØÙ$'Ø�J‰J�N‰NÐ=¸sÓCó%
ð (,Ø%Ø#(Ø%*ñ€Nð —?’?Ó$€Lò*ò0ð$ ØØØØ!%Ø$(ØØ $Ø"&ôBRðH ð ØØØØ!%Ø$(ØØ $Ø"&ôU%ó ñU%÷pô r   