--threshold_overrides_file
takes in a yaml file with error thresholds specified for specific backend and platform configuration. Currently, two types of error overrides are allowed: maximum error and near zero.
For maximum error, a blanket max_error
is specified to override the parent classes relative error threshold.
For near zero override, ignore_near_zero_errors
is specified to allow some fields to pass with higher relative error if the absolute error is very small. Additionally, it is also possible to define a global near zero value for all remaining fields not specified in ignore_near_zero_errors
. This is done by specifying all_other_near_zero=<value>
.
Override yaml file should have one of the following formats:
- backend: <backend>
max_error: <value>
near_zero: <value>
ignore_near_zero_errors:
- <var1>
- <var2>
- ...
- backend: <backend>
max_error: <value>
ignore_near_zero_errors:
<var1>:<value1>
<var2>:<value2>
...
- backend: <backend>
max_error: <value>
ignore_near_zero_errors:
<var1>:<value1>
<var2>:<value2>
all_other_near_zero:<global_value>
...
where fields other than var1
and var2
will use global_value
.