ó
    †ñ:ia
  ã                   óF   • S SK Jr  S SKrSSKJr  SSKJr  SSKJ	r	  SS jr
g)	é    Né   )Úconvert_nameé   )Úcolors)Úlabelsc           	      ó®  • Uc;  [        UR                  S   5       Vs/ s H  n[        S   [        U5      -  PM     nn[	        XU5      n U S:X  a  UR                  S5      nSnOUSS2U 4   nX    n[        U[        5      (       a7  US:X  a1  [        R                  R                  S5      n	U	R                  U5      n
O3[        US5      (       a  UR                  S   S:X  a  Un
O[        S	U5        [        R                  " W
SS2S
4   U
SS2S4   U[        R                   US
S9  [        R"                  " S5        [        R$                  " 5       nUR'                  SU-   SS9  UR(                  R+                  S5        [        R,                  " 5       R/                  SS5        UR0                  R3                  5       R5                  [        R,                  " 5       R6                  R9                  5       5      nUR0                  R;                  UR<                  S-
  S-  5        UR?                  S5        U(       a  [        R@                  " 5         ggs  snf )aP  Use the SHAP values as an embedding which we project to 2D for visualization.

Parameters
----------
ind : int or string
    If this is an int it is the index of the feature to use to color the embedding.
    If this is a string it is either the name of the feature, or it can have the
    form "rank(int)" to specify the feature with that rank (ordered by mean absolute
    SHAP value over all the samples), or "sum()" to mean the sum of all the SHAP values,
    which is the model's output (minus it's expected value).

shap_values : numpy.array
    Matrix of SHAP values (# samples x # features).

feature_names : None or list
    The names of the features in the shap_values array.

method : "pca" or numpy.array
    How to reduce the dimensions of the shap_values to 2D. If "pca" then the 2D
    PCA projection of shap_values is used. If a numpy array then is should be
    (# samples x 2) and represent the embedding of that values.

alpha : float
    The transparency of the data points (between 0 and 1). This can be useful to the
    show density of the data points when using a large dataset.

Nr   ÚFEATUREzsum()zsum(SHAP values)Úpcar   ÚshapezUnsupported embedding method:r   )ÚcÚcmapÚalphaÚ	linewidthÚoffzSHAP value for
é   )ÚsizeFg      @é   gffffffæ?é
   )!Úranger   r   Ústrr   ÚsumÚ
isinstanceÚsklearnÚdecompositionÚPCAÚfit_transformÚhasattrÚprintÚpltÚscatterr   Úred_blueÚaxisÚcolorbarÚ	set_labelÚoutlineÚset_visibleÚgcfÚset_size_inchesÚaxÚget_window_extentÚtransformedÚdpi_scale_transÚinvertedÚ
set_aspectÚheightÚ	set_alphaÚshow)ÚindÚshap_valuesÚfeature_namesÚmethodr   r1   ÚiÚcvalsÚfnamer
   Úembedding_valuesÚcbÚbboxs                ÚX/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/shap/plots/_embedding.pyÚ	embeddingr=   	   sÜ  € ð8 ÑÜ=BÀ;×CTÑCTÐUVÑCWÔ=XÓYÒ=X¸œ 	Ñ*¬S°«VÔ3Ñ=XˆÐYä
�s¨Ó
7€CØ
ˆgƒ~Ø—‘ Ó"ˆØ"‰àšA˜s˜FÑ#ˆØÑ"ˆô �&œ#×Ñ 6¨U£?Ü×#Ñ#×'Ñ'¨Ó*ˆØ×,Ñ,¨[Ó9ÑÜ	�˜×	!Ñ	! f§l¡l°1¡o¸Ó&:Ø!ÑäÐ-¨vÔ6ä‡K‚KÐ ¢ A Ñ&Ð(8º¸A¸Ñ(>À%ÌfÏoÉoÐejÐvwÒxÜ‡H‚HˆU„Oä	�Š‹€BØ‡L�LÐ# eÑ+°"€LÑ5Ø‡J�J×Ñ˜5Ô!ä‡G‚GƒI×Ñ˜c 1Ô%Ø�5‰5×"Ñ"Ó$×0Ñ0´·²³×1JÑ1J×1SÑ1SÓ1UÓV€DØ‡E�E×Ñ�d—k‘k CÑ'¨2Ñ-Ô.Ø‡L�L�„OÞÜ�Š�
ð ùò= Zs   žI)Nr
   g      ð?T)Úmatplotlib.pyplotÚpyplotr   r   Úutilsr   Ú r   Ú_labelsr   r=   © ó    r<   Ú<module>rE      s   ðÝ Û å  Ý Ý õ<rD   