Hello,
In a Probabilistic Neural Network (PNN) created using MATLAB's ‘newpnn’ function, the layers are structured as follows:
- Input Layer: Passes the input features directly to the pattern layer without any computation
- Pattern Layer (First Computational Layer): Computes similarity scores between the input and each training sample using a radial basis function
- Summation Layer (Second Computational Layer): Aggregates the outputs from the pattern layer for each class
- Decision Layer (Output Layer): Determines the class with the highest aggregated score
The Summation Layer is considered the second computational layer in a PNN, and my understanding is that you want to extract the output responses for this layer. You can use the following code snippet for implementing this:
patternLayerOutput = radbas(dist(net.IW{1,1}, inputSample) * spread);
summationLayerOutput = net.LW{2,1} * patternLayerOutput;
Additionally, you may refer to the following documentation links for more details:
Hope this helps!