- mse: https://www.mathworks.com/help/deeplearning/ref/mse.html
- mad: https://www.mathworks.com/help/stats/mad.html
- mape: https://www.mathworks.com/help/matlab/ref/mape.html
- cell2mat: https://www.mathworks.com/help/matlab/ref/cell2mat.html
How can i calculate forecast accuracy measures (MAD, MSE, and MAPE) using "Neural Network Time Series App" ?
21 次查看(过去 30 天)
显示 更早的评论
i have a time series data set and i want to compute the accuracy measrues by using Neural Network Time Series App to make a comparison with other forecast model.
0 个评论
回答(1 个)
Jaynik
2023-10-27
Hi Ahmed,
I understand that you want to calculate the accuracy measures like MAD (Mean Average Deviation), MSE (Mean Squared Error) and MAPE (Mean Average Percentage Error) using the “Neural Network Time Series App”.
Currently, however, you can only calculate MSE using the app. Once you load the network and data and train the model, the app automatically calculates the MSE and it can be seen inside the “Model Summary Pane”.
To calculate other measures using the obtained model, you can generate the code using “EXPORT > Generate Code”. Once you obtain the code, based on the values of variables ‘net’, ‘t’ and ‘y’, you can calculate each measures using the MATLAB inbuilt functions as follows:
% To convert cell array into matrix:
y = cell2mat(y);
t = cell2mat(t);
mean_squared = mse(net, t, y);
MAPE = mape(y, t);
MAD = mad(y);
You can read about the following functions here:
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!