Skip to content

A hands-on collection of machine learning concepts, algorithms, and practical implementations. Designed to help learners and practitioners apply ML techniques with clarity and efficiency. πŸš€

Notifications You must be signed in to change notification settings

TYehan/Practical-ML-Guide

Repository files navigation

Machine Learning Core Concept Practicals

Practicals on Machine Learning to understand how to use each and every Core Principals and Concepts with real scenarios (examples) for each.

Each '.ipynb' file has a separated example practical which is associated(usage) of a Core concept.

This repository contains the practicals which have been done in the Machine Learning module in BSc. (Hons) in Software Engineering degree program at Kotelawala Defence University.

File Structure

/
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md
β”œβ”€β”€ Resources/
β”‚   └── titanic.csv (for titanic.ipynb | Download from Kaggle)
β”‚   └── image.png (for README.md)
└── Notebooks/
    β”œβ”€β”€ 1. titanic.ipynb
    β”œβ”€β”€ 2. housing_price.ipynb
    β”œβ”€β”€ 3. unsupervised_learning.ipynb
    β”œβ”€β”€ 4. principal_component_analysis.ipynb
    β”œβ”€β”€ 5. support_vector_machines.ipynb
    β”œβ”€β”€ 6. regularization.ipynb
    └── 7. neural_network.ipynb


Documentation

For a detailed explanation of the core machine learning concepts applied in each practical, please refer to project wiki:

Practical Documentation Link
Data Cleaning, Feature Engineering, and Classification (Titanic) Titanic Practical
Data Preprocessing and Regression Analysis (Housing Price Prediction) Housing Price Prediction
Unsupervised Learning via Clustering (Unsupervised Learning) Unsupervised Learning
Dimensionality Reduction and Eigenfaces (Principal Component Analysis) Principal Component Analysis
Support Vector Machines for Classification (Support Vector Machines) Support Vector Machines
Overcome overfitting using Regularization technique (Regularization) Regularization
Forward propagation and Back propagation and Predicting (Neural Networks) Neural Networks

Table of Contents


Prerequisites

  • Install Python (version 3.6 or later) and configure a virtual environment.
  • Install Visual Studio Code.
  • Install the Python extension for Visual Studio Code.
  • (Optionally) Install the Jupyter extension for enhanced notebook support.
  • Ensure ipykernel is installed for running notebooks in the selected virtual environment.

Initialization

Clone the Repository

git clone https://github.com/TYehan/ML-Practiacal.git
  • Open the repository in Visual Studio Code.
  • Open the terminal in Visual Studio Code (Ctrl + `).

Create and Activate the Virtual Environment

python -m venv .venv
  • For Windows, activate with:
.venv\Scripts\activate
  • For macOS/Linux, activate with:
source .venv/bin/activate

Install the Required Packages

Install the dependencies before selecting the kernel to ensure that all necessary packages are available:

pip install -r requirements.txt

Select the Kernel in Visual Studio Code

Since the IPython kernel is installed using the VS Code Jupyter Notebook extension, follow these steps:

  • Open any .ipynb file and click on the kernel selection in the top right corner of the notebook

alt text

  • Select the kernel with the name of the virtual environment you created.

If the kernel is not available, follow these steps:

  • Press Ctrl + Shift + P (Cmd + Shift + P on macOS) to open the Command Palette.
  • Type β€œPython: Select Interpreter” or β€œJupyter: Select Interpreter to start Jupyter server” and select the virtual environment you just created.

Run the Notebook Cells

Open any .ipynb file and execute the cells to view the output.


About

A hands-on collection of machine learning concepts, algorithms, and practical implementations. Designed to help learners and practitioners apply ML techniques with clarity and efficiency. πŸš€

Topics

Resources

Stars

Watchers

Forks