WLJS LogoWLJS Notebook

NetInitialize

NetInitialize[net] gives a net in which all uninitialized learnable parameters have been given initial values.

  • NetInitialize[net, All] reinitializes all learnable parameters.

Examples

NetInitialize[NetChain[{LinearLayer[10], Ramp, LinearLayer[5]}]]
NetInitialize[untrainedNet, All]
net = NetInitialize[NetChain[{5, Tanh, 3}], Method -> "Xavier"]

*See the official Wolfram Language Reference for more details.

On this page