How does the code "load data" produce P and T in Genetic Algorithm?

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!(❁´◡`❁)

 채택된 답변

Steven Lord
Steven Lord 2022년 3월 8일

1 개 추천

Because that's the size of the P variable stored in the data file named data.mat. If you're asking where that variable came from, you'd have to ask who created the data.mat file.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Electrophysiology에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2022년 3월 8일

댓글:

2022년 3월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by