
    -i	                     N    S r SSKrSSKrSSKJr  SSKJr  SSKJr  S r	S	 r
S
 rg)z_
Utility methods to print system info for debugging

adapted from :func:`pandas.show_versions`
    N)threadpool_info   )__version__   )_openmp_parallelism_enabledc                      [         R                  R                  SS5      n SU 4S[         R                  4S[        R                  " 5       4/n[        U5      $ )z_System information

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


 python
executablemachine)sysversionreplacer   platformdict)r   blobs     O/var/www/html/venv/lib/python3.13/site-packages/sklearn/utils/_show_versions.py_get_sys_infor      sT     [[  s+F 
6	s~~&	H%%'(D :    c                  x    / SQn S[         0nSSKJnJn  U  H  n U" U5      X'   M     U$ ! U a    SX'    M!  f = f)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sklearnr   )PackageNotFoundErrorr   N)r   importlib.metadatar"   r   )deps	deps_infor"   r   modnames        r   _get_deps_infor'   '   sZ    
D 	;I A	&!(!1I 
  $ 	&!%I	&s   
+
99c                  d   [        5       n [        5       n[        S5        U R                  5        H  u  p#[        SR	                  X#S95        M     [        S5        UR                  5        H  u  p#[        SR	                  X#S95        M     [        SR	                  S[        5       S95        [        5       nU(       ar  [        5         [        S5        [        U5       HM  u  pVUR                  5        H  u  px[        US	 S
U 35        M     U[        U5      S-
  :w  d  MC  [        5         MO     gg)zPrint 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: r   N)	r   r'   printitemsformatr   r   	enumeratelen)	sys_infor%   r)   r*   threadpool_resultsiresultkeyvals	            r   show_versionsr6   M   s    H I	+>>#&&&67 $ 

"#??$&&&67 % 
!(C(E 	 	
 )*#$"#56IA"LLNS	C5)* +C*+a//	 7	 r   )__doc__r   r   r    r    r   _openmp_helpersr   r   r'   r6    r   r   <module>r;      s+     
 )  8(#L&r   