Coder Social home page Coder Social logo

alireza-es / ml-iris-flowers Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 87 KB

This repository contains a machine learning project focused on the classic Iris flowers dataset. The dataset comprises measurements of sepal and petal characteristics for three different species of iris flowers: Setosa, Versicolor, and Virginica.

Jupyter Notebook 100.00%

ml-iris-flowers's Introduction

Iris Flowers Machine Learning Assignment

Open In Colab

Overview

This repository contains my solution for the "Iris Flowers Machine Learning Assignment," which is part of the ENSF 619 - Special Topics course. The assignment focuses on refreshing fundamental machine learning coding skills by working with the classic Iris Flowers dataset. It covers data preparation, exploration, preprocessing, model building, evaluation, and optional hyperparameter tuning.

Repository Structure

The repository is organized as follows:

  • code/: Contains Python code for the assignment.
    • notebooks/: Jupyter Notebook files (e.g., assignment_1.ipynb)
  • data/: Stores the Iris dataset CSV file (e.g., iris_dataset.csv).
  • results/: Reserved for output files or results generated during analysis.
  • environment/: Includes a requirements.txt file listing required Python packages.
  • images/: (Optional) Images or plots generated in the analysis.
  • models/: (Optional) Directory for storing trained machine learning models.

Getting Started

You can directly open the notebook in Google Colab or follow these steps to run the code in your local machine:

  1. Set up your Python development environment with the required libraries (NumPy, Pandas, Scikit-learn).
  2. Clone or download this repository.
  3. Install the requirements using pip install -r environment/requirements.txt. You may need to run pip3 install -r environment/requirements.txt
  4. Navigate to the code/ directory.
  5. Open and run the Jupyter Notebook assignment_1.ipynb in the notebooks' folder.

Summary

In this sample, I tackled the task of machine learning coding skills refresher. Here’s a summary of the key points and findings:

  1. Data Exploration: I started by exploring the Iris dataset, examining the data distribution and visualizing it using histograms and scatter plots. This step provided valuable insights into the dataset.
  2. Data Preprocessing: I performed essential data preprocessing tasks such as handling missing values, encoding categorical variables, and splitting the data into training and testing sets. These steps ensured that the data was ready for model building.
  3. Model Building: I selected the K-Nearest Neighbors (K-NN) algorithm for classification and built a basic model. This choice aligned well with the nature of the Iris dataset.
  4. Model Training and Evaluation: I trained the K-NN model on the training data and evaluated its performance on the testing data. Metrics such as accuracy, precision, recall, and the confusion matrix were used to assess the model’s performance.
  5. Hyperparameter Tuning (Optional): To fine-tune the model’s performance, I conducted a grid search over different values of n_neighbors for the K-NN algorithm. This step demonstrated the impact of hyperparameter tuning on model performance.

ml-iris-flowers's People

Contributors

alireza-es avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.