Train a Neural Network with multidimensional matrices

1 visualización (últimos 30 días)
Francesco Basciani
Francesco Basciani el 24 de Feb. de 2020
Respondida: Srivardhan Gadila el 4 de Mzo. de 2020
I want use neural network to perform binary prediction for a set of 10 robotic manipulators that have to converge to a target position when arranged in a crowded environment. Each robot is characterized by 5 feature and my dataset is composed of 2000 simulations.Then if I indicate with N the number of features of the robots, with M the number of simulations and with R the number of the robots, I have a N x M x R matrix. The problem is that i cannot feed a Neural network with the data in this form and I am looking for another way to arrange the data for the Network. It is important that when i have to split the data for training, validation and test, the split is performed on the number of simulation M, and not on the number of robots R.
Thank you

Respuestas (1)

Srivardhan Gadila
Srivardhan Gadila el 4 de Mzo. de 2020
If you are thinking of a fullyconnected network then use the imageInputLayer for giving the input to the network and use the dividerand for splitting the dataset across M. Reshape your N x M x R matrix to N x R x 1 x M or R x N x 1 x M matrix using reshape function

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by