ó
    †ñ:i\  ã                  ó   • % S r SSKJr  SSKrSSKJr  SSKJrJr  SSK	r
SSKJr  SSKJr  S	S
KJr  \\\\4   \-  r\\\\\\4   -  \\\4   -  \\\\\\4   \4   -  rS\S'   \\-  \
R.                  -  rS\S'   \R2                  " SS9 " S S5      5       r " S S\SS9r\" \R8                  \R:                  \R<                  \R>                  SSSSS9r S S jr!\!" 5       q"S S jr#S!S"S jjr$\S#S j5       r%S$S jr&g)%zoConfiguration of customisable style options for SHAP plots.

NOTE: This is experimental and subject to change!
é    )ÚannotationsN)Úcontextmanager)Ú	TypeAliasÚ	TypedDict)ÚUnpacké   )ÚInvalidStyleOptionErroré   )Úcolorsr   ÚRGBAColorTypeÚ	ColorTypeT)Úfrozenc                  óp   • \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S'   S\S	'   S\S
'   S\S'   S rSrg)ÚStyleConfigé#   zHA complete set of configuration options for matplotlib-based shap plots.r   Úprimary_color_positiveÚprimary_color_negativeÚsecondary_color_positiveÚsecondary_color_negativeÚhlines_colorÚvlines_colorÚ
text_colorÚtick_labels_colorc                ó.   • [         R                  " U 5      $ ©N)ÚdataclassesÚasdict)Úselfs    ÚT/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/shap/plots/_style.pyr   ÚStyleConfig.asdict0   s   € Ü×!Ò! $Ó'Ð'ó    © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__annotations__r   Ú__static_attributes__r"   r!   r   r   r   #   s:   ‡ áRà%Ó%Ø%Ó%Ø'Ó'Ø'Ó'ØÓØÓØÓØ Ó õ(r!   r   c                  ój   • \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S'   S\S	'   S\S
'   S\S'   Srg)ÚStyleOptionsé4   z7A TypedDict of partial updates to a style configurationr   r   r   r   r   r   r   r   r   r"   N)r#   r$   r%   r&   r'   r(   r)   r"   r!   r   r+   r+   4   s7   ‡ ÙAð
 &Ó%Ø%Ó%Ø'Ó'Ø'Ó'ØÓØÓØÓØ Ö r!   r+   F)Útotalz#ccccccz#bbbbbbÚwhitez#999999)r   r   r   r   r   r   r   r   c                 ó   • [         $ )z%Load the default style configuration.)Ú_shap_defaultsr"   r!   r   Úload_default_styler1   P   s
   € ô Ðr!   c                 ó   • [         $ )z?Return all currently active global style configuration options.)Ú_STYLEr"   r!   r   Ú	get_styler4   \   s   € ä€Mr!   c               óP   • U b  U R                  5       U-  n[        [        U5      qg)z«Set options in the currently active global style configuration.

Pass keyword arguments to set individual options, or pass a StyleConfig dataclass to replace all options.
N)r   Ú_apply_optionsr3   )Ú_styleÚoptionss     r   Ú	set_styler9   a   s&   € ð
 Ñà—-‘-“/ GÑ+ˆäœF GÓ,�Fr!   c               +  óp   #   • [        5       n[        S0 U D6  Sv •  [        S0 UR                  5       D6  g7f)a  Context manager to temporarily change style options.

NOTE: This is experimental and subject to change!

Examples
--------
To temporarily use black text color instead of the default (white)::

    with shap.plots.style_context(text_color="black"):
        shap.plots.waterfall(...)
Nr"   )r4   r9   r   )r8   Ú	old_styles     r   Ústyle_contextr<   m   s0   é € ô “€IÜÑ�ÒÛ	ÜÑ#�	× Ñ Ó"Ó#ùs   ‚46c                óØ   • [        S [        R                  " [        5       5       5      nUR	                  5        H  nX2;  d  M
  [        SU 35      e   [        R                  " U 40 UD6$ )zPReturn a new StyleConfig with any changes applied, handling any invalid options.c              3  ó8   #   • U  H  oR                   v •  M     g 7fr   )Úname)Ú.0Úfs     r   Ú	<genexpr>Ú!_apply_options.<locals>.<genexpr>‚   s   é € ÐEÒ%D —V–VÒ%Dùs   ‚zInvalid style config option: )Úsetr   Úfieldsr   Úkeysr	   Úreplace)ÚstyleÚchangesÚ
valid_keysÚkeys       r   r6   r6   €   s^   € äÑE¤[×%7Ò%7¼Ô%DÓEÓE€JØ�|‰|Ž~ˆØÕ Ü)Ð,IÈ#ÈÐ*OÓPÐPñ ô ×Ò˜uÑ0¨Ñ0Ð0r!   )Úreturnr   r   )r7   zStyleConfig | Noner8   úUnpack[StyleOptions]rL   ÚNone)r8   rM   )rH   r   rI   r+   rL   r   )'r'   Ú
__future__r   r   Ú
contextlibr   Útypingr   r   ÚnumpyÚnpÚtyping_extensionsr   Úutils._exceptionsr	   Ú r   ÚtupleÚfloatÚstrÚRGBColorTyper   r(   Úndarrayr   Ú	dataclassr   r+   Úred_rgbÚblue_rgbÚlight_red_rgbÚlight_blue_rgbr0   r1   r3   r4   r9   r<   r6   r"   r!   r   Ú<module>ra      sM  ðòõ
 #ã Ý %ß 'ã Ý $å 7Ý ð �U˜E 5Ð(Ñ)¨CÑ/€àØˆE�5˜% Ð&Ñ'ñ(ð
 
ˆ,˜Ð
Ññð 
ˆ%��u˜e UÐ*Ñ
+¨UÐ
2Ñ3ñ4ð ˆyó 
ð $ mÑ3°b·j±jÑ@€	ˆ9Ó @ð ×Ò˜dÑ#÷(ð (ó $ð(ô !�9 Eò !ñ  Ø!Ÿ>™>Ø!Ÿ?™?Ø#×1Ñ1Ø#×2Ñ2ØØØØñ	€ôñ 
Ó	€ôö
	-ð ó$ó ð$õ$1r!   