aliby.haystack.ModelPredictorWriter¶
- class ModelPredictorWriter(file, name, shape, dtype)[source]¶
Bases:
DynamicWriter
- Attributes
- metadata
Methods
write
(data, overwrite[, meta])Write data and metadata to h5 file.
Methods
__init__
(file, name, shape, dtype)write
(data, overwrite[, meta])Write data and metadata to h5 file.
Attributes
compression
compression_opts
data_types
group
metadata
- write(data, overwrite, meta={})¶
Write data and metadata to h5 file.
- Parameters
- data: dict
A dict of datasets and data
- overwrite: list of str
A list of datasets to overwrite
- meta: dict, optional
Metadata to be written as attributes of the h5 file