Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ebadshabbir/naive_bayes_classification-gaussain-

A Python project that applies Naive Bayes classification to predict user purchases based on age and salary using the Social Network Ads dataset. The project includes data preprocessing, model training, prediction, and visualization of decision boundaries for both training and test datasets.
https://github.com/ebadshabbir/naive_bayes_classification-gaussain-

classification gaussian jupyter-notebook machine-learning matplotlib-pyplot naive-bayes-classifier numpy pandas python

Last synced: 17 days ago
JSON representation

A Python project that applies Naive Bayes classification to predict user purchases based on age and salary using the Social Network Ads dataset. The project includes data preprocessing, model training, prediction, and visualization of decision boundaries for both training and test datasets.

Awesome Lists containing this project

README

        

# Naive Bayes Classification on Social Network Ads Dataset

This project demonstrates a Naive Bayes classification model implemented in Python to predict user purchases based on their age and estimated salary, using data from the **Social Network Ads** dataset.

## Table of Contents

- [Project Overview](#project-overview)
- [Dataset](#dataset)
- [Installation](#installation)
- [Project Structure](#project-structure)
- [Usage](#usage)
- [Results](#results)
- [Contributing](#contributing)
- [License](#license)

## Project Overview

This project uses a Naive Bayes classifier to analyze and predict purchasing behavior. Key steps include data preprocessing, feature scaling, model training, and visualizing decision boundaries for both training and test sets.

## Dataset

The dataset used in this project is the **Social Network Ads** dataset, which includes information about user age, estimated salary, and whether or not they purchased a product. You can download the dataset from [Kaggle](https://www.kaggle.com) and place it in your project directory under the path: `input/social-network-adslogistic-regressionbinomial/Social Network Ads.csv`.

### Features:
- **Age**: Age of the user
- **Estimated Salary**: Salary estimation of the user

### Target:
- **Purchased**: Whether the user purchased the product (0 = No, 1 = Yes)

## Installation

1. Clone this repository:
```bash
git clone https://github.com/EbadShabbi/Naive_Bayes_classification-gaussain.git
cd Naive_Bayes_classification-gaussain