Noise filters can be applied during training (in denoising autoencoders), for this a generator is used to get data batches.
# S3 method for ruta_filter
to_keras(x, data, batch_size, ...)
Filter object
Matrix where the filter will be applied
Size of the sample (for the training stage)
Additional parameters, currently unused