Giter Club home page Giter Club logo

logistic-regression-from-scratch's Introduction

Logistic-Regression-From-Scratch

Implementation of logistic regression without any machine learning library like Sikit or Keras

This implementation is based on MNIST dataset, for other datasets few modifications might be required. There's no need to download the dataset seperately, code will download itself.

How to run

All the python code is present in well formatted google colab notebook in the repository, barely few clicks are needed to re run the whole algorithm from training to testing. Dataset will be download automatically by running the cell

Implementation includes

  • Data Preperation
  • Logistic Regression
    • line fit
    • sigmoid function
    • cost function
    • gradient decent
    • auto training stop if convergence differnece for two consecutive itterations is less than a given value
  • Accuracy of each cllasifier on respective binary dataset
  • Cost vs Itterations plot for all the classfiers
  • One vs All classifier's accuracy on original dataset

Code Walkthrough

I've made a walkthrough tutorial of this algorithm on youtube, do check it out too. I explain things in greater details in the video

Youtube link - https://youtu.be/oYVdzBjkiZ4

logistic-regression-from-scratch's People

Contributors

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