ExponentialScale
classView source ↗
class ExponentialScale(
min_val: Annotated[int, Strict(strict=True)] | Annotated[float, Strict(strict=True)],
max_val: Annotated[int, Strict(strict=True)] | Annotated[float, Strict(strict=True)],
base: Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])] | None = None,
bins: Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=1), Le(le=100)])] = 100,
use_bin_zero: bool = False,
)
Bases: NonIdentityScale
Categories: dq-classifier
An exponential scale.
Initializes an exponential scale.
Parameters
parameter
min_valThe minimum value of the scale.
parameter
max_valThe maximum value of the scale.
parameter
baseThe base of the exponent. Defaults to math.e.
parameter
binsThe number of bins.
parameter
use_bin_zeroIf False, the minimum value is part of the first bin.
Properties
property
baseAnnotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0)])]Returns the base of the exponential scale.
property
binsAnnotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=1), Le(le=100)])] | NoneReturns the number of bins in the scale.
property
scale_rangetuple[Annotated[int, Strict(strict=True)] | Annotated[float, Strict(strict=True)], Annotated[int, Strict(strict=True)] | Annotated[float, 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.