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

Additional features #5

Open
Dextergellizeau opened this issue Jun 11, 2021 · 3 comments
Open

Additional features #5

Dextergellizeau opened this issue Jun 11, 2021 · 3 comments

Comments

@Dextergellizeau
Copy link

Hello,

Please show how to add additional features (such as a technical indicator) to the script to help in prediction.

@jinglescode
Copy link
Owner

That's mostly data preparation, there are many ways to do it. Your aim is to include features in data_x_train and data_x_val, before creating the PyTorch Dataset at line 167:

dataset_train = TimeSeriesDataset(data_x_train, data_y_train)
dataset_val = TimeSeriesDataset(data_x_val, data_y_val)

You also need to remove at line 155:

x = np.expand_dims(x, 2)  # in our case, we have only 1 feature, so we need to convert `x` into [batch, sequence, features] for LSTM

@Dextergellizeau
Copy link
Author

Dextergellizeau commented Jun 11, 2021 via email

@Piyush-Bijwal
Copy link

hi @Dextergellizeau , were you able to get the code running? i'm also trying to do the same but not able to get the code running.
Regards,
Piyush

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

3 participants