wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Classification Algorithms (Decision trees, SVM, Logistic regreession)

profile
37_Priyanka Bist
Sep 19, 2025
2 Likes
0 Discussions
1 Reads

What are Classification Algorithms?

Classification is a method in Data Science where we predict which category or group a data point belongs to. For example, predicting whether an email is spam or not, or whether a patient has a disease

1. Decision Trees

How it works:

  1. Works like a question-answer game.
  2. It asks questions like “Is age > 30?” and splits data into branches.
  3. The last leaf gives the final class (answer).

Use cases:

  1. Predict if a customer will leave
  2. Medical diagnosis
  3. Loan/credit risk check

Pros (good points):

  1. Very easy to understand
  2. Works with numbers and text
  3. Less data cleaning needed

Cons (bad points):

  1. Can overfit (memorize training data too much)
  2. Small changes in data can make a very different tree


2.Support Vector Machines (SVM)

How it works:

  1. Imagine you have red and blue dots on paper.
  2. SVM draws a line (boundary) to separate them with maximum distance between groups.
  3. This line is called a hyperplane.

Use cases:

  1. Image recognition
  2. Text categorization (like spam detection)
  3. Bioinformatics (like classifying proteins)

Pros (good points):

  1. Works well when there are many features
  2. Memory efficient (uses less space)

Cons (bad points):

  1. Not good for very large datasets
  2. Not good with noisy or overlapping data

3.Logistic Regression

How it works:

  1. Gives a probability between 0 and 1 using an S-shaped curve (sigmoid)
  2. If probability is > 0.5 → class A, else class B

Use cases:

  1. Spam detection
  2. Disease prediction
  3. Will a customer buy a product or not

Pros (good points):

  1. Simple, fast, and easy
  2. Easy to explain

Cons (bad points):

  1. Works best when data is linear
  2. Sensitive to outliers (unusual data points)



Comments ()


Sign in

Read Next

INTERRUPTS

Blog banner

Memory management

Blog banner

Deadlocks

Blog banner

Virus

Blog banner

A Deep Dive

Blog banner

File Systems in OS.

Blog banner

Virtual machine.

Blog banner

Modern Operating System

Blog banner

How to Encrypt and Decrypt Using GNU PGP

Blog banner

How Cyber Forensics use in AI

Blog banner

Soak knowledge and level up your intellectual potential!!!

Blog banner

Can ChatGPT Answer All My Questions About Life?

Blog banner

VIRTUAL MACHINES

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

Evolution of Operating System

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

Instagram

Blog banner

Memory input output management

Blog banner

Deadlock and starvation in operating system

Blog banner

R Programming

Blog banner

Deadlock in operating system

Blog banner

DISK SCHEDULING

Blog banner

Operating system and overviews

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

Facebook Shut Down an AI Program!!! Facebook AI bots became Terminators???

Blog banner

Deadlock and Starvation

Blog banner

Deadlock and Starvation in an Operating System

Blog banner

Blockchain uses and use cases

Blog banner

Multicore and Multithreading

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

Multiple processor scheduling

Blog banner

Europe Through My Lens

Blog banner

Why Should You Schedule Tweets on Twitter?

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

Dekkers Algorithm

Blog banner

Jira Software

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

Computer security techniques

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

Bulk E-mail software

Blog banner

A small world of Sockets

Blog banner