how to create a neural network with 1 layer only (no hidden layers)?

8 views (last 30 days)
I want to create a neural network with 1 layer only (no hidden layers) in matlab

Accepted Answer

Greg Heath
Greg Heath on 6 Nov 2014
net = fitnet([]); % For regression
net = patternnet([]); % For classification
Hope this helps.
Thank you for formally accepting my answer
Greg

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows 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!