Giter Site home page Giter Site logo

tearitco / linear_regression_using_gd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sanjeev309/linear_regression_using_gd

0.0 0.0 0.0 20 KB

Linear regression using gradient descent from scratch in C with GNUplot

License: MIT License

C 93.83% Makefile 6.17%

linear_regression_using_gd's Introduction

Linear Regression using Gradient Descent in C

A from scratch implementation of Linear Regression algorithm with 2 fitting parameters. The parameters are optimised using Gradient Descent algorithm. The implementation also utilises GNUplot to plot the data and cost over epochs.

Getting Started

  • Clone the repo into your folder

    git clone https://github.com/sanjeev309/linear_regression_using_GD

  • Experiment with values of EPOCH, LEARNING_RATE and default theta values in main.cpp

  • Execute make command to compile into an executable

    make compile

  • Run the executable

    ./linear_reg

  • Clean for a rebuild

    make clean

Prerequisites

*nix OS, gcc compiler, basic C programming and curiosity.

Breakout

Gradient Descent Algorithm for LR

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • This project dates back to 3+ years when I just began with Andrew Ng's ML course in MATLAB. A lot of gratitude for him and the initiative.

linear_regression_using_gd's People

Contributors

sanjeev309 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.