I have some inputs and outputs data for training a model using Flux package. These data by nature should be strictly positive.The training phase was done successfully however when I am trying to check it validity by using some test data, some of them were OK but others give negative values. How can I force the model to only outputted positive values.
Thanks and greeting.
Use as activation function of the last layer a function whose domain is in R+, most notably the
Thank you a lot for your prompt reply.