dial_core.datasets.dataset module

class dial_core.datasets.dataset.Dataset(x_data=None, y_data=None, x_type=None, y_type=None, batch_size=32, shuffled=False)[source]

Bases: tensorflow.keras.utils.Sequence

__getitem__(idx)[source]

Return the batch of items starting on idx.

Return type:Tuple[array, array]
__len__()[source]

Return the length of the dataset.

Return type:int
delete_rows(start, n=1)[source]
head(n=10)[source]

Returns the first n items on the dataset.

Return type:Tuple[List, List]
items(start, end)[source]

Return the n elements between start and end as a tuple of (x, y) items Range is EXCLUSIVE [start, end)

Return type:Tuple[array, array]
shuffle()[source]
property shuffled

Check if the dataset is shuffled (dataset items randomly sorted)

Return type:bool