RNN/LSTM deep learning model?

前端 未结 1 382
深忆病人
深忆病人 2021-01-17 02:07

I am trying to build an RNN/LSTM model for binary classification 0 or 1

a sample of my dataset (patient number, time in mill/sec., normalization of X Y and Z, kurtos

相关标签:
1条回答
  • 2021-01-17 02:49

    The LSTM layer takes a 3 dimensional input, corresponding to (batch_size, timesteps, features). In your case you have only a 2 dimensional input, which is (batch_size, features).

    The LSTM layer is adapted to sequences formats (sentences, stocks prices ...). You need to reshape your data so that it can be used this way. More specificaly, you need to reshape your data to have one line per patient (Or you can choose to have multiple sequences per patient, but let's say we want one line per patient for now), and each line needs to contain multiple arrays, each array corresponding to an observation of your patient.

    0 讨论(0)
提交回复
热议问题