struct
SushiAI::NN::InitPolicy
How a whole model is initialised.
- Declared in
include/SushiAI/nn/init.hpp
Public attributes
InitFamily family = InitFamily::KAIMINGWhich variance rule the weights follow.
Nonlinearity nonlinearity = Nonlinearity::RELUThe activation the hidden layers feed.
bool uniform = falseDraw uniformly rather than normally.
double negative_slope = 0.01The leaky-ReLU slope, when that is the nonlinearity.
bool zero_final_layer = trueZero the last weight and bias, so the initial loss is exactly ln(C).
std::uint64_t seed = 0x51757368'69414921ullThe Philox seed; the same seed gives the same weights.

