§
    ’©ºj}8  ã                   óü  — d dl mZmZ d dlmZ d dlmZmZmZ d dl	m
Z
mZmZmZmZ d dlZd dlZd dlmZ d dlmZmZmZ erad dlZd dlZd dlmZ eej        eej        j        ej         f         f         Z!ej        j        Z"eej#        j$        e%f         Z&ej'        j(        Z)n&ee*e*f         Z!e*Z"e*Z&d dl+m,Z, e,d	e
d
e
defd„¦   «         Z)erd dl-Z-ddgZ.ererdgndgZ.d*d„Z/ e)e.¦  «        	 	 	 	 	 	 d+deeee         e0e%ef         ee0e%ef                  f         dee"         dee1         dee2         dee2         dee%         dee%         de!fd„¦   «         Z3de4dee4e4f         fd„Z5dee2e2e2e2f         de%fd„Z6dee"ej         f         de4deej         e"f         fd„Z7 e)e.¦  «        e	 	 	 	 d,d!edee"         d"e1d#ee8ee4e%f                           d$ee&         de!fd%„¦   «         ¦   «         Z9 e)e.¦  «        	 	 	 	 	 	 d+d&eeeeef         eee         ee         ee         f         f         d'ee         dee"         d(eee%e%f                  dee%         dee%         d#ee8ee4e%f                           de!fd)„¦   «         Z:dS )-é    )Ú	GeneratorÚSequence)Úproduct)ÚceilÚfloorÚsqrt)ÚAnyÚListÚOptionalÚUnionÚno_type_checkN)ÚTensor)Ú_LATEX_AVAILABLEÚ_MATPLOTLIB_AVAILABLEÚ_SCIENCEPLOT_AVAILABLE)ÚcontextmanagerÚargsÚkwargsÚreturnc               /   ó   K  — dV — dS )z0No-ops decorator if matplotlib is not installed.N© )r   r   s     úk/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/torchmetrics/utilities/plot.pyÚstyle_changer   *   s   è è € ð 	ˆˆˆˆˆó    Úsciencezno-latexÚdefaultc                  ó2   — t           st          d¦  «        ‚dS )z+Raise error if matplotlib is not installed.z`Plot function expects `matplotlib` to be installed. Please install with `pip install matplotlib`N)r   ÚModuleNotFoundErrorr   r   r   Ú_error_on_missing_matplotlibr   8   s)   € å ð 
Ý!Ønñ
ô 
ð 	
ð
ð 
r   ÚvalÚaxÚhigher_is_betterÚlower_boundÚupper_boundÚlegend_nameÚnamec           	      ó(  ‡ ‡— t          ¦   «          |€t          j        ¦   «         nd|f\  }}|                     ¦   «                              d¦  «         t          ‰ t          ¦  «        r¹‰                      ¦   «         dk    r?|                     ‰  	                    ¦   «          
                    ¦   «         gdd¬¦  «         �nmt          ‰ ¦  «        D ]P\  }}	|r|› d|› �n|› }
|                     ||	 	                    ¦   «          
                    ¦   «         ddd|
¬	¦  «         ŒQ�nt          ‰ t          ¦  «        �r3t          ‰                      ¦   «         ¦  «        D �]\  }\  }}	|	                     ¦   «         dk    r¯|                     |	 	                    ¦   «          
                    ¦   «         ddd
|¬	¦  «         |                     ¦   «                              d¦  «         |                     d¦  «         |                     t!          j        t%          |	¦  «        ¦  «        ¦  «         ŒÐ|                     ||	 	                    ¦   «          
                    ¦   «         dd|¬¦  «         �Œ�nÂt          ‰ t&          ¦  «        �r�t%          ‰ ¦  «        Št          ‰ d         t          ¦  «        rnˆˆ fd„‰ d         D ¦   «         Š ‰                      ¦   «         D ]C\  }}	|                     |	 	                    ¦   «          
                    ¦   «         ddd
|¬	¦  «         ŒDn¡t!          j        ‰ d¦  «        Š ‰ j        dk    }|r‰ j        n‰                      d¦  «        Š t          ‰ ¦  «        D ]S\  }}	|r|r|› d|› �n|› nd}
|                     |	 	                    ¦   «          
                    ¦   «         ddd
