IdentityScale
classView source ↗
class IdentityScale(
min_val: Annotated[int, Strict(strict=True)],
max_val: Annotated[int, Strict(strict=True)],
use_bin_zero: bool = False,
)
Bases: Scale
Categories: dq-classifier
An identity scale where each integer value corresponds to a bin.
Initializes an identity scale.
Parameters
parameter
min_valThe minimum integer value of the scale.
parameter
max_valThe maximum integer value of the scale.
parameter
use_bin_zeroIf False, the minimum value is part of the first bin.
Properties
property
binsReturns the number of bins in the scale.
property
scale_rangetuple[Annotated[int, Strict(strict=True)], Annotated[int, Strict(strict=True)]]Returns the (min, max) range of the scale.
property
use_bin_zeroboolReturns whether the minimum value is in bin zero or in bin one.