energy_fault_detector.autoencoders.seq2one_autoencoder
Seq2One (causal half-autoencoder) base class.
- class Seq2OneAutoencoder(sequence_builder=None, **ae_kwargs)[source]
Bases:
SequenceAutoencoderSequence-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_lengthto 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_datasetinstead ofbuild_sliding_dataset.