energy_fault_detector.autoencoders.seq2one_autoencoder

Seq2One (causal half-autoencoder) base class.

class Seq2OneAutoencoder(sequence_builder=None, **ae_kwargs)[source]

Bases: SequenceAutoencoder

Sequence-to-one autoencoder: maps a window to a single output (last timestep).

Subclasses must implement create_model.

This class trains models that map a sequence of length sequence_length to a single output vector (typically corresponding to the last timestep in the window).

It reuses the same initialization and latent handling as Seq2SeqAutoencoder, but uses SequenceDatasetBuilder.build_seq2one_dataset instead of build_sliding_dataset.