Question:

Consider a fully connected forward multi-layer perceptron. It has 30 neurons in the i/p layer foll. by two hidden layers and an o/p layer. The first hidden layer has 4 neurons and the second 3 neurons. The o/p layer has only 1 neuron. Assume that no biased parameter parameter in the mul_________.

Show Hint

To calculate the parameters in a neural network layer, use the formula:
\( (\text{neurons_in_previous_layer} \times \text{neurons_in_current_layer}) + \text{neurons_in_current_layer} \).
The first part of the expression is for the weights, and the second part is for the biases.
If the question says "no bias", simply ignore the second part of the formula.
Updated On: Feb 23, 2026
Hide Solution
collegedunia
Verified By Collegedunia

Correct Answer: 135

Solution and Explanation

Step 1: Understanding the Question:
The question asks for the total number of parameters in a multi-layer perceptron (MLP) with a specific architecture. The parameters in this case are only the weights, as the question states to assume no bias parameters.
Step 2: Network Architecture:
- Input Layer: 30 neurons - Hidden Layer 1: 4 neurons - Hidden Layer 2: 3 neurons - Output Layer: 1 neuron The network is fully connected, meaning every neuron in a layer is connected to every neuron in the next layer.
Step 3: Calculating Weights Between Layers:
The number of weight parameters between two fully connected layers is the product of the number of neurons in those two layers.
- Weights between Input and Hidden Layer 1: The input layer has 30 neurons and Hidden Layer 1 has 4 neurons. \[ \text{Number of weights} = 30 \times 4 = 120 \] - Weights between Hidden Layer 1 and Hidden Layer 2: Hidden Layer 1 has 4 neurons and Hidden Layer 2 has 3 neurons. \[ \text{Number of weights} = 4 \times 3 = 12 \] - Weights between Hidden Layer 2 and Output Layer: Hidden Layer 2 has 3 neurons and the Output Layer has 1 neuron. \[ \text{Number of weights} = 3 \times 1 = 3 \] Step 4: Calculating Total Parameters:
The total number of parameters is the sum of the weights from all connections. \[ \text{Total Parameters} = 120 + 12 + 3 = 135 \] Step 5: Final Answer:
The total number of parameters (weights) in the network is 135.
Was this answer helpful?
0
0

Top Questions on Machine Learning

View More Questions

Questions Asked in GATE DA exam

View More Questions