DataWeightContainer#
- class caput.containers.DataWeightContainer(*args: tuple, **kwargs: dict)[source]#
Bases:
caput.containers._core.ContainerPrototypeA base class for containers with generic data/weight datasets.
This is meant to be a general-purpose container providing a common structure for generic operations . The data and weight datasets are expected to have the same size, though this isn’t checked. Subclasses must define
_data_dset_nameand_weight_dset_name.- property data: caput.memdata.MemDataset[source]#
The main dataset.
- property weight: caput.memdata.MemDataset[source]#
The weights for each data point.