How does the code "load data" produce P and T in Genetic Algorithm?
Mostrar comentarios más antiguos
I have the code below:
clc
clear all
close all
load data
% 初始隐层神经元个数
hiddennum=31;
% 输入向量的最大值和最小值
threshold=[0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1];
inputnum=size(P,1); % 输入层神经元个数 15
outputnum=size(T,1); % 输出层神经元个数 3
and it is on the top position in my GAMain.m.
I am to design a toy BP network which has only one hidden layer with 31 neurons(hiddennum in line 6)and one input layer with inputnum neurons and a output layer that has outputnum neurons.
when I debug the .m file, confusedly I found the P had the size 15x9.
How P comes to 15X9?
Thanks in advance!(❁´◡`❁)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Electrophysiology en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!