→ New → python3 → 파일명은 windowed_dataset

import numpy as np
import tensorflow as tf
→ 차원을 미리 만들어 놓았음
x = np.arange(20)
x

tf.expand_dims(x, 1).shape

np.expand_dims(x, 1).shape

ds = tf.data.Dataset.from_tensor_slices([1, 2, 3, 4, 5])
for d in ds :
print(d)

ds