|
¬	¦  «         ŒT|                     ¦   «                              d¦  «         |                     d¦  «         |                     t!          j        ‰¦  «        ¦  «         nt1          d¦  «        ‚|                     ¦   «         \  }}|r|r|                     ||ddddd¬¦  «         |                     ¦   «         }|�|�	d||z
  z  }nd|d         |d         z
  z  }|                     |�||z
  n
|d         |z
  |�||z   n
|d         |z   ¬¦  «         |                     d¦  «         |                     |�|nd¦  «         |                     ¦   «         }d|d         |d         z
  z  }g }|�|                      |¦  «         |�|                      |¦  «         | !                    ||d         |d         dd¬¦  «         |�’|�G|sE| "                    |d         |z
  |d         ¦  «         | #                    |d         |ddd¬¦  «         |�G|rE| "                    |d         |z
  |d         ¦  «         | #                    |d         |ddd¬¦  «         ||fS )aÊ  Plot a single metric value or multiple, including bounds of value if existing.

    Args:
        val: A single tensor with one or multiple values (multiclass/label/output format) or a list of such tensors.
            If a list is provided the values are interpreted as a time series of evolving values.
        ax: Axis from a figure.
        higher_is_better: Indicates if a label indicating where the optimal value it should be added to the figure
        lower_bound: lower value that the metric can take
        upper_bound: upper value that the metric can take
        legend_name: for class based metrics specify the legend prefix e.g. Class or Label to use when multiple values
            are provided
        name: Name of the metric to use for the y-axis label

    Returns:
        A tuple consisting of the figure and respective ax objects of the generated figure

    Raises:
        ModuleNotFoundError:
            If `matplotlib` is not installed

    NFé   Úoé
   )ÚmarkerÚ
markersizeú ÚNone)r+   r,   Ú	linestyleÚlabelú-TÚStep)r+   r,   r0   r   c           	      óp   •‡— i | ]1Š‰t          j        ˆˆfd „t          ‰¦  «        D ¦   «         ¦  «        “Œ2S )c                 ó,   •— g | ]}‰|         ‰         ‘ŒS r   r   )Ú.0ÚiÚkr    s     €€r   ú
<listcomp>z7plot_single_or_multi_val.<locals>.<dictcomp>.<listcomp>v   s!   ø€ Ð"EÐ"EÐ"E° 3 q¤6¨!¤9Ð"EÐ"EÐ"Er   )ÚtorchÚstackÚrange)r5   r7   Ún_stepsr    s    @€€r   ú
<dictcomp>z,plot_single_or_multi_val.<locals>.<dictcomp>v   sD   øø€ ÐWÐWÐWÈ1�1•e”kÐ"EÐ"EÐ"EÐ"EÐ"Eµe¸G±n´nÐ"EÑ"EÔ"EÑFÔFÐWÐWÐWr   Ú z&Got unknown format for argument `val`.zupper center)g      à?gffffffò?é   )ÚlocÚbbox_to_anchorÚncolÚfancyboxÚshadowgš™™™™™¹?)ÚbottomÚtopÚdashedr7   )Ú
linestylesÚcolorszOptimal 
 valueÚcenter)ÚsÚhorizontalalignmentÚverticalalignment)$r   ÚpltÚsubplotsÚ	get_xaxisÚset_visibleÚ
