How can I make 2 hidden layers in neural network toolkit?

Illustration
eriiharuue - 2021-07-29T11:19:51+00:00
Question: How can I make 2 hidden layers in neural network toolkit?

I want a Multi-layer Perceptron neural network by neural network toolkit. but I cannot make 2 hidden layers (just 1 layer available).   How can I make 2 hidden layers in neural network toolkit?

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

Regression/Curvefitting
 
 net = fitnet([H1,H2]);

Classification/Pattern-Recognition

 net = patternnet([H1,H2]);

Time Series

 net = narxnet( ID, FD, [ H1, H2]);
timedelaynet and narnet are special cases obtained from
 
FD = [] and ID = [], respectively.
 
Hope this helps.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!