ShreyanshIITK20 / Regression-models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regression models

Motive

This repository is created as a part of recuitment task for institue's programming club. It mainly focusses on basic understanding of machine learning and implementation of regression algorithm from scratch.

Task

To train regression models (linear and polynomial) on the basis of non-standard loss functions

  • | y - yp |3
  • | y - yp |
  • | y - yp |7
  • | y - yp |4

    Linear regression

    Original parameters for dataset :

  • Slope : 2.34
  • Intercept : 1.67
  • Gaussian noise included

    1. Optimization by cubic loss function

  • Slope : 2.36
  • Intercept : 0.05

    screenshot1

    2. Optimization by linear loss function

  • Slope : 2.37
  • Intercept : 0.03

    screenshot1

    Polynomial regression

    Original parameters for dataset :

  • Coefficient of x2 : 2
  • Coefficient of x : 3
  • Constant term : 8
  • Gaussian noise included

    1. Optimization by 4th degree loss function

  • Coefficient of x2 : 1.97
  • Coefficient of x : 0.02
  • Constant term : 0.0002

    screenshot1

    2. Optimization by 7th degree loss function

  • Coefficient of x2 : 2.13
  • Coefficient of x : 0.02
  • Constant term : 0.0002

    screenshot1

  • About


    Languages

    Language:Jupyter Notebook 100.0%