Skip to content

The repo contains two Implementation, first Implement linear regression from scratch and secondly designed the linear regression by using PyTorch

Notifications You must be signed in to change notification settings

aftabanjum4451/Linear-Regression-From-Scratch-Python

Repository files navigation

Linear Regression

linear regression is a linear approach to modelling the relationship between a scalar response and one or more explanatory variables (also known as dependent and independent variables).

Dataset

The NASA data set comprises different size NACA 0012 airfoils at various wind tunnel speeds and angles of attack. The span of the airfoil and the observer position were the same in all of the experiments.

Data set Attribute Information:

This problem has the following inputs:

  1. Frequency, in Hertzs.
  2. Angle of attack, in degrees.
  3. Chord length, in meters.
  4. Free-stream velocity, in meters per second.
  5. Suction side displacement thickness, in meters.

The only output is:

  1. Scaled sound pressure level, in decibels.

(https://archive.ics.uci.edu/ml/datasets/Airfoil+Self-Noise#)

Project Highlight

  • Load the data
  • Data Cleaning
  • Model Design
    • Intilized the weights and biase vector
    • Model function
    • Loss function
    • Compute gradients
    • Adjust weights and biases to reduce the loss
    • Train the model using gradient descent
  • Evaluate the Model performance base on RMSE

Model

  • Designed the Linear Regression From scratch
  • Pythorch Bulid in Linear Regression

How to Run The Code

All the code and comments are listed in above jupyter notbooks for your understanding.

About

The repo contains two Implementation, first Implement linear regression from scratch and secondly designed the linear regression by using PyTorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages