Public Member Functions | |
def | __init__ (self, passed, max_absdiff, max_reldiff) |
def | __bool__ (self) |
def | __str__ (self) |
Public Attributes | |
passed | |
max_absdiff | |
max_reldiff | |
Represents the result of comparing a single output of a single iteration between two runners.
def polygraphy.comparator.compare.OutputCompareResult.__init__ | ( | self, | |
passed, | |||
max_absdiff, | |||
max_reldiff | |||
) |
Records the required tolerances for the results to be considered equivalent. Args: passed (bool): Whether the error was within acceptable limits. max_absdiff (float): The minimum required absolute tolerance to consider the outputs equivalent. max_reldiff (float): The minimum required relative tolerance to consider the outputs equivalent.
def polygraphy.comparator.compare.OutputCompareResult.__bool__ | ( | self | ) |
Whether the output matched. Returns: bool
def polygraphy.comparator.compare.OutputCompareResult.__str__ | ( | self | ) |
polygraphy.comparator.compare.OutputCompareResult.passed |
polygraphy.comparator.compare.OutputCompareResult.max_absdiff |
polygraphy.comparator.compare.OutputCompareResult.max_reldiff |