Skip to content

CH 11 Sequence Modeling issue #5

@ghost

Description

Hello Dipanjan,
I just want to congratulate you for your book. It is one of the best out there.
Altough, I have a small issue:

on chapter 11 at Sequence Modeling when I call get_seq_train_test function I get an error
on this line: scaled_stock_series = scaler.fit_transform(time_series)

saying : ValueError: Expected 2D array, got 1D array instead: array=[1115.099976 1115.099976 1115.099976 ... 2711.929932 2643.689941
2634.800049].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.

Can you help me with this?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions