PolicySpec

class PolicySpec

Contains all policy parameters, if any.

__init__(degree: int, interspersal: int = 2) None[source]

Construct the policy spec.

Parameters

degreeint

How many should target recencies for uncertainty-capped coverage should be spaced exponentially from zero recency to maximum recency (i.e., number strata deposited)? Adjust this parameter to set upper bound on space complexity (i.e., to ensure available space is not exceeded).

interspersalint

At least how many retained ranks should be spaced between zero recency and each target recency? Must be greater than 0. No bound on MRCA rank estimate uncertainty provided if set to 1. For most use cases, leave this set to 2.

Methods

static GetAlgoIdentifier() str[source]

Get programatic name for underlying retention algorithm.

static GetAlgoTitle() str[source]

Get human-readable name for underlying retention algorithm.

GetDegree() int[source]
GetEvalCtor() str[source]
GetInterspersal() int[source]
__init__(degree: int, interspersal: int = 2) None[source]

Construct the policy spec.

Parameters

degreeint

How many should target recencies for uncertainty-capped coverage should be spaced exponentially from zero recency to maximum recency (i.e., number strata deposited)? Adjust this parameter to set upper bound on space complexity (i.e., to ensure available space is not exceeded).

interspersalint

At least how many retained ranks should be spaced between zero recency and each target recency? Must be greater than 0. No bound on MRCA rank estimate uncertainty provided if set to 1. For most use cases, leave this set to 2.

__repr__() str[source]

Return repr(self).

__str__() str[source]

Return str(self).