MATLAB Answers


How can I design multi layer perceptron based neural network(2 hidden layers) for my data.

Asked by PRAKHAR GANDHI on 15 Sep 2019
Latest activity Answered by Raunak Gupta on 18 Sep 2019
Data consists of 72 features as columns,2148 rows, and last column as class labels as 0 and 1.

  1 Comment

One hidden layer is sufficient.

Sign in to comment.

1 Answer

Answer by Raunak Gupta on 18 Sep 2019
 Accepted Answer

Since you are trying to implement a Multi-Layer Perceptron, It is recommended to use fullyConnectedlayer as this connect all the nodes in one layer to the previous and next layer. The input size can be specified as 72 which is the number of features. The rows in the data matrix can be split into test data and train data. For full workflow, there is an example here by ignoring convolution2dLayer, maxPooling2dLayer and mentioning imageInputLayer with appropriate size as the number of features.
You may use Neural Netwrok Pattern Recognition App as an interactive alternative for solving classification and regression-based problem in Neural Networks.
For more information you may take a look at Neural Network.


Sign in to comment.