
    \!h	                     "    S SK rSS jr SS jrg)    Nc                 N   [        U [        R                  5      (       d  [        S[	        U 5      -  5      e[        U[        R                  5      (       d  [        S[	        U5      -  5      eS[        UR                  5      ;  a  [        SUR                  -  5      eS[        U R                  5      ;   d1  S[        U R                  5      ;   d  [        SU R                  -  5      e[        U R                  5      S:w  a!  [        S[        U R                  5      -  5      e[        UR                  5      S	:  a!  [        S
[        UR                  5      -  5      eUR                  S   U R                  S   :w  a*  [        SUR                  S   U R                  S   4-  5      eg )Nz!X must be a NumPy array. Found %sz!y must be a NumPy array. Found %sintzPy must be an integer array. Found %s. Try passing the array as y.astype(np.int_)floatz.X must be an integer or float array. Found %s.   zX must be a 2D array. Found %s   zy must be a 1D array. Found %sr   zAy and X must contain the same number of samples. Got y: %d, X: %d)	
isinstancenpndarray
ValueErrortypestrdtypelenshape)Xyy_ints      iC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\mlxtend/utils/checking.pycheck_Xyr      sU   a$$<tAwFGGa$$<tAwFGGCL 9;<77C
 	

 s177|#uAGG'<IAGGSTT 177|q9CLHII
177|a9CLHII 	wwqzQWWQZ"#''!*aggaj!9:
 	
      c                    0 nX4 H\  n[        U[        [        S5      45      (       d#  [        SR	                  [        U5      5      5      eUc  MK  UR                  U5        M^     Ub  U H  nUR                  US5        M     U$ )a  Function to combine default and user specified kwargs dictionaries

Parameters
----------
default_kwargs : dict, optional
    Default kwargs (default is None).
user_kwargs : dict, optional
    User specified kwargs (default is None).
protected_keys : array_like, optional
    Sequence of keys to be removed from the returned dictionary
    (default is None).

Returns
-------
formatted_kwargs : dict
    Formatted kwargs dictionary.
Nz2d must be of type dict or None, but got {} instead)r   dictr   	TypeErrorformatupdatepop)default_kwargsuser_kwargsprotected_keysformatted_kwargsdkeys         r   format_kwarg_dictionariesr#   *   s    ( *!dDJ/00GNNtTUwW  =##A& + !!C  d+ " r   )T)NNN)numpyr	   r   r#    r   r   <module>r&      s    
> ;? r   