Learning to build nonlinear/linear regression models for datasets using machine learning in Typescript (applied math)