Struct SoftplusOptions¶
Defined in File activation.h
Page Contents
Struct Documentation¶
-
struct SoftplusOptions¶
Options for the
Softplus
module.Example:
Softplus model(SoftplusOptions().beta(0.24).threshold(42.42));
Public Functions
-
inline auto beta(const double &new_beta) -> decltype(*this)¶
the
beta
value for the Softplus formulation. Default: 1
-
inline auto beta(double &&new_beta) -> decltype(*this)¶
-
inline const double &beta() const noexcept¶
-
inline double &beta() noexcept¶
-
inline auto threshold(const double &new_threshold) -> decltype(*this)¶
values above this revert to a linear function. Default: 20
-
inline auto threshold(double &&new_threshold) -> decltype(*this)¶
-
inline const double &threshold() const noexcept¶
-
inline double &threshold() noexcept¶
-
inline auto beta(const double &new_beta) -> decltype(*this)¶