Skip to content

A Python implementation of Naive Bayes algorithm for Iris flower classification. Features include cross-validation, data preprocessing, and prediction capabilities. Built from scratch without ML libraries, achieving ~95% accuracy on the classic Iris dataset.

Notifications You must be signed in to change notification settings

Brazer27/Iris-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Iris Classification using Naive Bayes

A Python implementation of the Naive Bayes algorithm for classifying Iris flowers. This project provides two implementations:

  • A comprehensive version with cross-validation and visualization
  • A simplified version focused on making predictions

Features

  • Gaussian Naive Bayes implementation from scratch
  • K-fold cross-validation
  • Performance visualization using box plots
  • Data preprocessing utilities
  • Simple interface for making predictions on new data

Dataset: The classic Iris dataset containing 150 samples with 4 features (sepal length, sepal width, petal length, petal width) and 3 classes of Iris flowers.

Average accuracy: ~95% using 5-fold cross-validation

About

A Python implementation of Naive Bayes algorithm for Iris flower classification. Features include cross-validation, data preprocessing, and prediction capabilities. Built from scratch without ML libraries, achieving ~95% accuracy on the classic Iris dataset.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages