How can I add constraint on Neural network

I use matlab to model ANN using some data. and some minmun target has zero value
ANN model and it's graph is continuous, so it has - region but it is impossble for output data to get - value
so i want to exclude thoes - region
How can i give my ANN such constraints?

1 Comment

actually, there is no change at activation function tanhx(-1<y<1);
but while i model neural network, can i put some constraint in neural network to get postive values of output?

Sign in to comment.

Categories

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

Asked:

on 21 Nov 2019

Answered:

on 14 Jan 2020

Community Treasure Hunt

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

Start Hunting!