This repository consists of 4 labs that focus on addressing various machine learning problems and explore different types of models, including linear regression, K-means clustering, principal component analysis (PCA), and convolutional neural networks (CNN) with Pytorch. Additionally, the 5th folder consist of a project that analyze and predict crime patterns based on collected data. The challenge at hand is approached as a regression problem, where the target variable is the number of crimes reported ("crimes").
- In your terminal, clone the repository by typing
git clone https://github.com/CheeChoong14/ML-Projects-Portfolio.git- After that, type the below command. This directory is where your virtual environment and its dependencies are installed.
python -m venv .venv- In your terminal, activate your environment with one of the following commands, depending on your operating system.
# Windows command prompt
.venv\Scripts\activate.bat
# Windows PowerShell
.venv\Scripts\Activate.ps1
# macOS and Linux
source .venv/bin/activate- Install the required packages by running the following command in your terminal.
pip install -r requirements.txt- To run the Jupyter Notebook locally, type the following command in your terminal.
jupyter notebookAlternatively, you can run Jupyter Lab by typing the following command in your terminal.
jupyter lab