isinstancer   ÚnumelÚplotÚdetachÚcpuÚ	enumerateÚdictÚitemsÚ
set_xlabelÚ
set_xticksr9   ÚarangeÚlenr   r:   ÚndimÚTÚ	unsqueezeÚ
ValueErrorÚget_legend_handles_labelsÚlegendÚget_ylimÚset_ylimÚgridÚ
set_ylabelÚget_xlimÚappendÚhlinesÚset_xlimÚtext)r    r!   r"   r#   r$   r%   r&   Úfigr6   Úvr0   r7   Úmulti_seriesÚhandlesÚlabelsÚylimÚfactorÚxlimÚy_linesr<   s   `                  @r   Úplot_single_or_multi_valrv   @   s#  øø€ õ> !Ñ"Ô"Ð"Ø " 
�cŒl‰nŒnˆn°°r°
�G€CˆØ‡L‚L�N„N×Ò˜uÑ%Ô%Ð%å�#•vÑÔð !CØ�9Š9‰;Œ;˜!ÒÐØ�GŠG�S—Z’Z‘\”\×%Ò%Ñ'Ô'Ð(°ÀˆGÑDÔDÐDÑDå! #™œð gð g‘��1Ø0;ÐG˜;Ð,Ð,¨Ð,Ð,Ð,ÀAÀ�Ø—’˜˜1Ÿ8š8™:œ:Ÿ>š>Ñ+Ô+°CÀBÐRXÐ`e�ÑfÔfÐfÐfñgõ 
�C�Ñ	Ô	ñ CÝ" 3§9¢9¡;¤;Ñ/Ô/ð 	Qñ 	Q‰IˆA‰v��1Ø�wŠw‰yŒy˜AŠ~ˆ~Ø—’˜Ÿš™
œ
ŸšÑ(Ô(°ÀÈsÐZ[�Ñ\Ô\Ð\Ø—’‘”×*Ò*¨4Ñ0Ô0Ð0Ø—’˜fÑ%Ô%Ð%Ø—’�eœl­3¨q©6¬6Ñ2Ô2Ñ3Ô3Ð3Ð3à—’˜˜1Ÿ8š8™:œ:Ÿ>š>Ñ+Ô+°CÀBÈa�ÑPÔPÐPÑPñ	Qõ 
�C�Ñ	"Ô	"ñ CÝ�c‘(”(ˆÝ�c˜!”f�dÑ#Ô#ð 
	aØWÐWÐWÐWÐWÐPSÐTUÔPVÐWÑWÔWˆCØŸ	š	™œð ]ð ]‘��1Ø—’˜Ÿš™
œ
ŸšÑ(Ô(°ÀÈsÐZ[�Ñ\Ô\Ð\Ð\ð]õ ”+˜c 1Ñ%Ô%ˆCØœ8 qš=ˆLØ'Ð=�#”%�%¨S¯]ª]¸1Ñ-=Ô-=ˆCÝ! #™œð að a‘��1ØMYÐa°ÐH˜KÐ-Ð-¨!Ð-Ð-Ð-ÀQÀ&À&Ð_a�Ø—’˜Ÿš™
œ
ŸšÑ(Ô(°ÀÈsÐZ_�Ñ`Ô`Ð`Ð`Ø
�Š‰Œ×"Ò" 4Ñ(Ô(Ð(Ø
�Š�fÑÔÐØ
�Š•e”l 7Ñ+Ô+Ñ,Ô,Ð,Ð,åÐAÑBÔBÐBà×2Ò2Ñ4Ô4�O€GˆVØð w�6ð wØ
�	Š	�'˜6 ~ÀkÐXYÐdhÐquˆ	ÑvÔvÐvà�;Š;‰=Œ=€DØÐ ;Ð#:Ø˜ kÑ1Ñ2ˆˆà˜˜Qœ $ q¤'Ñ)Ñ*ˆà‡K‚KØ'2Ð'>ˆ{˜VÑ#Ð#ÀDÈÄGÈfÑDTØ$/Ð$;ˆK˜&Ñ Ð ÀÀaÄÈ6ÑAQð ñ ô ð ð
 ‡G‚GˆD�M„M€MØ‡M‚M˜$Ð*�$�$°Ñ5Ô5Ð5à�;Š;‰=Œ=€DØ�D˜”G˜d 1œgÑ%Ñ&€Fà€GØÐØ�Š�{Ñ#Ô#Ð#ØÐØ�Š�{Ñ#Ô#Ð#Ø‡I‚Iˆg�t˜A”w  Q¤°HÀS€IÑIÔIÐIØÐ#ØÐ"Ð+;Ð"Ø�KŠK˜˜Qœ &Ñ(¨$¨q¬'Ñ2Ô2Ð2Ø�GŠGØ�Q”˜Ð(:ÐPXÐltð ñ ô ð ð Ð"Ð'7Ð"Ø�KŠK˜˜Qœ &Ñ(¨$¨q¬'Ñ2Ô2Ð2Ø�GŠGØ�Q”˜Ð(:ÐPXÐltð ñ ô ð ð �ˆ7€Nr   Únc                 ó@  — t          | ¦  «        }t          |¦  «        |k    rt          |¦  «        t          |¦  «        fS t          |¦  «        t          |¦  «        z  | k    rt          |¦  «        t          |¦  «        fS t          |¦  «        t          |¦  «        fS )z/Split `n` figures into `rows` x `cols` figures.)r   Úintr   r   )rw   Únsqs     r   Ú_get_col_row_splitr{   ¯   s}   € å
ˆq‰'Œ'€CÝ
ˆ3�x„x�3‚€Ý�3‰xŒx�˜S™œÐ!Ð!ÝˆS�z„z•D˜‘I”IÑ Ò"Ð"Ý�S‰zŒz�4 ™9œ9Ð$Ð$Ý�‰9Œ9•d˜3‘i”iÐÐr   Úpatch_colorc                 ól   — | \  }}}}d„ |||fD ¦   «         \  }}}d|z  d|z  z   d|z  z   }|dk    rdndS )zÇGet the text color for a given value and colormap.

    Following Wikipedia's recommendations: https://en.wikipedia.org/wiki/Relative_luminance.

    Args:
        patch_color: RGBA color tuple

    c              3   óB   K  — | ]}|d k    r|dz  n
