§
    rŠtj
  ã                   óP   — d Z ddlZddlZddlmZ ddlmZ ddlmZ d„ Z	d„ Z
d„ ZdS )	z_
Utility methods to print system info for debugging

adapted from :func:`pandas.show_versions`
é    N)Úthreadpool_info)Ú__version__)Ú_openmp_parallelism_enabledc                  ó¬   — t           j                             dd¦  «        } d| fdt           j        fdt	          j        ¦   «         fg}t          |¦  «        S )zsSystem information

    Returns
    -------
    sys_info : dict
        system and Python version information

    ú
ú ÚpythonÚ
executableÚmachine)ÚsysÚversionÚreplacer
   ÚplatformÚdict)r	   Úblobs     úZ/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/sklearn/utils/_show_versions.pyÚ_get_sys_infor      sU   € õ Œ[× Ò   sÑ+Ô+€Fð 
�6ÐØ	•s”~Ð&Ø	•HÔ%Ñ'Ô'Ð(ð€Dõ �‰:Œ:Ðó    c                  óx   — g d¢} dt           i}ddlm}m} | D ]!}	  ||¦  «        ||<   Œ# |$ r d||<   Y Œw xY w|S )a,  Overview of the installed version of main dependencies

    This function does not import the modules to collect the version numbers
    but instead relies on standard Python package metadata.

    Returns
    -------
    deps_info: dict
        version information on relevant Python libraries

    )
ÚpipÚ
setuptoolsÚnumpyÚscipyÚCythonÚpandasÚ
matplotlibÚjoblibÚthreadpoolctlÚnarwhalsÚsklearnr   )ÚPackageNotFoundErrorr   N)r   Úimportlib.metadatar!   r   )ÚdepsÚ	deps_infor!   r   Úmodnames        r   Ú_get_deps_infor&   '   s˜   € ðð ð €Dð 	•;ð€Ið AÐ@Ð@Ð@Ð@Ð@Ð@Ð@àð &ð &ˆð	&Ø!( ¨Ñ!1Ô!1ˆI�gÑÐøØ#ð 	&ð 	&ð 	&Ø!%ˆI�gÑÐÐð	&øøøàÐs   ›*ª
7¶7c                  ó   — t          ¦   «         } t          ¦   «         }t          d¦  «         |                      ¦   «         D ])\  }}t          d                     ||¬¦  «        ¦  «         Œ*t          d¦  «         |                     ¦   «         D ])\  }}t          d                     ||¬¦  «        ¦  «         Œ*t          d                     dt          ¦   «         ¬¦  «        ¦  «         t          ¦   «         }|r…t          ¦   «          t          d¦  «         t          |¦  «        D ]Z\  }}|                     ¦   «         D ]\  }}t          |d	›d
|› �¦  «         Œ|t          |¦  «        dz
  k    rt          ¦   «          ŒYdS dS )z³Print useful debugging information.

    .. versionadded:: 0.20

    Examples
    --------
    >>> from sklearn import show_versions
    >>> show_versions()  # doctest: +SKIP
    z
System:z{k:>10}: {stat})ÚkÚstatz
Python dependencies:z{k:>13}: {stat}z
{k}: {stat}zBuilt with OpenMPzthreadpoolctl info:z>15z: é   N)	r   r&   ÚprintÚitemsÚformatr   r   Ú	enumerateÚlen)	Úsys_infor$   r(   r)   Úthreadpool_resultsÚiÚresultÚkeyÚvals	            r   Úshow_versionsr6   N   s­  € õ ‰Œ€HÝÑ Ô €Iå	ˆ+ÑÔÐØ—>’>Ñ#Ô#ð 8ð 8‰ˆˆ4ÝÐ×&Ò&¨°Ð&Ñ6Ô6Ñ7Ô7Ð7Ð7å	Ð
"Ñ#Ô#Ð#Ø—?’?Ñ$Ô$ð 8ð 8‰ˆˆ4ÝÐ×&Ò&¨°Ð&Ñ6Ô6Ñ7Ô7Ð7Ð7å	Ø×ÒØ!Õ(CÑ(EÔ(Eð 	ñ 	
ô 	
ñô ð õ )Ñ*Ô*ÐØð Ý‰ŒˆÝÐ#Ñ$Ô$Ð$å"Ð#5Ñ6Ô6ð 	ð 	‰IˆAˆvØ"ŸLšL™NœNð +ð +‘��SÝ˜Ð)Ð)Ð) CÐ)Ð)Ñ*Ô*Ð*Ð*Ø•CÐ*Ñ+Ô+¨aÑ/Ò/Ð/Ý‘”�øðð ð	ð 	r   )Ú__doc__r   r   r   r   r    r   Úsklearn.utils._openmp_helpersr   r   r&   r6   © r   r   ú<module>r:      s‘   ððð ð €€€Ø 
€
€
€
à )Ð )Ð )Ð )Ð )Ð )à Ð Ð Ð Ð Ð Ø EÐ EÐ EÐ EÐ EÐ Eðð ð ð($ð $ð $ðN&ð &ð &ð &ð &r   