avalanche.training.ReservoirSamplingBuffer
- class avalanche.training.ReservoirSamplingBuffer(max_size: int)[source]
Buffer updated with reservoir sampling.
Methods
__init__
(max_size)- param max_size:
resize
(strategy, new_size)Update the maximum size of the buffer.
update
(strategy, **kwargs)Update buffer.
update_from_dataset
(new_data)Update the buffer using the given dataset.
Attributes
buffer
Buffer of samples.