Neural network of a single layer

How do I form a neural network with a single layer, so that it wont contain any hidden layer.

 Accepted Answer

net = feedforwardnet;
net.numLayers = x
x is the required number of layers. Here 1.

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Products

Release

R2018b

Community Treasure Hunt

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

Start Hunting!