Commentary on using R-squared as a mask for a nonlinear fit.

R-squared is not a good metric to evaluate a nonlinear fit. The
values are not constrained to be in [0,1].  In practice, we get
negative R-squared values when the fit is really bad.