Skip to content

Naive Bayes classifier for Iris dataset with custom probability estimation. Built using pandas and numpy. No ML frameworks used.

Notifications You must be signed in to change notification settings

SheathedSharp/naive-bayes-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Iris Naive Bayes

Naive Bayes classifier for Iris dataset with custom probability estimation. Built using pandas and numpy.

Overview

This project implements a Naive Bayes classifier for the Iris flower dataset. The probability estimation is custom-built without using scikit-learn or other ML libraries.

Features

  • Custom probability estimation function
  • Data preprocessing and splitting (70% train, 30% test)
  • Bayesian classification implementation
  • Model evaluation metrics

Requirements

  • python
  • pandas==2.0.0
  • numpy==1.21.0
  • matplotlib==3.5.0

Result

Training accuracy: ~78-92% Test accuracy: ~75-90%

About

Naive Bayes classifier for Iris dataset with custom probability estimation. Built using pandas and numpy. No ML frameworks used.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published