Learning Local Error Bars for Nonlinear Regression