This project is dedicated to developing a restaurant rating prediction algorithm, focusing on predicting restaurant ratings on the Yelp dataset using a variety of machine learning techniques. We employ methods including Singular Value Decomposition (SVD), Cosine Similarity, Alternating Least Squares (ALS), Stochastic Gradient Descent (SGD), and Random Forests to provide accurate rating predictions and enhance the performance of recommendation systems.
-
(Recommended) Install Anaconda
- Visit the official Anaconda website: www.anaconda.com, and obtain the installer from the download page.
- If in mainland China, due to network issues, it is recommended to download from the Tsinghua University Anaconda mirror site.
- After installation, follow this tutorial to configure the environment variables, ensuring Anaconda can be run from the command line.
-
Enter the Project Directory
- Use the command line interface to navigate to your project folder.
-
Create and Activate a Virtual Environment
-
To create a virtual environment, enter the following command in the command line:
conda create -n Yelp_env python=3.11
-
To activate the virtual environment:
conda activate Yelp_env
-
-
Install Project Dependencies
-
Install dependencies using pip. In the project directory, there is a
requirements.txt
file listing all required Python libraries, use the following command to install dependencies:pip install -r requirements.txt
-
If in mainland China, consider using the Tsinghua University PyPI mirror to speed up dependency installation:
-
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple