How to compute RMSE on training set and validation set in LSTM regression?

6 visualizaciones (últimos 30 días)
Yyy
Yyy el 15 de Abr. de 2024
Respondida: Taylor el 15 de Abr. de 2024
Now I'm trying to do seq2seq regression using LSTM. I can't understand the algorithm of RMSE. My input is a 100*1 cell, and evey cell is 2*100 double matrix. The output is a 100*1 cell, and every cell is 1*100 double vector. This means, numFeatures=2 and numResponses=1. I also set validation set by trainingOptions: 'ValidationData',{XValid,YValid}, XValid and YValid both are 100*1 cell. But what confuses me is how to compute RMSE on training set and validation set. Under my understanding, if my input is a 100*1 cell, then my output is also a 100*1 cell. Every cell of output is 1*100 double. So I don't know how to calculate the RMSE between two cells, I mean output and Yvalid. I think it will retrun a 100*1 cell, every cell is a number of the RMSE between two vector, but it returns just a number. Is the mean of every cell or other statistic?Or is there some other algorithm?

Respuestas (1)

Taylor
Taylor el 15 de Abr. de 2024
You'll want to look at the info object returned by trainnet.See this previous post for more info.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by