slct_ae: Autoencoder selector

View source: R/slct_ae.R

slct_aeR Documentation

Autoencoder selector

Description

Each stored concept has an autoencoder trained on its memory (in the concept's one-hot and normalized space). A concept is accepted when the PSI between the reconstruction errors of its autoencoder on the current batch and on its memory is within its limit; the accepted concept with the smallest PSI is selected. With an incremental trainer (train_incremental()), the autoencoder of the active concept is updated with every batch it receives.

Usage

slct_ae(
  encoding_size,
  ae_class = daltoolboxdp::autoenc_ed,
  batch_size = 32,
  num_epochs = 1000,
  num_epochs_incremental = 100,
  learning_rate = 0.001,
  max_psi = NULL,
  tol_quantile = 0.8,
  n_tiles = 10,
  init_blocks = FALSE
)

Arguments

encoding_size

Number of units of the encoding layer.

ae_class

Autoencoder constructor (e.g. daltoolboxdp::autoenc_ed).

batch_size

Batch size of the autoencoder training.

num_epochs

Epochs of a full autoencoder training.

num_epochs_incremental

Epochs of each incremental update. NULL uses num_epochs.

learning_rate

Learning rate of the autoencoder.

max_psi

Fixed PSI limit. NULL (default): learned for each concept as the tol_quantile quantile of the PSI of the batches that belonged to it.

tol_quantile

Quantile of the learned limit.

n_tiles

Number of quantile bins of the PSI.

init_blocks

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

Value

A slct_ae object.


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