slct_error_metrics: Error selector

View source: R/slct_error_metrics.R

slct_error_metricsR Documentation

Error selector

Description

Accepts a stored concept when its error on the current (labeled) batch is within a tolerance of its error on its own memory (err_batch <= err_concept + tolerance), and selects the accepted concept with the smallest error on the batch. The error is 1 - metric.

Usage

slct_error_metrics(
  tolerance = NULL,
  tol_quantile = 0.8,
  th = NULL,
  metric = mt_accuracy(),
  init_blocks = FALSE
)

Arguments

tolerance

Fixed additive tolerance. NULL (default): learned for each concept as the tol_quantile quantile of its error gaps (err_batch - err_concept) on the batches that belonged to it.

tol_quantile

Quantile of the learned tolerance.

th

Classification threshold. NULL (default): the threshold of each concept.

metric

Metric object (e.g. mt_accuracy()).

init_blocks

With history_init = "blocks" in the concept pool, start the learned tolerance of a new concept by leave-one-block-out: one model per block, trained on the rest of the training window. FALSE (default): the history starts empty.

Value

A slct_error_metrics object.


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