This project predicts restaurant ratings in Bangalore using machine learning techniques.
This repository contains the code for predicting restaurant ratings in Bangalore using various machine learning models. The project involves data ingestion, preprocessing, model training, and deployment of a web application for user interaction.
The project relies on several Python libraries, all of which are listed in requirements.txt
. To install the dependencies, run:
pip install -r requirements.txt
pandas
: Data manipulation and analysis.numpy
: Numerical operations on arrays and matrices.seaborn
,matplotlib
: Data visualization libraries.scikit-learn
: Machine learning toolkit for data mining and analysis.xgboost
: Gradient boosting library for optimized distributed gradient boosting.flask
: Micro web framework for building web applications in Python.dill
: Serialization library for Python objects.streamlit
: Open-source app framework for machine learning and data science projects.
setup.py
: Project setup details.requirements.txt
: Dependency list for easy installation.source/logger.py
: Logging configuration for the project.source/exception.py
: Custom exception handling for error tracking..gitignore
: Specifies files and directories ignored by Git.README.md
: General project information and setup instructions.data/
: Directory for dataset storage.source/
: Source code directory.__init__.py
: Enables module usage.source/components/data_ingestion.py
: Manages data ingestion from various sources.source/components/data_transformation.py
: Handles data preprocessing and transformation.source/components/model_trainer.py
: Trains machine learning models and performs hyperparameter tuning.source/pipeline/prediction_pipeline.py
: Creates a web application usingapp.py
andutils.py
.source/utils.py
: Stores common functions used throughout the project.application.py
: Streamlit application for user interaction and prediction.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Lavishgangwani/iNeuron-RestaurantRatingPredictions.git
-
Navigate into the project directory:
cd iNeuron-RestaurantRatingPredictions
-
Create and activate a virtual environment:
python -m venv myenv myenv\Scripts\activate (Windows) source myenv/bin/activate (Mac/Linux)
-
Install dependencies:
pip install -r requirements.txt
-
Run the Streamlit application:
streamlit run app.py
-
Open a web browser and go to the local Streamlit URL provided after running the above command to use the application locally.
The project is deployed using Streamlit and can be accessed publicly via the following link: Zomato Bangalore Restaurants Prediction App.
Lavish Gangwani
Email: [email protected]