How can I reduce the number of columns without losing the data quality

1 Ansicht (letzte 30 Tage)
I have an LSTM code, the YTrain and XTrain have different number of Columns, how can I reduce the number of columns of YTrain to match the number of Columns of XTrain without losing the data quality?
  2 Kommentare
Shivam Singh
Shivam Singh am 11 Okt. 2021
Bearbeitet: Shivam Singh am 11 Okt. 2021
Hello James,
Why exactly do you want to reduce the columns of YTrain? Can you share more information along with full code, so that I can inspect?
James Muwanguzi
James Muwanguzi am 11 Okt. 2021
This is my full code. I need to adjust the size of the YTrain to match that of XTrain or either way round because the X-axis of the Ytrain has more steps than the X-axis of the Xtrain although they both have the same end magnitude.
I was thinking about interp1 function although am not sure which suits me best.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Shivam Singh
Shivam Singh am 12 Okt. 2021
Hello James,
You can downsample your datapoints of YTrain using downsample function.

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by