Regression for sets of polynomial equations