§
    ’©ºjEO  ã                   ó&  — d dl mZ d dlmZmZmZ d dlZd dlmZ d dl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mZ d d	lmZ d d
lmZ d dlmZ d dlmZ d dlm Z m!Z! esddgZ" G d„ de¦  «        Z# G d„ de¦  «        Z$ G d„ de¦  «        Z%dS )é    )ÚSequence)ÚAnyÚOptionalÚUnionN)ÚTensor)ÚLiteral)Ú_ClassificationTaskWrapper)Ú_exact_match_reduceÚ_multiclass_exact_match_updateÚ_multilabel_exact_match_update)Ú&_multiclass_stat_scores_arg_validationÚ_multiclass_stat_scores_formatÚ)_multiclass_stat_scores_tensor_validationÚ&_multilabel_stat_scores_arg_validationÚ_multilabel_stat_scores_formatÚ)_multilabel_stat_scores_tensor_validation)ÚMetric)Údim_zero_cat)ÚClassificationTaskNoBinary)Ú_MATPLOTLIB_AVAILABLE)Ú_AX_TYPEÚ_PLOT_OUT_TYPEzMulticlassExactMatch.plotzMultilabelExactMatch.plotc                   ó(  ‡ — e Zd ZU dZeed<   dZeed<   dZeed<   dZ	eed<   dZ
eed	<   d
Zeed<   dZeed<   	 	 	 ddeded         dee         dededdfˆ fd„Zdededdfd„Zdefd„Z	 d deeeee         f                  dee         defd„Zˆ xZS )!ÚMulticlassExactMatcha]  Compute Exact match (also known as subset accuracy) for multiclass tasks.

    Exact Match is a stricter version of accuracy where all labels have to match exactly for the sample to be
    correctly classified.

    As input to ``forward`` and ``update`` the metric accepts the following input:

    - ``preds`` (:class:`~torch.Tensor`): An int tensor of shape ``(N, ...)`` or float tensor of shape ``(N, C, ..)``.
      If preds is a floating point we apply ``torch.argmax`` along the ``C`` dimension to automatically convert
      probabilities/logits into an int tensor.
    - ``target`` (:class:`~torch.Tensor`): An int tensor of shape ``(N, ...)``.

    As output to ``forward`` and ``compute`` the metric returns the following output:

    - ``mcem`` (:class:`~torch.Tensor`): A tensor whose returned shape depends on the ``multidim_average`` argument:

        - If ``multidim_average`` is set to ``global`` the output will be a scalar tensor
        - If ``multidim_average`` is set to ``samplewise`` the output will be a tensor of shape ``(N,)``

    If ``multidim_average`` is set to ``samplewise`` we expect at least one additional dimension ``...`` to be present,
    which the reduction will then be applied over instead of the sample dimension ``N``.

    Args:
        num_classes: Integer specifying the number of labels
        multidim_average:
            Defines how additionally dimensions ``...`` should be handled. Should be one of the following:

            - ``global``: Additional dimensions are flatted along the batch dimension
            - ``samplewise``: Statistic will be calculated independently for each sample on the ``N`` axis.
              The statistics in this case are calculated over the additional dimensions.

        ignore_index:
            Specifies a target value that is ignored and does not contribute to the metric calculation
        validate_args: bool indicating if input arguments and tensors should be validated for correctness.
            Set to ``False`` for faster computations.

    Example (multidim tensors):
        >>> from torch import tensor
        >>> from torchmetrics.classification import MulticlassExactMatch
        >>> target = tensor([[[0, 1], [2, 1], [0, 2]], [[1, 1], [2, 0], [1, 2]]])
        >>> preds = tensor([[[0, 1], [2, 1], [0, 2]], [[2, 2], [2, 1], [1, 0]]])
        >>> metric = MulticlassExactMatch(num_classes=3, multidim_average='global')
        >>> metric(preds, target)
        tensor(0.5000)

    Example (multidim tensors):
        >>> from torchmetrics.classification import MulticlassExactMatch
        >>> target = tensor([[[0, 1], [2, 1], [0, 2]], [[1, 1], [2, 0], [1, 2]]])
        >>> preds = tensor([[[0, 1], [2, 1], [0, 2]], [[2, 2], [2, 1], [1, 0]]])
        >>> metric = MulticlassExactMatch(num_classes=3, multidim_average='samplewise')
        >>> metric(preds, target)
        tensor([1., 0.])

    ÚtotalFÚis_differentiableTÚhigher_is_betterÚfull_state_updateç        Úplot_lower_boundç      ð?Úplot_upper_boundÚClassÚplot_legend_nameÚglobalNÚnum_classesÚmultidim_average©r%   Ú
