Skip to content

error_validator

ErrorValidator

Bases: AccuracyValidator

Returns -(1-accuracy)

Source code in pytorch_adapt\validators\error_validator.py
 4
 5
 6
 7
 8
 9
10
class ErrorValidator(AccuracyValidator):
    """
    Returns ```-(1-accuracy)```
    """

    def compute_score(self, src_val):
        return -(1 - super().compute_score(src_val))