I have a tensorflow dataset containing all my data and labels. The first 20 elements are extracted into another dataset using following code:
train_dataset = big_dataset.take(20)
But how do i extract for example the last 20 elements from big_dataset into a new dataset?
Thanks i advance!
EDIT: The following code shows how i define the big_dataset:
big_dataset = tf.data.Dataset.from_tensor_slices((all_points, all_labels))
What works now to get the first elemets is the following code (where train_size is e.g. 20):
train_dataset = big_dataset.take(train_size)
train_dataset = train_dataset.shuffle(train_size).map(augment).batch(BATCH_SIZE)
But using the .skip().take() results in an empty database