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

2 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Divya Gaddipati
Divya Gaddipati am 14 Feb. 2020
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!

Weitere Antworten (0)

Kategorien

Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by