0% found this document useful (0 votes)
52 views3 pages

Iris Classification Report

Uploaded by

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

Iris Classification Report

Uploaded by

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

Iris Dataset Classification Report

Objective

This report aims to classify iris species based on four features: sepal length, sepal width, petal

length, and petal width. The analysis will focus on prediction accuracy and the interpretability of

each classifier model.

Dataset Description

The Iris dataset contains 150 observations of iris flowers across three species: Setosa, Versicolor,

and Virginica. The dataset includes four numerical features (sepal length, sepal width, petal length,

petal width) and a target variable for the species classification.

Model Training and Evaluation

Three classifier models were trained on the dataset: Logistic Regression, Random Forest, and

Support Vector Machine (SVM). Each model was evaluated on a test set, with accuracy, precision,

recall, and F1-score used as performance metrics.

Model Performance

Logistic Regression:

- Accuracy: 100.00%

- Classification Report:

precision recall f1-score support

setosa 1.00 1.00 1.00 19

versicolor 1.00 1.00 1.00 13

virginica 1.00 1.00 1.00 13

accuracy 1.00 45

macro avg 1.00 1.00 1.00 45

weighted avg 1.00 1.00 1.00 45


Random Forest:

- Accuracy: 100.00%

- Classification Report:

precision recall f1-score support

setosa 1.00 1.00 1.00 19

versicolor 1.00 1.00 1.00 13

virginica 1.00 1.00 1.00 13

accuracy 1.00 45

macro avg 1.00 1.00 1.00 45

weighted avg 1.00 1.00 1.00 45

SVM:

- Accuracy: 100.00%

- Classification Report:

precision recall f1-score support

setosa 1.00 1.00 1.00 19

versicolor 1.00 1.00 1.00 13

virginica 1.00 1.00 1.00 13

accuracy 1.00 45

macro avg 1.00 1.00 1.00 45

weighted avg 1.00 1.00 1.00 45


Model Recommendation

Given the 100% accuracy across all models, any of these models could serve as the final classifier.

However, the Random Forest classifier is recommended for its balance between accuracy and

interpretability, as it provides feature importance insights.

Key Findings and Next Steps

All three models achieved perfect accuracy on the test set, indicating that the Iris dataset is linearly

separable and well-suited for classification. Future analyses could explore additional datasets with

more complex structures or apply feature selection techniques to improve model simplicity and

interpretability.

You might also like