Class LayerSP4

Inheritance Relationships

Base Type

Class Documentation

class LayerSP4 : public Layer

Represents a specialized layer with a quartic (fourth power) activation function, derived from the Layer class.

This class implements a layer in the neural network that uses a quartic activation function.

Public Functions

inline LayerSP4(int nbDown, int nbUp, int nbWeights, int nbWeightsForInit)

Constructor for the LayerSP4 class.

Initializes the layer with the quartic activation function with the specified parameters.

Parameters:
  • nbDown – Number of neurons in the previous layer.

  • nbUp – Number of neurons in the current layer.

  • nbWeights – Total number of weights.

  • nbWeightsForInit – Number of weights for initialization.