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 each i-th dataset is expected to be an instance of numpy.ndarray.

Parameters:datasets – Underlying datasets. The i-th one is used for the i-th item of each example. All datasets must have the same length.
__init__(*datasets)[source]

Initialize self. See help(type(self)) for accurate signature.

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.