Coder Social home page Coder Social logo

planetdestroyyer / logistics-regression-from-scratch-using-python- Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 205 KB

Logistic Regression is a statistical method used for binary classification tasks, where the outcome variable (dependent variable) is categorical with two possible classes.

Jupyter Notebook 100.00%

logistics-regression-from-scratch-using-python-'s Introduction

Logistic Regression is a statistical method used for binary classification tasks, where the outcome variable (dependent variable) is categorical with two possible classes. Despite its name, logistic regression is a classification algorithm rather than a regression algorithm.

It works by modeling the probability that a given input belongs to a particular class. Logistic regression estimates the probability using the logistic function (also known as the sigmoid function), which maps any real-valued input to a value between 0 and 1.

The logistic function ( f(z) = \frac{1}{1 + e^{-z}} ) transforms the linear combination of input features into a probability score, where ( z ) is the linear combination of the input features and their corresponding coefficients. The coefficients are estimated using the maximum likelihood estimation method.

During training, logistic regression learns the optimal coefficients that best fit the training data and minimize the error between the predicted probabilities and the actual class labels. Once trained, the model can predict the probability of an input belonging to a particular class and make binary classification decisions based on a chosen threshold (usually 0.5).

Logistic regression is widely used in various fields, including healthcare, finance, marketing, and social sciences, due to its simplicity, interpretability, and effectiveness for binary classification tasks. Additionally, logistic regression can be extended to handle multiclass classification tasks through techniques such as one-vs-rest or multinomial logistic regression.

logistics-regression-from-scratch-using-python-'s People

Contributors

planetdestroyyer avatar

Stargazers

 avatar

Watchers

 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.