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.
/
βββ 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
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 |
- 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.
git clone https://github.com/TYehan/ML-Practiacal.git
- Open the repository in Visual Studio Code.
- Open the terminal in Visual Studio Code (Ctrl + `).
python -m venv .venv
- For Windows, activate with:
.venv\Scripts\activate
- For macOS/Linux, activate with:
source .venv/bin/activate
Install the dependencies before selecting the kernel to ensure that all necessary packages are available:
pip install -r requirements.txt
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
- Select the kernel with the name of the virtual environment you created.
- 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.
Open any .ipynb
file and execute the cells to view the output.