Skip to content

Akingtom/Support-Vector-Machines-SVM-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Support Vector Machine (SVM) Classification for Social Network Ads

This project implements Support Vector Machine (SVM) classification to predict whether users will purchase a product based on their age and estimated salary from social network advertising data. πŸ“Š

πŸ“‹ Dataset The model uses the Social_Network_Ads.csv dataset containing:

πŸ†” User ID: Unique identifier for users

πŸ‘₯ Gender: User gender (Male/Female)

πŸŽ‚ Age: User age

πŸ’° EstimatedSalary: User's estimated salary

πŸ›’ Purchased: Target variable (0 = No purchase, 1 = Purchase)

Dataset Shape: 400 samples Γ— 5 features πŸ“

🎯 Features Used The model uses two primary features for prediction:

πŸŽ‚ Age: User's age πŸ’° EstimatedSalary: User's estimated annual salary

βš™οΈ Data Preprocessing

Feature Selection: Selected Age and EstimatedSalary as input features (X) and Purchased as target variable (y) 🎯

Train-Test Split: 75% training data (300 samples), 25% test data (100 samples) βœ‚οΈ

Feature Scaling: Applied StandardScaler to normalize features for optimal SVM performance πŸ“

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published