Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Naive Bayes Classifier From Scratch In Python3.

License

Notifications You must be signed in to change notification settings

MusaChowdhury/Naive-Bayes-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

The algorithm is implemented according to the book "Introduction to Data Mining (Second Edition)" by Pang-Ning Tan.

Steps To Use

View the attached dataset named "heart_disease.csv" for a better understanding.


  1. The target or dependent column name must end with the suffix "_T".
    For example, if in a dataset the target variable column name is "gender", then it will be changed to "gender_T".
    Changes should be made by the user to the dataset before using it with the script.
  2. Columns with categorical value must end with the suffix "_C".
  3. "file_name" should be updated inside the script according to your dataset after following the previous steps.
  4. After completing the previous steps, the script can be run as a typical Python 3 script, and it should output the accuracy of the given dataset.

Note

  • Dataset is collated from here.
  • Using attached dataset, the measured accuracy is 76.6.

About

Naive Bayes Classifier From Scratch In Python3.

Topics

Resources

License

Stars

Watchers

Forks

Languages