FlexNN 1
Fully connected neural network built from scratch with flexible n-layer design and multiple activations.
Loading...
Searching...
No Matches
FlexNN::Activations::ActivationParameters Struct Reference

Hyperparameters for activations. More...

#include <ActivationParameters.hpp>

Public Member Functions

constexpr bool operator== (const ActivationParameters &o) const noexcept
 
constexpr bool operator!= (const ActivationParameters &o) const noexcept
 

Public Attributes

double leakyAlpha = kDefaultLeakyAlpha
 slope for z<=0 when LeakyReLU
 

Detailed Description

Hyperparameters for activations.

Holds defaults for all activations. Only the field matching the active Activation is used; others are ignored. leakyAlpha is validated to be 0 < alpha < 1 when act==LeakyReLU (see Activation.cpp export check).

Member Function Documentation

◆ operator!=()

constexpr bool FlexNN::Activations::ActivationParameters::operator!= ( const ActivationParameters &  o) const
inlineconstexprnoexcept

◆ operator==()

constexpr bool FlexNN::Activations::ActivationParameters::operator== ( const ActivationParameters &  o) const
inlineconstexprnoexcept

Member Data Documentation

◆ leakyAlpha

double FlexNN::Activations::ActivationParameters::leakyAlpha = kDefaultLeakyAlpha

slope for z<=0 when LeakyReLU


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