|dz   dz  dz  V — ŒdS )g?ÆÜµ¤?g×£p=
×)@g)\�Âõ(¬?gáz®Gáð?g333333@Nr   )r5   Úcs     r   ú	<genexpr>z"_get_text_color.<locals>.<genexpr>Ä   s@   è è € Ð^Ð^Èq˜A šL˜Lˆq�5‰yˆy°°E±	¸UÑ/BÀsÑ.JÐ^Ð^Ð^Ð^Ð^Ð^r   g¼–�z6Ë?g¥,Cëâæ?g]mÅþ²{²?gš™™™™™Ù?z.1Úwhiter   )r|   ÚrÚgÚbÚaÚys         r   Ú_get_text_colorr‡   ¹   sc   € ð �J€A€qˆ!ˆQØ^Ð^ÐUVÐXYÐ[\ÐT]Ð^Ñ^Ô^�G€A€qˆ!ð 	�‰
�V˜a‘ZÑ &¨1¡*Ñ,€Aà�s’7�7ˆ4ˆ4 Ð'r   ÚaxsÚnbc                 ó”   — t          | t          ¦  «        r| S | j        } | |d…         D ]}|                     ¦   «          Œ| d|…         S )zSReduce `axs` to `nb` Axes.

    All further Axes are removed from the figure.

    N)rR   Ú_AX_TYPEÚflatÚremove)rˆ   r‰   r!   s      r   Útrim_axsrŽ   Ì   sU   € õ �#•xÑ Ô ð Øˆ
à
Œ(€CØ�"�#�#Œhð ð ˆØ
�	Š	‰ŒˆˆØˆs�ˆsŒ8€Or   TÚconfmatÚadd_textrq   Úcmapc                 ó�  — t          ¦   «          | j        dk    r"| j        d         d}}t          |¦  «        \  }}nd| j        d         ddf\  }}}}|�@| j        dk    r5t	          |¦  «        |k    r"t          dt	          |¦  «        › d|› �¦  «        ‚| j        dk    rF|pt          j        |¦  «        }	t          t          t          t          |¦  «        ¦  «        ¦  «        }n*d}	|p%t          j        |¦  «                             ¦   «         }|€t          j        ||d¬	¦  «        n|                     ¦   «         |f\  }
}t!          ||¦  «        }t          |¦  «        D �]b}|dk    s|dk    r||         n|}|	� |                     d
|	|         › �d¬¦  «         |                     | j        dk    r,| |                              ¦   «                              ¦   «         n%|                      ¦   «                              ¦   «         |¬¦  «        }||z  |dz
  k    r|                     dd¬¦  «         ||z  dk    r|                     dd¬¦  «         |                     t          t          |¦  «        ¦  «        ¦  «         |                     t          t          |¦  «        ¦  «        ¦  «         |                     |dd¬¦  «         |                     |dd¬¦  «         |rât7          t          |¦  «        t          |¦  «        ¦  «        D ]·\  }}| j        dk    r| |||f         n	| ||f         }|                     |                     |                     ¦   «         ¦  «        ¦  «        }t?          |¦  «        }|                      ||t          tC          |                     ¦   «         d¦  «        ¦  «        ddd|¬¦  «         Œ¸�Œd|
