Weight restriction during training neural network

3 次查看(过去 30 天)
Is it possible to set a maximum weight magnitude during training a neural network?
And how can i implement this if this is possible?

回答(1 个)

Srivardhan Gadila
Srivardhan Gadila 2021-3-28
You can create a dlnetwork and train the network using Custom Training Loop.
Within the Model Gradients Function access the weights of the network by using the Learnables property of the dlnetwork and set a maximum weight magnitude accordingly.

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by