Rendezvous97 / Polynomial_Estimator

This repo. contains the code to create polynomial estimators, additionally,

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polynomial_Estimator

In this repo. is the code to implement the following:

  1. Using a polynomial estimator of degree 1, 5, 10, and 50, I am plotting the function obtained with each of the polynomials overlaid on the data

  2. Plotting the MSE obtained on the training data and the test data as a function of the degree of the polynomial

  3. Plotting the MSE, the squared Bias, and the Variance as a function of the degree of the polynomial

  4. Creating a new estimator whose output is the average of the 4 estimators you created above (i.e. polynomials of degree 1, 5, 10, and 50). Plotting the function that is obtainned by overlaying on the data.

  5. Creating a 100 estimators and take the 3 best estimators from them (possibly in terms of MSE on the training data). Using the average of the 3 best estimators to create a new estimator.

All of this is explained in the python notebook. Thanks for reading!

About

This repo. contains the code to create polynomial estimators, additionally,


Languages

Language:Jupyter Notebook 100.0%