|fS )aÏ  Plot an confusion matrix.

    Inspired by: https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/metrics/_plot/confusion_matrix.py.
    Works for both binary, multiclass and multilabel confusion matrices.

    Args:
        confmat: the confusion matrix. Either should be an [N,N] matrix in the binary and multiclass cases or an
            [N, 2, 2] matrix for multilabel classification
        ax: Axis from a figure. If not provided, a new figure and axis will be created
        add_text: if text should be added to each cell with the given value
        labels: labels to add the x- and y-axis
        cmap: matplotlib colormap to use for the confusion matrix
            https://matplotlib.org/stable/users/explain/colors/colormaps.html

    Returns:
        A tuple consisting of the figure and respective ax objects (or array of ax objects) of the generated figure

    Raises:
        ModuleNotFoundError:
            If `matplotlib` is not installed

    r?   r   é   r(   NzYExpected number of elements in arg `labels` to match number of labels in confmat but got ú and T)ÚnrowsÚncolsÚconstrained_layoutzLabel é   )Úfontsize)r‘   zPredicted classz
True classé-   r*   )Úrotationr™   é   rJ   )ÚhaÚvar™   Úcolor)"r   r^   Úshaper{   r]   ra   Únpr\   ÚlistÚmapÚstrr;   ÚtolistrN   rO   Ú
get_figurerŽ   Ú	set_titleÚimshowrV   rU   rZ   rg   r[   Ú
set_yticksÚset_xticklabelsÚset_yticklabelsr   r‘   ÚnormÚitemr‡   rl   Úround)r�   r!   r�   rq   r‘   r‰   Ú	n_classesÚrowsÚcolsÚ	fig_labelrm   rˆ   r6   ÚimÚiiÚjjr    r|   r   s                      r   Úplot_confusion_matrixr¶   Û   s¹  € õ> !Ñ"Ô"Ð"à„|�qÒÐØœ aÔ(¨!ˆIˆÝ'¨Ñ+Ô+‰
ˆˆdˆdà$% w¤}°QÔ'7¸¸AÐ$=Ñ!ˆˆI�t˜TàÐ˜gœl¨aÒ/Ð/µC¸±K´KÀ9Ò4LÐ4LÝð1Ý�v‘;”;ð1ð 1Ø%.ð1ð 1ñ
ô 
ð 	
ð „|�qÒÐØÐ+�bœi¨™mœmˆ	Ý•c�#�u YÑ/Ô/Ñ0Ô0Ñ1Ô1ˆˆàˆ	ØÐ8�2œ9 YÑ/Ô/×6Ò6Ñ8Ô8ˆàPRÐPZ�sŒ| $¨dÀtÐLÑLÔLÐLÐac×anÒanÑapÔapÐrtÐ`u�H€CˆÝ
�3˜Ñ
Ô
€CÝ�2‰YŒYð kñ kˆØ š	˜	 T¨Q¢Y YˆS�ŒVˆV°SˆØÐ Ø�LŠLÐ0 )¨A¤,Ð0Ð0¸2ˆLÑ>Ô>Ð>Ø�YŠY°G´LÀAÒ4EÐ4E�w˜q”z—~’~Ñ'Ô'×.Ò.Ñ0Ô0Ð0È7Ï;Ê;É=Ì=×K_ÒK_ÑKaÔKaÐhlˆYÑmÔmˆØ�‰9˜˜q™Ò Ð Ø�MŠMÐ+°bˆMÑ9Ô9Ð9Øˆt‰8�qŠ=ˆ=Ø�MŠM˜,°ˆMÑ4Ô4Ð4Ø
�Š•d�5 Ñ+Ô+Ñ,Ô,Ñ-Ô-Ð-Ø
�Š•d�5 Ñ+Ô+Ñ,Ô,Ñ-Ô-Ð-Ø
×Ò˜6¨B¸ÐÑ<Ô<Ð<Ø
×Ò˜6¨B¸ÐÑ<Ô<Ð<àð 	kÝ!¥%¨	Ñ"2Ô"2µE¸)Ñ4DÔ4DÑEÔEð kð k‘��BØ,3¬L¸AÒ,=Ð,=�g˜a  R˜iÔ(Ð(À7È2ÈrÈ6Ä?�Ø Ÿgšg b§g¢g¨c¯hªh©j¬jÑ&9Ô&9Ñ:Ô:�Ý# KÑ0Ô0�Ø—’˜˜B¥¥E¨#¯(ª(©*¬*°aÑ$8Ô$8Ñ 9Ô 9¸hÈ8Ð^`Ðhi�ÑjÔjÐjÐjùà�ˆ8€Or   ÚcurveÚscoreÚlabel_namesc                 óö  — t          | ¦  «        dk     rt          dt          | ¦  «        › �¦  «        ‚| dd…         \  }}t          ¦   «          |€t          j        ¦   «         nd|f\  }	}t          |t          ¦  «        rÁt          |t          ¦  «        r¬|j        dk    r¡|j        dk    r–|�d|                     ¦   «         d›�nd}
| 	                    | 
                    ¦   «                              ¦   «         | 
                    ¦   «                              ¦   «         dd|
¬¦  «         |
�|                     ¦   «          �nÕt          |t          ¦  «        rt          |t          ¦  «        sDt          |t          ¦  «        �ret          |t          ¦  «        �rO|j        dk    �rC|j        dk    �r7t          |¦  «        }|�5t          |¦  «        |k    r"t          d	t          |¦  «        › d
|› �¦  «        ‚t          t          ||¦  «        ¦  «        D ]Ò\  }\  }}|�|› d|› �n%|€t!          |¦  «        nt!          ||         ¦  «        }
|
|�d||                              ¦   «         d›�ndz  }
| 	                    | 
                    ¦   «                              ¦   «         | 
                    ¦   «                              ¦   «         dd|
