How to constrain layer weights to be constant or of a specified sign in a neural network

2 views (last 30 days)
Using neural network tool
How to setup a subset of the layer weights to a specified value while preventing their learning using net.layerWeights{i,j}.learn=false.
How to constrain the layer weights to have a specified sign while training with learning, using net.layerWeights{i,j}.learn=true?

Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!