Skip to content

jaimedantas/least-squares-regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of the regularized least-squares algorithm in MATLAB

The regularized least-squares algorithm is used in regression for finding machine learning models. This implementation of the RLM uses a polynomial curve fitting problem to analyze the performance over the ERM.

Features

  • RLM analysis for w = 1, 2,..., 30 with different regularizers;
  • ERM analysis for w = 1, 2,..., 30;
  • k-fold cross validation over ERM;
  • Empirical loss comparison;

Dataset

An 1-imput dataset with 100 data points is used for training the models. This dataset was originally proposed by Dr. Ruth Urner on one of her assignments for ML.

Documentation

This implementation is part of these two articles published on the Towards Data Science blog. I encourage you to go over these two readings.

About

Regularized least-squares algorithm over the empirical risk minimization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages