Shrinkage

shrinkage.WorkingSetPolicy

Shrinkage for Python · python · 0.2.0

WorkingSetPolicy(
    kind: typing.Literal["auto", "disabled", "ever_active", "adaptive"],
    initial_size: int = 10,
    prune: bool = True
)

Heuristic feature selection, independent of certified zero screening.

Every policy retains current nonzeros. Excluded zeros may reenter after full checks. Only the original full-space mapping certifies convergence.

kind

kind: typing.Literal["auto", "disabled", "ever_active", "adaptive"]

initial_size

initial_size: int = 10

prune

prune: bool = True

auto

auto() -> shrinkage.WorkingSetPolicy

Use adaptive sets for single fits, or ever-active sets for paths.

disabled

disabled() -> shrinkage.WorkingSetPolicy

Update every feature allowed by independently configured screening.

ever_active

ever_active() -> shrinkage.WorkingSetPolicy

Retain features activated at accepted iterates.

adaptive

adaptive(
    initial_size: int = 10,
    *,
    prune: bool = True
) -> shrinkage.WorkingSetPolicy

Rank violations, growing the set and optionally pruning it.