I work with R software, and I train a model with NeuralNet to predict several outputs.
My training data : it's a matrix with these column a,b,c,d,e,f,g,h.
(f,g,h) are my variables i want to predict.
Here is the formula of model : f+g+h ~ a+b+c+d+e
f,g and h are part of a composition having a sum of 1 or 100 in training data. But when my model predicts my multioutputs it is not a sum of 1.
My question is : how to impose on the model that my Multioutputs are a sum of 1 or 100 ? Is there a constraint function with neuralNet ?
Thank you very much for your help. :)