You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using SimpleChains
sc =SimpleChain(
static(1),
TurboDense{true}(tanh, 128),
TurboDense{false}(identity, 1),
)
p = SimpleChains.init_params(sc);
G = SimpleChains.alloc_threaded_grad(sc);
Y =# some data...
λ =# some penalty...
sc_reg =FrontLastPenalty(SimpleChains.add_loss(sc, SquaredLoss(Y)),
L2Penalty(λ), L2Penalty(λ) )
Would it be possible to add documentation to the simple mlp example to show how to add the L1 and L2 penalties. Thanks!
The text was updated successfully, but these errors were encountered: