Skip to content

aymankhan28/CodeAlpha_IrisFlowerClassification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

CodeAlpha_IrisFlowerClassification

🌼 Iris Flower Classification

A simple machine learning project that predicts the species of Iris flowers using four measurements:

  • Sepal Length
  • Sepal Width
  • Petal Length
  • Petal Width

πŸ“Œ Project Overview

This project uses the Decision Tree Classifier to classify Iris flowers into:

  • Iris-setosa
  • Iris-versicolor
  • Iris-virginica

Dataset used: Kaggle Iris Dataset (CSV format).

πŸ› οΈ Technologies Used

  • Python
  • Pandas
  • Scikit-learn
  • NumPy

πŸš€ Steps Performed

  1. Loaded and cleaned the dataset
  2. Encoded species labels
  3. Split data into training & testing sets
  4. Trained a Decision Tree Classifier
  5. Evaluated accuracy on test data

πŸ“Š Model Performance

Prints:

  • Accuracy
  • Classification Report
  • Confusion Matrix

🧩 Code (Main Part)

model = DecisionTreeClassifier()
model.fit(X_train, y_train)
pred = model.predict(X_test)
print("Accuracy:", accuracy_score(y_test, pred))

πŸ“ How to Run

  1. Clone the repository
  2. Install required libraries
  3. Run the notebook or Python script

🌟 Result

A simple, clean ML model that accurately classifies Iris flower species.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors