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
For a detailed explanation of the core machine learning concepts applied in each practical, please refer to project wiki:
Practical | Documentation Link |
---|---|
Core Machine Learning Concepts in Data Cleaning, Feature Engineering, and Classification (Titanic) | Titanic Practical |
Core Machine Learning Concepts in Data Preprocessing and Regression Analysis (Housing Price Prediction) | Housing Price Prediction |
Core Machine Learning Concepts in Unsupervised Learning via Clustering (Unsupervised Learning) | Unsupervised Learning |
Core Machine Learning Concepts in Dimensionality Reduction and Eigenfaces (Principal Component Analysis) | Principal Component Analysis |
Core Machine Learning Concepts in Support Vector Machines for Classification (Support Vector Machines) | Support Vector Machines |
- 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.