How to use trainpso to train a neural network model
1 view (last 30 days)
Show older comments
function [net, tr] = trainpso(net, tr, trainV, valV, testV, varargin)
the trainpso is shown like this, how to input the data so that i can use trainpso to train a neural network model?
0 Comments
Answers (1)
Darshan Ramakant Bhat
on 28 Mar 2017
The first argument for the function seems to be a neural network object. It will have a property called ' inputs' and ' outputs'. You can set your training inputs as
net.inputs=trainInput;
net.outputs=trainOutputs;
Also note that it expects the data in the form of cell arrays.
Another way is to directly configure your neural network with inputs and targets like below
net = configure(net,x,t);%x is input and t is target
Please refer the following link
Regards,
Darshan Bhat
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!