Code Monkey home page Code Monkey logo

assignment-2's Introduction

Assignment 2 - Linear Regression

In this assignment, you'll be implementing a basic linear regression model. This model will be used to fit 2D data. The fits would be visualized. So the goal here is to find the curve that fits the data the best.

Working files:

You will be restricted to work with 'model.py' and 'Assignment1-Linear Regression.ipynb'. On running and working through the 'Assignment1-Linear Regression.ipynb', a file named 'hyper_param.json' would be generated.

Data:

Data is 2D, and is synthetically generated. You can go through 'utils.py' for details.

Actual Work:

  • Complete some functions related to linear regression (in models.py)
    • predicting values - forward
    • loss function - loss
    • gradient descent - backward
  • Tuning various parameters of the models in order to achieve the best results (in Assignment1-Linear Regression.ipynb)

Steps:

  1. Open 'Assignment1-Linear Regression.ipynb' via Jupyter Notebook.
  2. Work through the 'Assignment1-Linear Regression.ipynb' and follow the instructions therein.
  3. You need to submit the files: 'models.py', 'Assignment1-Linear Regression.ipynb' and 'hyper_param.json'.

NOTE: We will be testing your results with the help of 'model.py' and the hyperparameters in 'hyper_param.json'.

Hint File:

There is also a hint.pdf, that contains the mathematical workout for linear regression's forward (prediction) and backward (gradient descent) passes. Try to complete the assignment without looking at it, but do consult it if you get stuck.

All the best.

assignment-2's People

Contributors

shreyansh26 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.