how to give read command for uploaded file

2 visualizaciones (últimos 30 días)
PALI SAHU
PALI SAHU el 18 de Mzo. de 2019
Comentada: per isakson el 18 de Mzo. de 2019
Below is my code i am working but not able to understand how my input will read the command from my loaded file.
Please help me out.
loadfile='samplefile.txt';
net=network;
net.numInputs= 2;
net.numLayers= 2;
net.layers{1}.size= 4;
net.layers{2}.size= 1;
net.inputconnect(1,2)= 2;
net.IW{1,1};
net.LW{2,1};
net.b{1};
net.b{2};
net.layerConnect = [0 0; 1 0];
net.biasConnect = [1;1];
net.outputConnect = [0 1];
% Setup Division of Data for Training, Validation, Testing
%net.divideParam.trainRatio = 70/100;
%net.divideParam.valRatio = 15/100;
%net.divideParam.testRatio = 15/100;
net.divideFcn = 'dividerand';
% Define transfer Function for each layer
net.layers{1}.transferFcn = 'purelin';
net.layers{2}.transferFcn = 'logsig';
% train the network
net.trainFcn= 'trainlm';

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by