samplewiseÚignore_indexÚvalidate_argsÚkwargsÚreturnc                 óÌ  •—  t          ¦   «         j        di |¤Ž d\  }}|rt          |||||¦  «         || _        || _        || _        || _        |                      d| j        dk    r t          j	        dt          j
        ¬¦  «        ng | j        dk    rdnd¬¦  «         |                      d	t          j	        dt          j
        ¬¦  «        | j        dk    rdnd
¬¦  «         d S )N)é   NÚcorrectr%   r/   ©ÚdtypeÚsumÚcat©Údist_reduce_fxr   Úmean© )ÚsuperÚ__init__r   r&   r'   r*   r+   Ú	add_stateÚtorchÚzerosÚlong)	Úselfr&   r'   r*   r+   r,   Útop_kÚaverageÚ	__class__s	           €úw/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/torchmetrics/classification/exact_match.pyr:   zMulticlassExactMatch.__init__m   s  ø€ ð 	�‰ŒÔÐ"Ð"˜6Ð"Ð"Ð"Ø ‰ˆˆwØð 	pÝ2°;ÀÀwÐP`ÐbnÑoÔoÐoØ&ˆÔØ 0ˆÔØ(ˆÔØ*ˆÔà�ŠØØ04Ô0EÈÒ0QÐ0Q�EŒK˜¥¤Ð,Ñ,Ô,Ð,ÐWYØ$(Ô$9¸XÒ$EÐ$E˜5˜5È5ð 	ñ 	
ô 	
ð 	
ð
 	�ŠØÝŒK˜¥¤Ð,Ñ,Ô,Ø$(Ô$9¸XÒ$EÐ$E˜5˜5È6ð 	ñ 	
ô 	
ð 	
ð 	
ð 	
ó    ÚpredsÚtargetc                 ó¢  — | j         r"t          ||| j        | j        | j        ¦  «         t          ||d¦  «        \  }}t          ||| j        | j        ¦  «        \  }}| j        dk    rut          | j        t          ¦  «        st          d¦  «        ‚| j                             |¦  «         t          | j        t          ¦  «        st          d¦  «        ‚|| _        dS t          | j        t          ¦  «        st          d¦  «        ‚| xj        |z  c_        t          | j        t          ¦  «        st          d¦  «        ‚| xj        |z  c_        dS )z2Update metric states with predictions and targets.r/   r)   ú8Expected `self.correct` to be a list in samplewise mode.ú8Expected `self.total` to be a Tensor in samplewise mode.ú6Expected `self.correct` to be a tensor in global mode.N)r+   r   r&   r'   r*   r   r   Ú
isinstancer0   ÚlistÚ	TypeErrorÚappendr   r   ©r?   rE   rF   r0   r   s        rC   ÚupdatezMulticlassExactMatch.update‰   sK  € àÔð 	Ý5Ø�v˜tÔ/°Ô1FÈÔHYñô ð õ 7°u¸fÀaÑHÔH‰ˆˆvå7¸¸vÀtÔG\Ð^bÔ^oÑpÔp‰ˆ�ØÔ  LÒ0Ð0Ý˜dœl­DÑ1Ô1ð \ÝÐ ZÑ[Ô[Ð[ØŒL×Ò Ñ(Ô(Ð(å˜dœj­&Ñ1Ô1ð \ÝÐ ZÑ[Ô[Ð[ØˆDŒJˆJˆJå˜dœl­FÑ3Ô3ð ZÝÐ XÑYÔYÐYØˆLŒL˜GÑ#ˆLŒLå˜dœj­&Ñ1Ô1ð \ÝÐ ZÑ[Ô[Ð[ØˆJŒJ˜%ÑˆJŒJˆJˆJrD   c                 ó  — t          | j        t          ¦  «        rt          | j        ¦  «        n| j        }t          |t          ¦  «        rt          | j        t          ¦  «        st          d¦  «        ‚t          || j        ¦  «        S ©zCompute metric.z>Expected `correct` and `total` to be tensors after processing.©rK   r0   rL   r   r   r   rM   r
   ©r?   r0   s     rC   ÚcomputezMulticlassExactMatch.compute£   óu   € å0:¸4¼<ÍÑ0NÔ0NÐ`•,˜tœ|Ñ,Ô,Ð,ÐTXÔT`ˆõ ˜'¥6Ñ*Ô*ð 	^µ*¸T¼ZÍÑ2PÔ2Pð 	^ÝÐ\Ñ]Ô]Ð]å" 7¨D¬JÑ7Ô7Ð7rD   ÚvalÚaxc                 ó.   — |                       ||¦  «        S )a„  Plot a single or multiple values from the metric.

        Args:
            val: Either a single result from calling `metric.forward` or `metric.compute` or a list of these results.
                If no value is provided, will automatically call `metric.compute` and plot that result.
            ax: An matplotlib axis object. If provided will add plot to that axis

        Returns:
            Figure object and Axes object

        Raises:
            ModuleNotFoundError:
                If `matplotlib` is not installed

        .. plot::
            :scale: 75

            >>> # Example plotting a single value per class
            >>> from torch import randint
            >>> from torchmetrics.classification import MulticlassExactMatch
            >>> metric = MulticlassExactMatch(num_classes=3)
            >>> metric.update(randint(3, (20,5)), randint(3, (20,5)))
            >>> fig_, ax_ = metric.plot()

        .. plot::
            :scale: 75

            >>> from torch import randint
            >>> # Example plotting a multiple values per class
            >>> from torchmetrics.classification import MulticlassExactMatch
            >>> metric = MulticlassExactMatch(num_classes=3)
            >>> values = []
            >>> for _ in range(20):
            ...     values.append(metric(randint(3, (20,5)), randint(3, (20,5))))
            >>> fig_, ax_ = metric.plot(values)

        ©Ú_plot©r?   rW   rX   s      rC   ÚplotzMulticlassExactMatch.plot­   ó   € ðP �zŠz˜#˜rÑ"Ô"Ð"rD   )r%   NT©NN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__annotations__r   Úboolr   r   r    Úfloatr"   r$   ÚstrÚintr   r   r   r:   rP   rU   r   r   r   r   r]   Ú__classcell__©rB   s   @rC   r   r   -   s¦  ø€ € € € € € ð5ð 5ðn €M€M�MØ#Ð�tÐ#Ð#Ñ#Ø!Ð�dÐ!Ð!Ñ!Ø#Ð�tÐ#Ð#Ñ#Ø!Ð�eÐ!Ð!Ñ!Ø!Ð�eÐ!Ð!Ñ!Ø#Ð�cÐ#Ð#Ñ#ð
 =EØ&*Ø"ð
ð 
àð
ð "Ð"8Ô9ð
ð ˜s”mð	
ð
 ð
ð ð
ð 
ð
ð 
ð 
ð 
ð 
ð 
ð8 ˜Fð  ¨Fð  °tð  ð  ð  ð  ð48˜ð 8ð 8ð 8ð 8ð _cð(#ð (#Ø˜E &¨(°6Ô*:Ð":Ô;Ô<ð(#ØIQÐRZÔI[ð(#à	ð(#ð (#ð (#ð (#ð (#ð (#ð (#ð (#rD   r   c                   ó.  ‡ — e Zd ZU dZeed<   dZeed<   dZeed<   dZ	eed<   dZ
eed	<   d
Zeed<   dZeed<   	 	 	 	 d!dededed         dee         dededdfˆ fd„Zdededdfd„Zdefd„Z	 d"deeeee         f                  dee         defd „Zˆ xZS )#ÚMultilabelExactMatcha;  Compute Exact match (also known as subset accuracy) for multilabel tasks.

    Exact Match is a stricter version of accuracy where all labels have to match exactly for the sample to be
    correctly classified.

    As input to ``forward`` and ``update`` the metric accepts the following input:

    - ``preds`` (:class:`~torch.Tensor`): An int tensor or float tensor of shape ``(N, C, ..)``. If preds is a
      floating point tensor with values outside [0,1] range we consider the input to be logits and will auto apply
      sigmoid per element. Additionally, we convert to int tensor with thresholding using the value in ``threshold``.
    - ``target`` (:class:`~torch.Tensor`): An int tensor of shape ``(N, C, ...)``.

    As output to ``forward`` and ``compute`` the metric returns the following output:

    - ``mlem`` (:class:`~torch.Tensor`): A tensor whose returned shape depends on the ``multidim_average`` argument:

        - If ``multidim_average`` is set to ``global`` the output will be a scalar tensor
        - If ``multidim_average`` is set to ``samplewise`` the output will be a tensor of shape ``(N,)``

    If ``multidim_average`` is set to ``samplewise`` we expect at least one additional dimension ``...`` to be present,
    which the reduction will then be applied over instead of the sample dimension ``N``.

    Args:
        num_labels: Integer specifying the number of labels
        threshold: Threshold for transforming probability to binary (0,1) predictions
        multidim_average:
            Defines how additionally dimensions ``...`` should be handled. Should be one of the following:

            - ``global``: Additional dimensions are flatted along the batch dimension
            - ``samplewise``: Statistic will be calculated independently for each sample on the ``N`` axis.
              The statistics in this case are calculated over the additional dimensions.

        ignore_index:
            Specifies a target value that is ignored and does not contribute to the metric calculation
        validate_args: bool indicating if input arguments and tensors should be validated for correctness.
            Set to ``False`` for faster computations.

    Example (preds is int tensor):
        >>> from torch import tensor
        >>> from torchmetrics.classification import MultilabelExactMatch
        >>> target = tensor([[0, 1, 0], [1, 0, 1]])
        >>> preds = tensor([[0, 0, 1], [1, 0, 1]])
        >>> metric = MultilabelExactMatch(num_labels=3)
        >>> metric(preds, target)
        tensor(0.5000)

    Example (preds is float tensor):
        >>> from torchmetrics.classification import MultilabelExactMatch
        >>> target = tensor([[0, 1, 0], [1, 0, 1]])
        >>> preds = tensor([[0.11, 0.22, 0.84], [0.73, 0.33, 0.92]])
        >>> metric = MultilabelExactMatch(num_labels=3)
        >>> metric(preds, target)
        tensor(0.5000)

    Example (multidim tensors):
        >>> from torchmetrics.classification import MultilabelExactMatch
        >>> target = tensor([[[0, 1], [1, 0], [0, 1]], [[1, 1], [0, 0], [1, 0]]])
        >>> preds = tensor([[[0.59, 0.91], [0.91, 0.99], [0.63, 0.04]],
        ...                 [[0.38, 0.04], [0.86, 0.780], [0.45, 0.37]]])
        >>> metric = MultilabelExactMatch(num_labels=3, multidim_average='samplewise')
        >>> metric(preds, target)
        tensor([0., 0.])

    r   Fr   Tr   r   r   r    r!   r"   ÚLabelr$   ç      à?r%   NÚ
num_labelsÚ	thresholdr'   r(   r*   r+   r,   r-   c                 óÒ  •—  t          ¦   «         j        di |¤Ž |rt          ||d ||¬¦  «         || _        || _        || _        || _        || _        |                      d| j        dk    r t          j
        dt          j        ¬¦  «        ng | j        dk    rdnd¬¦  «         |                      d	t          j
        dt          j        ¬¦  «        | j        dk    rdnd
¬¦  «         d S )N)rA   r'   r*   r0   r%   r/   r1   r3   r4   r5   r   r7   r8   )r9   r:   r   rp   rq   r'   r*   r+   r;   r<   r=   r>   )r?   rp   rq   r'   r*   r+   r,   rB   s          €rC   r:   zMultilabelExactMatch.__init__"  s!  ø€ ð 	�‰ŒÔÐ"Ð"˜6Ð"Ð"Ð"Øð 	Ý2Ø˜I¨tÐFVÐeqðñ ô ð ð %ˆŒØ"ˆŒØ 0ˆÔØ(ˆÔØ*ˆÔà�ŠØØ04Ô0EÈÒ0QÐ0Q�EŒK˜¥¤Ð,Ñ,Ô,Ð,ÐWYØ$(Ô$9¸XÒ$EÐ$E˜5˜5È5ð 	ñ 	
ô 	
ð 	
ð
 	�ŠØÝŒK˜¥¤Ð,Ñ,Ô,Ø$(Ô$9¸XÒ$EÐ$E˜5˜5È6ð 	ñ 	
ô 	
ð 	
ð 	
ð 	
rD   rE   rF   c                 óÒ  — | j         r"t          ||| j        | j        | j        ¦  «         t          ||| j        | j        | j        ¦  «        \  }}t          ||| j        | j        | j        ¬¦  «        \  }}| j        dk    rut          | j	        t          ¦  «        st          d¦  «        ‚| j	                             |¦  «         t          | j        t          ¦  «        st          d¦  «        ‚|| _        dS t          | j	        t          ¦  «        st          d¦  «        ‚| xj	        |z  c_	        t          | j        t          ¦  «        st          d¦  «        ‚| xj        |z  c_        dS )z*Update state with predictions and targets.)rE   rF   rp   r'   r*   r)   rH   rI   rJ   N)r+   r   rp   r'   r*   r   rq   r   rK   r0   rL   rM   rN   r   r   rO   s        rC   rP   zMultilabelExactMatch.updateA  so  € àÔð 	Ý5Ø�v˜tœ°Ô0EÀtÔGXñô ð õ 7Ø�6˜4œ?¨D¬N¸DÔ<Mñ
ô 
‰ˆˆvõ 8ØØØ”Ø!Ô2ØÔ*ð
ñ 
ô 
‰ˆ�ð Ô  LÒ0Ð0Ý˜dœl­DÑ1Ô1ð \ÝÐ ZÑ[Ô[Ð[ØŒL×Ò Ñ(Ô(Ð(å˜dœj­&Ñ1Ô1ð \ÝÐ ZÑ[Ô[Ð[ØˆDŒJˆJˆJå˜dœl­FÑ3Ô3ð ZÝÐ XÑYÔYÐYØˆLŒL˜GÑ#ˆLŒLå˜dœj­&Ñ1Ô1ð \ÝÐ ZÑ[Ô[Ð[ØˆJŒJ˜%ÑˆJŒJˆJˆJrD   c                 ó  — t          | j        t          ¦  «        rt          | j        ¦  «        n| j        }t          |t          ¦  «        rt          | j        t          ¦  «        st          d¦  «        ‚t          || j        ¦  «        S rR   rS   rT   s     rC   rU   zMultilabelExactMatch.computec  rV   rD   rW   rX   c                 ó.   — |                       ||¦  «        S )a‚  Plot a single or multiple values from the metric.

        Args:
            val: Either a single result from calling `metric.forward` or `metric.compute` or a list of these results.
                If no value is provided, will automatically call `metric.compute` and plot that result.
            ax: An matplotlib axis object. If provided will add plot to that axis

        Returns:
            Figure and Axes object

        Raises:
            ModuleNotFoundError:
                If `matplotlib` is not installed

        .. plot::
            :scale: 75

            >>> # Example plotting a single value
            >>> from torch import rand, randint
            >>> from torchmetrics.classification import MultilabelExactMatch
            >>> metric = MultilabelExactMatch(num_labels=3)
            >>> metric.update(randint(2, (20, 3, 5)), randint(2, (20, 3, 5)))
            >>> fig_, ax_ = metric.plot()

        .. plot::
            :scale: 75

            >>> # Example plotting multiple values
            >>> from torch import rand, randint
            >>> from torchmetrics.classification import MultilabelExactMatch
            >>> metric = MultilabelExactMatch(num_labels=3)
            >>> values = [ ]
            >>> for _ in range(10):
            ...     values.append(metric(randint(2, (20, 3, 5)), randint(2, (20, 3, 5))))
            >>> fig_, ax_ = metric.plot(values)

        rZ   r\   s      rC   r]   zMultilabelExactMatch.plotm  r^   rD   )ro   r%   NTr_   r`   rk   s   @rC   rm   rm   Ø   s³  ø€ € € € € € ð?ð ?ðB €M€M�MØ#Ð�tÐ#Ð#Ñ#Ø!Ð�dÐ!Ð!Ñ!Ø#Ð�tÐ#Ð#Ñ#Ø!Ð�eÐ!Ð!Ñ!Ø!Ð�eÐ!Ð!Ñ!Ø#Ð�cÐ#Ð#Ñ#ð
 Ø<DØ&*Ø"ð
ð 
àð
ð ð
ð "Ð"8Ô9ð	
ð
 ˜s”mð
ð ð
ð ð
ð 
ð
ð 
ð 
ð 
ð 
ð 
ð>  ˜Fð   ¨Fð   °tð   ð   ð   ð   ðD8˜ð 8ð 8ð 8ð 8ð _cð(#ð (#Ø˜E &¨(°6Ô*:Ð":Ô;Ô<ð(#ØIQÐRZÔI[ð(#à	ð(#ð (#ð (#ð (#ð (#ð (#ð (#ð (#rD   rm   c                   ó˜   — e Zd ZdZ	 	 	 	 	 	 dded          ded         d	ed
ee         dee         ded         dee         de	de
defd„ZdS )Ú
ExactMatcha  Compute Exact match (also known as subset accuracy).

    Exact Match is a stricter version of accuracy where all labels have to match exactly for the sample to be
    correctly classified.

    This module is a simple wrapper to get the task specific versions of this metric, which is done by setting the
    ``task`` argument to either ``'multiclass'`` or ``'multilabel'``. See the documentation of
    :class:`~torchmetrics.classification.MulticlassExactMatch` and
    :class:`~torchmetrics.classification.MultilabelExactMatch` for the specific details of each argument influence and
    examples.

    Legacy Example:
        >>> from torch import tensor
        >>> target = tensor([[[0, 1], [2, 1], [0, 2]], [[1, 1], [2, 0], [1, 2]]])
        >>> preds = tensor([[[0, 1], [2, 1], [0, 2]], [[2, 2], [2, 1], [1, 0]]])
        >>> metric = ExactMatch(task="multiclass", num_classes=3, multidim_average='global')
        >>> metric(preds, target)
        tensor(0.5000)

        >>> target = tensor([[[0, 1], [2, 1], [0, 2]], [[1, 1], [2, 0], [1, 2]]])
        >>> preds = tensor([[[0, 1], [2, 1], [0, 2]], [[2, 2], [2, 1], [1, 0]]])
        >>> metric = ExactMatch(task="multiclass", num_classes=3, multidim_average='samplewise')
        >>> metric(preds, target)
        tensor([1., 0.])

    ro   Nr%   TÚclsÚtask)ÚbinaryÚ
multiclassÚ
multilabelrq   r&   rp   r'   r(   r*   r+   r,   r-   c                 óÌ  — t          j        |¦  «        }|                     |||dœ¦  «         |t           j        k    rBt	          |t
          ¦  «        s t          dt          |¦  «        › d�¦  «        ‚t          |fi |¤ŽS |t           j	        k    rCt	          |t
          ¦  «        s t          dt          |¦  «        › d�¦  «        ‚t          ||fi |¤ŽS t          d|› d�¦  «        ‚)zInitialize task metric.)r'   r*   r+   z+`num_classes` is expected to be `int` but `z was passed.`z*`num_labels` is expected to be `int` but `zTask z not supported!)r   Úfrom_strrP   Ú
MULTICLASSrK   ri   Ú
ValueErrorÚtyper   Ú
MULTILABELrm   )	rx   ry   rq   r&   rp   r'   r*   r+   r,   s	            rC   Ú__new__zExactMatch.__new__´  s  € õ *Ô2°4Ñ8Ô8ˆØ�ŠØ 0Ø(Ø*ð
ð 
ñ 	ô 	ð 	ð
 Õ-Ô8Ò8Ð8Ý˜k­3Ñ/Ô/ð qÝ Ð!oÍtÐT_ÑO`ÔO`Ð!oÐ!oÐ!oÑpÔpÐpÝ'¨Ð>Ð>°vÐ>Ð>Ð>ØÕ-Ô8Ò8Ð8Ý˜j­#Ñ.Ô.ð oÝ Ð!mÍdÐS]ÑN^ÔN^Ð!mÐ!mÐ!mÑnÔnÐnÝ'¨
°IÐHÐHÀÐHÐHÐHÝÐ6 Ð6Ð6Ð6Ñ7Ô7Ð7rD   )ro   NNr%   NT)ra   rb   rc   rd   r�   r   rg   r   ri   rf   r   r   rƒ   r8   rD   rC   rw   rw   ˜  sÈ   € € € € € ðð ð< Ø%)Ø$(Ø<DØ&*Ø"ð8ð 8Ø�,Ôð8àÐ:Ô;ð8ð ð8ð ˜c”]ð	8ð
 ˜S”Mð8ð "Ð"8Ô9ð8ð ˜s”mð8ð ð8ð ð8ð 
ð8ð 8ð 8ð 8ð 8ð 8rD   rw   )&Úcollections.abcr   Útypingr   r   r   r<   r   Útyping_extensionsr   Ú torchmetrics.classification.baser	   Ú2torchmetrics.functional.classification.exact_matchr
   r   r   Ú2torchmetrics.functional.classification.stat_scoresr   r   r   r   r   r   Útorchmetrics.metricr   Útorchmetrics.utilities.datar   Útorchmetrics.utilities.enumsr   Útorchmetrics.utilities.importsr   Útorchmetrics.utilities.plotr   r   Ú__doctest_skip__r   rm   rw   r8   rD   rC   ú<module>r�      s
  ðð %Ð $Ð $Ð $Ð $Ð $Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'à €€€Ø Ð Ð Ð Ð Ð Ø %Ð %Ð %Ð %Ð %Ð %à GÐ GÐ GÐ GÐ GÐ Gðð ð ð ð ð ð ð ð ð ð
ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð 'Ð &Ð &Ð &Ð &Ð &Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø CÐ CÐ CÐ CÐ CÐ CØ @Ð @Ð @Ð @Ð @Ð @Ø @Ð @Ð @Ð @Ð @Ð @Ð @Ð @àð RØ3Ð5PÐQÐðh#ð h#ð h#ð h#ð h#˜6ñ h#ô h#ð h#ðV}#ð }#ð }#ð }#ð }#˜6ñ }#ô }#ð }#ð@68ð 68ð 68ð 68ð 68Ð+ñ 68ô 68ð 68ð 68ð 68rD   