FlexNN 1
Fully connected neural network built from scratch with flexible n-layer design and multiple activations.
Loading...
Searching...
No Matches
ActivationParameters.hpp
Go to the documentation of this file.
1
16#pragma once
17
18namespace FlexNN::Activations {
19
21inline constexpr double kDefaultLeakyAlpha = 0.01;
22
32
33 constexpr bool operator==(const ActivationParameters& o) const noexcept {
34 return leakyAlpha == o.leakyAlpha;
35 }
36 constexpr bool operator!=(const ActivationParameters& o) const noexcept {
37 return !(*this == o);
38 }
39};
40
41} // namespace FlexNN::Activations
Definition Activation.hpp:31
constexpr double kDefaultLeakyAlpha
Default slope for LeakyReLU negative side (matches LLD_FLEXNN ยง4, v0.1).
Definition ActivationParameters.hpp:21
Hyperparameters for activations.
Definition ActivationParameters.hpp:30
double leakyAlpha
slope for z<=0 when LeakyReLU
Definition ActivationParameters.hpp:31
constexpr bool operator==(const ActivationParameters &o) const noexcept
Definition ActivationParameters.hpp:33
constexpr bool operator!=(const ActivationParameters &o) const noexcept
Definition ActivationParameters.hpp:36