dora.active_sampling.util.ArrayBuffer

class dora.active_sampling.util.ArrayBuffer

ArrayBuffer Class

Provides an efficient structure for numpy arrays growing on the first axis. Implemented with an automatically resising buffer, providing matrices as views to this data by slicing along the first axis.

Attributes:

__init__()

Initialise Buffer

Methods

__init__() Initialise Buffer
append(value) Adds an array_like to the buffer, extending its first axis by adding a (1 x value.shape) row onto the end.

Attributes

initial_size
shape

Next topic

dora.active_sampling.active_sampling.Sampler