Problem with table/cell array in an LSTM anomaly detection project

2 次查看(过去 30 天)
Hi everyone, I'm a novice of MATLAB and programming in general and I'm doing an anomaly detection project through LSTM neural networks.
My problem is at the origin of the project since I can't understand how to treat the dataset I want to use.
Being a .csv file, this is represented, inside MATLAB, with a table, but reading many examples on LSTM, I noticed that all the datasets used were never table but array or cell array.
I would like to ask you if it is possible to use a table in this kind of problem or if the dataset should be transformed first by some function and if so which ones (table2cell?).
I leave you a picture of what the table looks like once opened in MATLAB, in this one you can see a column that represents the day and time of the detection, 52 sensors and a final column that represents the state of the system and that is the target of our problem:
es.PNG
Obviously it is not a 4x9 matrix but 220000x55, reduced only as an example.
Thank you to everyone who would like to help me.

采纳的回答

Divya Gaddipati
Divya Gaddipati 2020-2-14
You can use a table as an input to the trainNetwork function for training your LSTM model.
If the data size is same for all columns, then table can be used. Otherwise, it is preferable to use cell.
You can refer to the usage of trainNetwork in the below link:
Hope this helps!

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by