¬¦  «         |                     ¦   «          ŒÓn0t          dt#          |¦  «        › d
t#          |¦  «        › d�¦  «        ‚|�6|                     |d         ¦  «         |                     |d         ¦  «         |                     d¦  «         |                     |¦  «         |	|fS )aÏ  Inspired by: https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/metrics/_plot/roc_curve.py.

    Plots a curve object

    Args:
        curve: a tuple of (x, y, t) where x and y are the coordinates of the curve and t are the thresholds used
            to compute the curve
        score: optional area under the curve added as label to the plot
        ax: Axis from a figure
        label_names: Tuple containing the names of the x and y axis
        legend_name: Name of the curve to be used in the legend
        name: Custom name to describe the metric
        labels: Optional labels for the different curves that will be added to the plot

    Returns:
        A tuple consisting of the figure and respective ax objects (or array of ax objects) of the generated figure

    Raises:
        ModuleNotFoundError:
            If `matplotlib` is not installed
        ValueError:
            If `curve` does not have 3 elements, being in the wrong format
    r“   z*Expected 2 or 3 elements in curve but got Nr(   zAUC=z0.3fr1   )r/   Ú	linewidthr0   z\Expected number of elements in arg `labels` to match number of labels in roc curves but got r”   Ú_z AUC=r>   zQUnknown format for argument `x` and `y`. Expected either list or tensors but got ú.r   T)r]   ra   r   rN   rO   rR   r   r^   r­   rT   rU   rV   rc   r¢   rW   Úzipr¤   ÚtyperZ   rg   rf   r§   )r·   r¸   r!   r¹   r%   r&   rq   Úxr†   rm   r0   r¯   r6   Úx_Úy_s                  r   Ú
