Skip to content

LucNIK/ml-iris-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ML Iris Classification


Description

This project demonstrates a complete Machine Learning workflow for classifying Iris flower species using a neural network implemented with TensorFlow/Keras.
The model is trained on the well-known Iris dataset, which includes measurements of sepal length, sepal width, petal length, and petal width.

The trained model achieves high accuracy on unseen test data and can be easily deployed for inference.


Features

  • Data loading and preprocessing using scikit-learn.
  • One-hot encoding of target labels for multi-class classification.
  • Train-test split with validation set.
  • Fully connected neural network with multiple hidden layers.
  • Model training with configurable epochs and batch size.
  • Model saved via TensorFlow/Keras, compatible with HDF5 and future Keras native formats.
  • Versioned model management using Git LFS for large files.

Author

Nikabou Gaou Nadjombe


Project Structure

image

Installation

  1. Clone the repository:
git clone https://github.com/LucNIK/ml-iris-classification.git
cd ml-iris-classification
  1. Create a virtual environment and activate it:
python -m venv venv
.\venv\Scripts\activate  # Windows
source venv/bin/activate # Linux/macOS
  1. Install dependencies:
pip install -r requirements.txt

Usage

Train the model

python scripts/train_model.py

.The trained model will be saved in models/iris_model.h5.

.Training metrics and accuracy will be displayed in the console.

Load the model for inference

from tensorflow.keras.models import load_model

model = load_model("models/iris_model.h5")
predictions = model.predict(new_data)

Screenshots

image

License

© 2025 Nikabou Gaou Nadjombe All rights reserved.

This project is licensed under the MIT License — see the LICENSE file for details.

Future Work

.Implement hyperparameter tuning for optimal model performance.

.Add interactive web app for real-time inference.

.Include visualizations for data exploration and model evaluation.

.Extend to other datasets or classification tasks.

About

ml-iris-classification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages