Skip to content

Decision Tree Classifier for Social Network Ads A Python implementation of a Decision Tree Classifier to predict user purchasing behavior based on age and estimated salary. Includes feature scaling, model evaluation (confusion matrix and accuracy), and visualizations of decision boundaries for both training and test sets.

Notifications You must be signed in to change notification settings

EbadShabbir/Decision_Tree_Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Decision Tree Classifier for Social Network Ads

This repository implements a Decision Tree Classifier to predict user behavior based on age and estimated salary using the Social Network Ads dataset. The results are visualized for both the training and test sets.


Table of Contents


About the Project

The objective is to classify users as potential buyers or not based on their age and estimated salary using a Decision Tree Classifier. The dataset is split into training and test sets, scaled, and then passed through the model. Visualizations are generated to interpret the classifier's decision boundaries.


Technologies Used

This project uses the following technologies and libraries:

  • Python: Programming language
  • NumPy: Numerical computations
  • Pandas: Data manipulation and analysis
  • Matplotlib: Data visualization
  • Scikit-learn: Machine learning algorithms

Setup

Prerequisites

Ensure Python is installed. Recommended version: Python 3.8+.

Install the required libraries:

pip install numpy pandas matplotlib scikit-learn

About

Decision Tree Classifier for Social Network Ads A Python implementation of a Decision Tree Classifier to predict user purchasing behavior based on age and estimated salary. Includes feature scaling, model evaluation (confusion matrix and accuracy), and visualizations of decision boundaries for both training and test sets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published