initialgcs.m

来自「细胞生长结构可视化工具箱-MATLAB Toolbox1999.zip」· M 代码 · 共 59 行

M
59
字号
% Specify fields for a GCS network and intialsie defualt values
function Gcs = InitialGcs

Gcs=[];

Gcs.Name = 'New';
Gcs.Trained = 'No';
Gcs.Status = 'Idle';
Gcs.StatusColour = 'default';
Gcs.Trainfilename = [];			% Filename of training and test data

% These 2 need to be defined when data set is chosen, no default values!
Gcs.n = [];		% Dimensionality of training data
Gcs.w=[];

Gcs.k = 2;		% Dimensionality of network

Gcs.NoClasses = [];

Gcs.eb = 0.06;
Gcs.en = 0.002;

Gcs.beta = 0.0005;

Gcs.alpha = 1;

Gcs.wvis=[];
Gcs.wvis(1,:) = [0,0];
Gcs.wvis(2,:) = [1,0];
Gcs.wvis(3,:) = [0.5,1];;

Gcs.ztotal=[0;0;0];

Gcs.metric = 2;

temp = ones(Gcs.k+1,1);
Gcs.C=1-diag(temp,0);

Gcs.E=zeros(1,Gcs.k+1);

GcsProject.Prior1=[];		% 	N versions in general

Gcs.accv=[];			% Overal accuracy
Gcs.accv1=[];

Gcs.cmap1=[];
Gcs.prcl1=[];

Gcs.Normalise = 0;	% 1 => Normalise samples before training
Gcs.NormF1=[];			% Will store normalisation factor for 1st IP

Gcs.EqualPriors = 1;	% 1 =>Equalise priors by replicating samples

% Display parameters
Gcs.c='jet'; 	% Name of colourmap to be used
Gcs.smooth= 0.75;	% Gaussian width parameter
Gcs.NoPts= 30;	% Sets resolution of colourmaps
Gcs.linetype = ['r';'b';'g';'y';'m';'c'];	% defines colours for accuracy plot

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?