Module: Iriq::ProposalStrategy
- Defined in:
- lib/iriq/recognizer_proposal.rb
Overview
Pluggable proposal-detection strategies. Each strategy.propose(storage, **opts) returns an array of RecognizerProposal. Adding a new detection rule = add a class with #propose; register it via DEFAULTS.
Defined Under Namespace
Classes: PrefixUnderscoreId
Constant Summary collapse
- DEFAULT_MIN_OBSERVATIONS =
Default minimum total matching observations across positions before we’ll emit a proposal. Below this the signal is too noisy.
20- DEFAULT_MIN_COVERAGE =
Fraction of sampled observations at affected Positions that must match the proposal pattern.
0.7- DEFAULT_MIN_HOSTS =
Minimum number of distinct hosts the proposal must appear at. For single-host corpora this defaults to 1; bumping to 2+ promotes cross-host patterns over host-local ones.
1- CROSS_HOST_BOOST_PER_HOST =
Confidence boost added per additional host beyond the first. A pattern seen on 10+ hosts caps out the boost (+0.45 ≈ 1.0 when combined with any reasonable coverage); single-host patterns get no boost (their coverage IS their confidence).
0.05- DEFAULTS =
[PrefixUnderscoreId.new].freeze