Home > other >  Could you tell me how to change a great god this code?/MATLAB bp neural network prediction
Could you tell me how to change a great god this code?/MATLAB bp neural network prediction

Time:09-26


The BP neural network prediction algorithm to predict the serial number 15 scores for the high jump,

The following table is the domestic men's high jump athletes each quality index







P=[3.2 3.2 3.2 3.2 3.4 3.2 3 3 3.2 3.2 3.2 3.9 3.1 3.2;

9 9.6 10.3 10.3 10.1 9.6 9, 9.5 9.7 9.6 9.2 9.5 9;

3.45 3.75 3.5 3.65 3.5 3.4 3.55 3.5 3.55 3.5 3.4 3.1 3.6 3.45;

2.15 2.2 2.2 2.2 2.15 2.14 2.1 2.1 2.1 2.15 2, 2.1 2.15;

140 120 140 150 80 130 130 100 130 140 115 80 90 130;

2.8 3.4 3.5 2.8 1.5 3.2 3.5 1.8 3.5 2.5 2.8 2.2 2.7 4.6;

11 10.9 11.4 10.8 11.3 11.5 11.8 11.3 11.8 11.9 11.1 10.85;

50, 70 to 50 80 50 to 60 65 40 65 50 to 50, 70, 70];

% input data, the number of rows represent the number of input layer neurons

T=[2.24 2.33 2.24 2.32 2.2 2.27 2.2 2.26 2.2 2.24 2.24 2.2 2.2 2.35];

[p1, minp maxp, t1, mint, maxt]=premnmx (P, T); Net=newff (minmax (P),,6,1 [8] and {' tansig ', 'tansig', 'purelin'}, 'trainlm);

% create network, excitation function

Net. TrainParam. Epochs=5000; % set training number

Net. TrainParam. Goal=0.0000001;
% set convergence error
[.net, tr]="train" (.net, p1, t1);
% training network
A=[3.0, 9.3, 3.3, 2.05; 100; 2.8; 11.2; 50].
% input data
A=premnmx (a); % the input data normalization

B=sim (.net, a); % in the output data to the network

C=postmnmx (b, mint, maxt); % will be the normalized get forecast data

C

C=2.200

Serial number 15 high jump performance forecast for 2.200

Author: QinL


This case with my graduation design topic is like, but the data normalization and create network in the new version has not been able to use MATLAB code, could you tell me how to change, a great god best detail, because I'm a pure white, thank you, thank you very much
  • Related