0% found this document useful (0 votes)
26 views4 pages

Project Title: Iris Flower Detection Using Decision Tree and KNN Classifier

Hb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views4 pages

Project Title: Iris Flower Detection Using Decision Tree and KNN Classifier

Hb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Project Title:

IRIS FlOWER DETECTION USING


DECISION TREE AND KNN
CLASSIFIER

PYP002:INTRODUCTION TO DIGITAL
TECHNOLOGIES
GROUP MEMBERS 5:Naif Alzahani(202436240),Muath
Alamari(202465040),Abdullah Alsowaih(202456360)
Introduction

The Iris dataset is a well-known dataset used in machine


learning, containing 150 samples of three species: Setosa,
Versicolor, and Virginica. Each sample has four features:
sepal length, sepal width, petal length, and petal width. The
goal is to classify the species using Decision Tree and k-NN
algorithms and compare their performance using recall and
f-measure.

Data Analysis

• Data: 150 samples, evenly distributed across 3 species.


• Features: Sepal and petal length/width.
• Visualizations:
• Histogram showing class distribution.
• Scatter plots (e.g., petal length vs. petal width) show
separability between species.
Algorithms

1. Decision Tree: Splits data using feature-based conditions


in a tree structure.
2. K-NN: Classifies samples based on the majority of nearest
neighbors.

Results

• Train-test split: 80% training, 20% testing.


• Performance:
Algorithm Decision Tree k-NN
Recall 97.7% 94.3%
F-measure 95.8% 93.2%
The Decision Tree performed slightly better.

Conclusion

Both algorithms classified the Iris species effectively, with


Decision Tree being slightly superior in recall and f-measure.

You might also like