how to give read command for uploaded file
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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';
1 Kommentar
Antworten (0)
Siehe auch
Kategorien
Mehr zu Define Shallow Neural Network Architectures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!