plot_curverÃ   (  sR  € õB ˆ5�z„z�A‚~€~ÝÐRÅcÈ%ÁjÄjÐRÐRÑSÔSÐSØ��!�Œ9�D€A€qå Ñ"Ô"Ð"Ø " 
�cŒl‰nŒnˆn°°r°
�G€Cˆå�!•VÑÔð 
¥¨A­vÑ!6Ô!6ð 
¸1¼6ÀQº;¸;È1Ì6ÐUVÊ;È;Ø.3Ð.?Ð*�u—z’z‘|”|Ð*Ð*Ð*Ð*ÀTˆØ
�Š�—’‘
”
—’Ñ Ô  !§(¢(¡*¤*§.¢.Ñ"2Ô"2¸cÈQÐV[ˆÑ\Ô\Ð\ØÐØ�IŠI‰KŒKˆKùÝ
�Q�Ñ
Ô
ð 
¥*¨QµÑ"5Ô"5ð 
Ý�1•fÑÔñ
Ý",¨QµÑ"7Ô"7ñ
Ø<=¼FÀaºK¹KÈAÌFÐVWÊKÉKå˜‘F”Fˆ	ØÐ¥# f¡+¤+°Ò":Ð":Ýð5Ý˜6‘{”{ð5ð 5Ø)2ð5ð 5ñô ð õ
 %¥S¨¨A¡Y¤YÑ/Ô/ð 	ð 	‰KˆA‰x��BØ,7Ð,C�{Ð(Ð( QÐ(Ð(Ð(ÐSYÐSaÍÈQÉÌÈÕgjÐkqÐrsÔktÑguÔguˆEØ°uÐ7HÐ3˜U 1œXŸ]š]™_œ_Ð3Ð3Ð3Ð3ÈbÑPˆEØ�GŠG�B—I’I‘K”K—O’OÑ%Ô% r§y¢y¡{¤{§¢Ñ'8Ô'8ÀCÐSTÐ\aˆGÑbÔbÐbØ�IŠI‰KŒKˆKˆKð		õ ØxÕ`dÐefÑ`gÔ`gÐxÐxÕnrÐstÑnuÔnuÐxÐxÐxñ
ô 
ð 	
ð ÐØ
�Š�k !”nÑ%Ô%Ð%Ø
�Š�k !”nÑ%Ô%Ð%Ø‡G‚GˆD�M„M€MØ‡L‚L�ÑÔÐà�ˆ7€Nr   )r   N)NNNNNN)NTNN);Úcollections.abcr   r   Ú	itertoolsr   Úmathr   r   r   Útypingr	   r
   r   r   r   Únumpyr¡   r9   r   Útorchmetrics.utilities.importsr   r   r   Ú
matplotlibÚmatplotlib.axesÚmatplotlib.pyplotÚpyplotrN   ÚtupleÚFigureÚaxesÚAxesÚndarrayÚ_PLOT_OUT_TYPEr‹   rI   ÚColormapr¤   Ú
_CMAP_TYPEÚstyleÚcontextr   ÚobjectÚ
contextlibr   ÚscienceplotsÚ_styler   rX   ÚboolÚfloatrv   ry   r{   r‡   rŽ   r¢   r¶   rÃ   r   r   r   ú<module>rÞ      s  ðð 0Ð /Ð /Ð /Ð /Ð /Ð /Ð /Ø Ð Ð Ð Ð Ð Ø "Ð "Ð "Ð "Ð "Ð "Ð "Ð "Ð "Ð "Ø <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <à Ð Ð Ð Ø €€€Ø Ð Ð Ð Ð Ð à jÐ jÐ jÐ jÐ jÐ jÐ jÐ jÐ jÐ jàð ØÐÐÐØÐÐÐØ#Ð#Ð#Ð#Ð#Ð#à˜3œ: u¨Z¬_Ô-AÀ2Ä:Ð-MÔ'NÐNÔO€NØŒÔ#€HØ�zÔ(Ô1°3Ð6Ô7€Jà”9Ô$€L€Là˜6 6˜>Ô*€NØ€HØ€Jà)Ð)Ð)Ð)Ð)Ð)àð˜Cð ¨3ð °9ð ð ð ñ „^ðð
 ð %ØÐÐÐà˜Ð$€Fà.Ð	TÐ3CÐ	Tˆ)ˆˆÈ)È€ð
ð 
ð 
ð 
ð €ˆfÑÔð "Ø'+Ø#'Ø#'Ø!%Øðkð kØ	ˆv�x Ô'¨¨c°6¨kÔ):¸HÀTÈ#ÈvÈ+ÔEVÔ<WÐWÔ	Xðkà�Ôðkð ˜t”nðkð ˜%”ð	kð
 ˜%”ðkð ˜#”ðkð �3Œ-ðkð ðkð kð kñ Ôðkð\ ˜#ð   %¨¨S¨¤/ð  ð  ð  ð  ð(  u¨e°U¸EÐ'AÔ!Bð (Àsð (ð (ð (ð (ð&�%˜ "¤*Ð,Ô-ð °3ð ¸5ÀÄÈXÐAUÔ;Vð ð ð ð ð €ˆfÑÔØð "ØØ.2Ø!%ðHð HØðHà�ÔðHð ðHð �T˜%  S œ/Ô*Ô+ð	Hð
 �:Ô
ðHð ðHð Hð Hñ „ñ ÔðHðV €ˆfÑÔð #Ø!Ø-1Ø!%ØØ.2ðEð EØ��v˜v vÐ-Ô.°°d¸6´lÀDÈÄLÐRVÐW]ÔR^Ð6^Ô0_Ð_Ô`ðEà�FÔðEð 	�ÔðEð ˜%  S œ/Ô*ð	Eð
 ˜#”ðEð �3Œ-ðEð �T˜%  S œ/Ô*Ô+ðEð ðEð Eð Eñ ÔðEð Eð Er   