Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

int_sequence slicing in timeseries_dataset_from_array from Chapter 10 #226

Open
jawatech opened this issue Sep 1, 2023 · 1 comment
Open

Comments

@jawatech
Copy link

jawatech commented Sep 1, 2023

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
Copy link

ifond commented Sep 1, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants