base.metrics.error_rel module

class base.metrics.error_rel.RelativeError(max_value, step)

Bases: circa.base.metrics.error_metric.ErrorMetric

static metricId()

Returns this ErrorMetric’s unique ID string.

getNextValues(cur_value)

Returns a list of all possible values resulting from increasing cur_value by one step.

getPrevValues(cur_value)

Returns a list of all possible values from which cur_value can be reached in one step. The list is empty if this is not possible.

getValueStr(value)

Returns a human-readable string representation of the given value.

greaterMax(value)

Returns True if value exceeds max_value, else False.

convertToValue(value)

Converts the given string representation of a value into the correct value type.