n2p2 - A neural network potential package
Loading...
Searching...
No Matches
nnp::NeuralNetwork::Layer Struct Reference

One neural network layer. More...

Collaboration diagram for nnp::NeuralNetwork::Layer:

Public Attributes

int numNeurons
 Number of neurons in this layer \( N_n \).
 
int numNeuronsPrevLayer
 Number of neurons in previous layer \( N_{n-1} \).
 
ActivationFunction activationFunction
 Common activation function for all neurons in this layer.
 
Neuron * neurons
 Array of neurons in this layer.
 

Detailed Description

One neural network layer.

Definition at line 394 of file NeuralNetwork.h.

Member Data Documentation

◆ numNeurons

int nnp::NeuralNetwork::Layer::numNeurons

Number of neurons in this layer \( N_n \).

Definition at line 397 of file NeuralNetwork.h.

Referenced by nnp::NeuralNetwork::allocateLayer(), and nnp::NeuralNetwork::propagateLayer().

◆ numNeuronsPrevLayer

int nnp::NeuralNetwork::Layer::numNeuronsPrevLayer

Number of neurons in previous layer \( N_{n-1} \).

Definition at line 399 of file NeuralNetwork.h.

Referenced by nnp::NeuralNetwork::allocateLayer(), and nnp::NeuralNetwork::propagateLayer().

◆ activationFunction

ActivationFunction nnp::NeuralNetwork::Layer::activationFunction

Common activation function for all neurons in this layer.

Definition at line 401 of file NeuralNetwork.h.

Referenced by nnp::NeuralNetwork::allocateLayer(), and nnp::NeuralNetwork::propagateLayer().

◆ neurons

Neuron* nnp::NeuralNetwork::Layer::neurons

Array of neurons in this layer.

Definition at line 403 of file NeuralNetwork.h.

Referenced by nnp::NeuralNetwork::allocateLayer(), and nnp::NeuralNetwork::propagateLayer().


The documentation for this struct was generated from the following file: