Most of us know that Logistic Regression is a Classification Algorithm! But why does it have the word 'regression' in it?

Let me explain ๐Ÿ‘‡๐Ÿ‘‡
๐ŸŒŸ Let's start by basics:-

Classification: It is a process of putting things/items into a category.
When you a fruit bowl. You can separate all the fruits by categorising them by name, type, or size.
Classification can be binary or multi-class.

Binary Classification is where there exist only two categories.
Multi-Class is where there exist more than two categories.

(See the image below) Binary Classification Example
Regression helps to find a relationship between one dependent and one or more than one independent variable.

In regression, the values are continuous in nature. Examples of continuous values are height, temperature, weight, etc.
The dependent variable is the one that we try to predict through regression. The independent variable(s) are the ones that we use to predict the dependent variable.

See the equation given below:- Regression Equation
Logistic Regression uses the formula that is used in Linear Regression.
The formula => y = m0x0 + m1x1 + .. + c

The difference is when this same formula is passed through the SIGMOID FUNCTION.
In logistic regression, the sigmoid function provides probabilities [0, 1]. Now, the output (y) is such that,

if y >= 0.5, then y = 1
if y <= 0.5, then y = 0 Logistic Regression, Sigmoid Function
Therefore, logistic regression uses the same formula as linear regression, but it is for the probability of a definite outcome.

In other words, Linear Regression gives continuous values, whereas Logistic Regression gives continuous values that are converted into 0 or 1.

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Sukriti Macker

Sukriti Macker Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Sukriti_Macker

12 Jul
Some of us were looking for a place to start off our Machine Learning and Data Science Journey.

I have some resources that can help you! ๐Ÿ˜

Check them out๐Ÿ‘‡๐Ÿ‘‡
1. 100 Days of Code by Ayon Roy
This repository is a gold mine for someone who is looking to begin ML. It explains to you how to go about every little topic.

Link: https://bit .ly/3wtWFwx
2. Kaggle Courses
Another phenomenal source to get started with Data Science and Machine Learning. It has topic-wise courses that can up-skill you.

Link: https://www.kaggle .com/learn
Read 10 tweets
9 Jul
Do you know about the SLICING technique that helps you work around strings in Python??

To handle sub-strings, you can use the SLICING method.
๐Ÿ‘‡๐Ÿ‘‡
Let's say we have a string.

a = "This is a string."

You can slice between the string!

๐Ÿ‘‰ a[start_index : end_index : stride]

Terms:-
start_index -> Takes an integer value; this is the index value (inclusive) from where you want to start slicing.
end_index -> Takes an integer value; this is the index value (exclusive) where you want the slicing to end.

stride -> Takes an integer value; indicates how many characters to skip after the first character is retrieved.

Note: The first character index is always 0.
Read 8 tweets
7 Jul
The topic of TRIGGERS is a level-up from creating queries and sub-queries in the handling databases.

A super-easy guide to triggers in SQL ๐Ÿงต๐Ÿ‘‡
โ˜‘๏ธ What is a trigger in the laymen (standard) language?

When someone pokes you or does something to agitate you, there is a high chance that you might get 'triggered' automatically! Right?
โ˜‘๏ธ Triggers in SQL

So, when we say TRIGGERS in SQL, it is simply a stored program that gets executed on its own when a triggering event occurs. Now, triggers are a part of PL/SQL.

PL/SQL is an extension of SQL where SQL queries are used and procedural statements/language.
Read 14 tweets
2 Jul
STRINGS - Handling them like a PRO! ๐Ÿ˜Ž

Some in-built functions that can make your task of working around strings a cakewalk!

Thread ๐Ÿงต
โ˜‘๏ธ What are STRINGS?
In Python, there is no character! Even a single character is considered a string. Strings are an immutable sequence.

Immutable -> Once strings are created, they cannot be changed.
So, you can't change the string, but the reference to it can be changed.
โ˜‘๏ธ .split()
a = "this is a string"
a.split()

O/P: ['this', 'is', 'a', 'string']

The string is split into each word in the sentence, considering the DELIMITER as space. The output of the split function is given in a LIST.
Read 9 tweets
29 Jun
Hey, here is a compiled version of how to proceed with SQL in a non-threatening way. :)

SQL is fun, easy to grasp and can kick start your programming journey. Learn something for fun and satiate your curiosity. ๐Ÿ“š

A Beginner-friendly guide to begin your SQL Journey! ๐Ÿงต๐Ÿ‘‡
Read 11 tweets
28 Jun
What else can I say about SQL to prove that it is crucial to know how to work around databases?

Having said that, SQL could be the one thing that you could begin your programming journey with. ๐Ÿคฉ

A Beginner-friendly version of SQL (UPDATE and DELETE)
๐Ÿงต๐Ÿ‘‡
๐ŸŒŸ Let's look at the table first!
The name of the table is -> faculties
We have columns as FacultyId, Name, Class, EmailId and Salary. "Faculties" Table.
โ˜‘๏ธ UPDATE
This clause is used to change values in a specified column.
You may or may not provide a condition along with the change you want to make.

๐Ÿ‘‰ Update without condition:-
UPDATE table_name SET column_name = column_value;
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(