"""Auto-generated stub for module: classification."""
from typing import Any

# Functions
def accuracy_per_class(output: Any.Any, target: Any.Any) -> dict[int, float]:
    """
    Compute per-class one-vs-rest accuracy.
    """
    ...
def calculate_metrics(output: Any.Any, target: Any.Any) -> tuple[Any.Any, Any.Any, Any.Any, Any.Any]:
    """
    Compute one-vs-rest TP/TN/FP/FN vectors for each class.
    """
    ...
def confusion_matrix(output: Any.Any, target: Any.Any) -> Any.Any:
    """
    Return full multiclass confusion matrix with shape [C, C].
    """
    ...
def confusion_matrix_per_class(output: Any.Any, target: Any.Any) -> dict[int, list[list[float]]]:
    """
    Return one-vs-rest confusion matrix for each class.
    """
    ...
def f1_score_per_class(output: Any.Any, target: Any.Any) -> dict[int, float]:
    """
    Compute per-class F1-score.
    """
    ...
def precision(output: Any.Any, target: Any.Any) -> dict[int, float]:
    """
    Compute per-class precision.
    """
    ...
def recall(output: Any.Any, target: Any.Any) -> dict[int, float]:
    """
    Compute per-class recall.
    """
    ...
def specificity(output: Any.Any, target: Any.Any) -> dict[int, float]:
    """
    Compute per-class specificity (true negative rate).
    """
    ...
def specificity_all(output: Any.Any, target: Any.Any) -> float:
    """
    Compute overall specificity across all classes.
    """
    ...
