- class scglue.models.data.ArrayDataset(*arrays, getitem_size=1)
Array dataset for
scipy.sparse.spmatrixobjects. Different arrays are considered as unpaired, and thus do not need to have identical sizes in the first dimension. Smaller arrays are recycled. Also, data fetched from this dataset are automatically densified.
We keep using arrays because sparse tensors do not support slicing. Arrays are only converted to tensors after minibatch slicing.
Accept shuffling result
Propose shuffling using a given random seed
Randomly split the dataset into multiple subdatasets according to given fractions.
Internal array objects