fchollet / deep-learning-with-python-notebooks

Jupyter notebooks for the code samples of the book "Deep Learning with Python"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

int_sequence slicing in timeseries_dataset_from_array from Chapter 10

jawatech opened this issue · comments

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

commented