A Nonlinear Approach To Learning From An Inconsistent Source (With Some Applications)