chainer_chemistry.datasets.NumpyTupleDataset¶
-
class
chainer_chemistry.datasets.
NumpyTupleDataset
(*datasets)[source]¶ Dataset of a tuple of datasets.
It combines multiple datasets into one dataset. Each example is represented by a tuple whose
i
-th item corresponds to the i-th dataset. And eachi
-th dataset is expected to be an instance of numpy.ndarray.Parameters: datasets – Underlying datasets. The i
-th one is used for thei
-th item of each example. All datasets must have the same length.Methods
__init__
(*datasets)Initialize self. get_datasets
()load
(filepath)save
(filepath, numpy_tuple_dataset)save the dataset to filepath in npz format Attributes
features
Extract features according to the specified index.