o
    ÁôjÒ  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )ÚAny)ÚMetricc                   @   s0   e Zd ZdZdededdfdd„Zd
dd	„ZdS )Ú_ClassificationTaskWrapperz8Base class for wrapper metrics for classification tasks.ÚargsÚkwargsÚreturnNc                 O   ó   t | jj› d�ƒ‚)zUpdate metric state.zM metric does not have a global `update` method. Use the task specific metric.©ÚNotImplementedErrorÚ	__class__Ú__name__)Úselfr   r   © r   ús/var/www/html/academy/tools/voices/clone/cosy-venv/lib/python3.10/site-packages/torchmetrics/classification/base.pyÚupdate   ó   ÿz!_ClassificationTaskWrapper.updatec                 C   r   )zCompute metric.zN metric does not have a global `compute` method. Use the task specific metric.r	   )r   r   r   r   Úcompute   r   z"_ClassificationTaskWrapper.compute)r   N)r   Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r      s    r   N)Útypingr   Útorchmetrics.metricr   r   r   r   r   r   Ú<module>   s   