
    {Kg                        d Z ddlZddlmZ ddlZddlmZ ddlm	Z	m
Z
 ddlmZ dd	lmZmZ dd
lmZ ddlmZmZmZ ddlmZ ddlmZmZ ddlmZ ddlmZ ddlm Z  ddl!m"Z" ddl#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z- dZ.  ee.      e	j^                        Z/ ee.       G d de	j`                               Z0g dZ1d Z2 ed      d        Z3y)z+Various utilities to help with development.    N)Sequence   )DataConversionWarning   )_joblibmetadata_routing)Bunch)gen_batchesgen_even_slices)estimator_html_repr)_safe_indexingresampleshuffle)	safe_mask)compute_class_weightcompute_sample_weight)
deprecated)all_estimators)safe_sqr)murmurhash3_32)
as_float_arrayassert_all_finitecheck_arraycheck_consistent_lengthcheck_random_statecheck_scalarcheck_symmetric	check_X_ycolumn_or_1d	indexablez>deprecated in 1.5 to be removed in 1.7. Use joblib.{} instead.c                       e Zd Zy)parallel_backendN)__name__
__module____qualname__     Z/home/alanp/www/video.onchill/myenv/lib/python3.12/site-packages/sklearn/utils/__init__.pyr"   r"   1   s    r'   r"   )r   r   r   r   r   r   r   r   r   r   r   r    r   r   r"   register_parallel_backendr   r   r   r   r   r	   r   r   r   r
   r   c                 z    | dk(  r"t        j                  dt               ddlm} |S t        dt         d|        )NIS_PYPYz1IS_PYPY is deprecated and will be removed in 1.7.r   )_IS_PYPYzmodule z has no attribute )warningswarnFutureWarningfixesr,   AttributeErrorr#   )namer,   s     r(   __getattr__r3   V   s?    y?	
 	$
78*,>tfE
FFr'   z;tosequence was deprecated in 1.5 and will be removed in 1.7c                     t        | t        j                        rt        j                  |       S t        | t              r| S t        |       S )a  Cast iterable x to a Sequence, avoiding a copy if possible.

    Parameters
    ----------
    x : iterable
        The iterable to be converted.

    Returns
    -------
    x : Sequence
        If `x` is a NumPy array, it returns it as a `ndarray`. If `x`
        is a `Sequence`, `x` is returned as-is. If `x` is from any other
        type, `x` is returned casted as a list.
    )
isinstancenpndarrayasarrayr   list)xs    r(   
tosequencer;   c   s8      !RZZ zz!}	Ax	 Awr'   )4__doc__r-   collections.abcr   numpyr6   
exceptionsr    r   r   _bunchr	   	_chunkingr
   r   _estimator_html_reprr   	_indexingr   r   r   _maskr   class_weightr   r   deprecationr   	discoveryr   extmathr   
murmurhashr   
validationr   r   r   r   r   r   r   r   r   r    msgr)   r"   __all__r3   r;   r&   r'   r(   <module>rN      s    1  $  . '  3 5 
  E # %  &   G+JsOG,M,MN  C	w// 	 	@	G IJ Kr'   