|
FlexNN 1
Fully connected neural network built from scratch with flexible n-layer design and multiple activations.
|
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 | |
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).
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
| double FlexNN::Activations::ActivationParameters::leakyAlpha = kDefaultLeakyAlpha |
slope for z<=0 when LeakyReLU