fchollet / deep-learning-with-python-notebooks

Jupyter notebooks for the code samples of the book "Deep Learning with Python"
MIT License
18.59k stars 8.63k forks source link

int_sequence slicing in timeseries_dataset_from_array from Chapter 10 #226

Open jawatech opened 1 year ago

jawatech commented 1 year ago

Hi all, I'm wondering if this line of code data=int_sequence[:-3], could be modified to be data=int_sequence[:-1], for at least the output seems fine: [0, 1, 2] 3 [1, 2, 3] 4 [2, 3, 4] 5 [3, 4, 5] 6 [4, 5, 6] 7 [5, 6, 7] 8 [6, 7, 8] 9

ifond commented 1 year ago

​ I have received your E-mail——Steven Lee