Submitted by rapp17 t3_zspe6r in MachineLearning
I have a data set with three columns and want to predict a numerical value. The data set is divided into groups such that each group is 50 rows. There is a necessary constraint where the sum of the predicted value in each group of 50 rows must equal the value in one column for that group. What model can I use for this, if any?
www3cam t1_j1bxx29 wrote
One hack that I often use for this problem is to use any gradient based machine learning approach and just add a Lagrangian to the cost function. As the function converges gradually increase the langrangian until the value holds up to your tolerance for error. If your system is some sort of convex program or something nice, looking for a constrained program that solves your problem formulation may be a good bet.