Forward Method
Functions
forward(nn, X)
Perform forward propagation through the entire neural network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
nn |
Sequential
|
The neural network model. |
required |
X |
ndarray
|
The input data. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: The output of the last layer (final predictions). |
Example
Note
This function updates the Z and A attributes of each layer in the network.