Regression prediction | MATLAB implements GRNN generalized regression neural network multi-input and multi-output prediction

Regression prediction | MATLAB implements GRNN generalized regression neural network multi-input and multi-output prediction

predictive effect

insert image description here
insert image description here
insert image description here
insert image description here

basic introduction

MATLAB implements GRNN generalized regression neural network multi-input multi-output prediction, input 10 features, output 3 variables, the program garbled code is caused by version inconsistency, you can use Notepad to open and copy to your file, the operating environment MATLAB2018b and above.
The command window outputs MAE and R2, and the data and program content can be obtained in the download area.

programming

%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
%%  划分训练集和测试集
P_train = res(1: num_train_s, 1: f_)';
T_train = res(1: num_train_s, f_ + 1: end)';
M = size(P_train, 2);
%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
P_test = res(num_train_s + 1: end, 1: f_)';
T_test = res(num_train_s + 1: end, f_ + 1: end)';
N = size(P_test, 2);
%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
%%  数据归一化
[p_train, ps_input] = mapminmax(P_train, 0, 1);
p_test = mapminmax('apply', P_test, ps_input);
%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[t_train, ps_output] = mapminmax(T_train, 0, 1);
t_test = mapminmax('apply', T_test, ps_output);

————————————————
版权声明:本文为CSDN博主「机器学习之心」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

版权声明:本文为CSDN博主「机器学习之心」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

%-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wonderful past

MATLAB realizes RBF radial basis neural network MIMO prediction
MATLAB realizes BP neural network MIMO prediction
MATLAB realizes DNN neural network MIMO prediction
MATLAB realizes LSTM long short-term memory neural network MIMO prediction

References

[1] https://blog.csdn.net/kjm13182345320/article/details/116377961
[2] https://blog.csdn.net/kjm13182345320/article/details/127931217
[3] https://blog.csdn.net/kjm13182345320/article/details/127894261

Guess you like

Origin blog.csdn.net/kjm13182345320/article/details/132308904