π€ 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 π