- Description
- Requirements
- Installation
- Directory Structure
- Usage
- Credits
Naive bayes classifier uses baye's theorem to classify samples with strong (naïve) independence assumptions between the features. Gaussian naive bayes is an extension of naive bayes classifier, which deals with points modelled with guassian distribution.
- Python 3
- Numpy
- Sci-kit Learn
- Pandas
- Matplotlib
- Jupyter Notebook
- Python
Step 1: Visit and download Python from https://www.python.org/downloads/ Step 2: Install and add Python to path
- Numpy
In command prompt
pip install numpy
- Sci-kit Learn
In command prompt
pip install sklearn
- Pandas
In command prompt
pip install pandas
- Matplotlib
In command prompt
pip install matplotlib
- Jupyter
In command prompt
pip install jupyterlab
For conda users
conda install -c conda-forge jupyterlab
To start Jupyter type
jupyter notebook
.
├── src # Source files
│ ├── naive_bayes.ipynb # Jupyter Notebook
├── LICENSE
└── README.md
The jupyter notebook (source code) is present in the 'src' folder. An example containing two gaussian distributions have been provided in the 'main' (inside the code).