Skip to content

Implementing Gaussian Naive Bayes and KNN from scratch and evaluating their performances on heart dataset

License

Notifications You must be signed in to change notification settings

Ali-Jedari/KNN_vs_NaiveBayes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KNN vs Naive Bayes (on heart dataset)

Introduction

Data Mining Course Project

In this project, the aim is to implement KNN and Gaussian Naive Bayes from scratch and evaluate their accuracy-score on heart dataset.

Installation

First, you need to clone this repository to your local machine via the following command:

$ git clone https://github.com/Ali-Jedari/KNN_vs_NaiveBayes.git

In case you don't have git installed on your computer, you can download the zip file of this repository and then, extract it.

Requirements

This project is written in Python3 and requires Numpy, Pandas, and Scikit-learn libraries.

All the required libraries can be installed by running the following command:

$ pip install -r requirements.txt

If the command above results in an error, you can also try:

$ python -m pip install -r requirements.txt

Also, the dataset (.csv file) should be downloaded on your computer.

Dataset: heart dataset

Usage

Run:

$ cd KNN_vs_NaiveBayes
$ python main.py

About

Implementing Gaussian Naive Bayes and KNN from scratch and evaluating their performances on heart dataset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages