learned_limit: Learned acceptance limit

View source: R/ac_selector.R

learned_limitR Documentation

Learned acceptance limit

Description

The acceptance limit a selector compares its statistic against. A fixed number overrides everything; otherwise the limit is learned as the quantile of the statistics a concept recorded on the batches that belonged to it (pooling across all stored concepts while a concept has fewer than min_history of its own values). Each selector composes one; the per-concept statistics are kept in concept$history[[key]], shared storage that the cross-concept pooling needs.

Usage

learned_limit(fixed = NULL, quantile = 0.8, key, min_history = 5)

Arguments

fixed

A fixed limit (a number), or NULL to learn it from the history.

quantile

Quantile of the learned limit.

key

History key under which a concept stores this selector's statistics.

min_history

Own values a concept needs before it stops pooling the other concepts' values.

Value

A learned_limit object.


heimdall documentation built on Dec. 2, 2026, 5:08 p.m.