Fork me on GitHub

Linear Regression, overfitting, and regularization

Providing controls to generate a sample data set with a polynomial, and then fit a polynomial to the data set using (non-regularized) least squares, ridge regression, or Lasso regression.


Normalize features

Generating Polynomial Coefficients

  • Actual :
  • Computed :

Training Data

(Error = {{ }})

Testing Data

(Error = {{ errors.testing }})