Skip to content

Repository files navigation

Machine Learning Lab

Welcome to the Machine Learning Lab repository ! This repository contains all the labs and projects completed as part of my Machine Learning coursework. Each lab focuses on different machine learning concepts, algorithms, and techniques, implemented using Python and popular libraries like Scikit-Learn, Pandas, and Matplotlib.

Description


Repository Overview

This repository is organized into individual labs, each covering a specific topic in machine learning. Below is a list of the labs included in this repository:

  1. Lab 01: Python Basics and File Handling

    • Covers fundamental Python programming, file handling (JSON and CSV), and Jupyter Notebook basics.
  2. Lab 02: Exploratory Data Analysis (EDA)

    • Focuses on data exploration, visualization, and preprocessing using the Iris dataset.
  3. Lab 03: Linear Regression Using One feature

    • Implements linear regression for predicting house prices using one feature.
  4. Lab 04: Linear Regression with Multiple Variables

    • Implements linear regression for predicting house prices with Multiple Variables.
  5. Lab 05: Overfitting and Regularization in Linear Regression

    • Aplying different techniques to adress overfitting.
  6. Lab 06: Polynomial Regression

    • Creating new feature from existance features to reduce cost.
  7. Lab 07: Logistic Regression

    • Applying Logistic Regression on Categorical data to make prediction.

Labs and Projects

Lab 01: Python Basics and File Handling

  • Description: Introduction to Python programming, file handling (JSON and CSV), and Jupyter Notebook basics.
  • Notebook: Lab01.ipynb

Lab 02: Exploratory Data Analysis (EDA)

  • Description: Data exploration, visualization, and preprocessing using the Iris dataset.
  • Notebook: Lab02.ipynb

Lab 03: Linear Regression

  • Description: Implementation of linear regression for predicting house prices.
  • Notebook: Lab03.ipynb

Lab 04: Linear Regression with Multiple Variables

  • Description: Implements linear regression for predicting house prices with Multiple Variables.
  • Notebook: Lab04.ipynb

Lab 05: Overfitting and Regularization in Linear Regression

  • Description: Aplying different techniques to adress overfitting.
  • Notebook: Lab05.ipynb

Lab 06: Polynomial Regression

  • Description: Creating new feature from existance features to reduce cost.
  • Notebook: Lab06.ipynb

Lab 07: Logistic Regression

  • Description: Applying Logistic Regression on Categorical data to make prediction.
  • Notebook: Lab07.ipynb

Repository Structure

Machine-Learning-Lab-Computer-Engineering/
β”œβ”€β”€ Lab01/                        # Lab 01: Python Basics and File Handling
β”‚   β”œβ”€β”€ Lab01.ipynb               # Jupyter Notebook for Lab 01
β”‚   β”œβ”€β”€ items.json                # JSON file created in Lab 01
β”‚   β”œβ”€β”€ General.csv               # CSV file created in Lab 01
β”‚   └── README.md                 # Lab 01 README
β”œβ”€β”€ Lab02/                        # Lab 02: Exploratory Data Analysis (EDA)
β”‚   β”œβ”€β”€ Lab02.ipynb               # Jupyter Notebook for Lab 02
β”‚   └── README.md                 # Lab 02 README
β”œβ”€β”€ Lab03/                        # Lab 03: Linear Regression
β”‚   β”œβ”€β”€ Lab03.ipynb               # Jupyter Notebook for Lab 03
β”‚   └── README.md                 # Lab 03 README
β”œβ”€β”€ Lab04/                        # Lab 04: Classification Using Decision Trees
β”‚   β”œβ”€β”€ Lab04.ipynb               # Jupyter Notebook for Lab 04
β”‚   └── README.md                 # Lab 04 README
β”œβ”€β”€ Lab05/                        # Lab 05: Clustering with K-Means
β”‚   β”œβ”€β”€ Lab05.ipynb               # Jupyter Notebook for Lab 05
β”‚   └── README.md                 # Lab 05 README
β”œβ”€β”€ Lab06/                        # Lab 06: Polynomial Regression
β”‚   β”œβ”€β”€ Lab06.ipynb               # Jupyter Notebook for Lab 06
β”‚   └── README.md                 # Lab 06 README
β”œβ”€β”€ LICENSE                       # License file for the repository
└── README.md                     # This file
β”œβ”€β”€ Lab07/                        # Lab 06: Polynomial Regression
β”‚   β”œβ”€β”€ Lab07.ipynb               # Jupyter Notebook for Lab 07
β”‚   └── README.md                 # Lab 07 README
β”œβ”€β”€ LICENSE                       # License file for the repository
└── README.md   

How to Use This Repository

  1. Clone the Repository:
    git clone https://github.com/your-username/Machine-Learning-Lab-Computer-Engineering.git
  2. Navigate to a Lab Folder:
    cd Machine-Learning-Lab-Computer-Engineering/Lab01
  3. Open the Jupyter Notebook:
    jupyter notebook Lab01.ipynb
  4. Run the Code:
    • Execute the cells in the notebook to run the code and see the results.

Dependencies

To run the code in this repository, you need the following Python libraries:

  • Python 3.x
  • Jupyter Notebook
  • NumPy
  • Pandas
  • Matplotlib
  • Seaborn
  • Scikit-Learn

Install the dependencies using:

pip install numpy pandas matplotlib seaborn scikit-learn notebook

License

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


Acknowledgments

  • The labs in this repository are inspired by various open-source machine learning projects and tutorials.
  • Special thanks to the instructors Dr. Waqar Ahmad and peers who provided guidance and support during the coursework.

πŸ™Œ Thank You!

Thank you for visiting this project! If you found it useful, feel free to ⭐ the repository and contribute to future improvements. πŸš€

About

Machine Learning Lab Repository πŸ“šπŸ€– This repository contains Jupyter Notebooks for ML lab sessions, covering data preprocessing, EDA, supervised & unsupervised learning, and model evaluation using Python, Pandas, NumPy, Scikit-Learn, and Matplotlib. Perfect for students and practitioners to enhance ML skills! πŸš€

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages