Run full anomaly detection stream over multiple batches
stream.RdExecutes the anomaly detection pipeline across a sequence of batches for multiple detectors.
For each batch, it applies the pipe_net function, accumulates detection results,
performs coincidence analysis, and optionally incorporates pre-trained models.
Arguments
- batch_set
A list of batches, each element being a named list of
tsobjects per detector.- arch_params
A list of architecture and configuration parameters. Typically created by
config_pipe.- use_model
(Optional) A named list of pre-trained per-detector statistics to initialize
ustat. Default isNA, meaning no pretrained model.
Value
A named list containing:
res.netFinal detector-wise detection results.
coinc.lisList of coincidence analysis results per batch.
modelFinal per-detector accumulated statistics (i.e., last
ustat).arch_paramsThe configuration object used in the run.
lambda_plotList of plots for \(\lambda_a\) and \(\lambda_c\).
summaryFinal per-detector statistical summary as a data.frame.
etaList of elapsed times (in seconds) for each batch.
Details
This function initializes the pipeline via init_pipe, registers
parallel execution with foreach using a SOCK cluster, and iteratively
calls pipe_net on each batch.
After processing all batches, it aggregates per-detector statistics,
terminates parallel backend, and visualizes lambda trajectories via
plot_lambda.
The output model can be reused as use_model for transfer learning.