Our Cab Fare Prediction Web Application utilizes machine learning algorithms to predict cab fares based on various factors such as distance, time, and location. The application is built using frontend and backend technologies, including integration with Google Maps API for location services.
- Predict cab fares based on input parameters such as distance and time.
- Integration with Google Maps API for location services and route calculation.
- Responsive design for optimal viewing on all devices.
- User-friendly interface for inputting ride details.
- Integration with machine learning model trained on a dataset from Kaggle.
- Secure transactions and user authentication.
To run the Cab Fare Prediction Web Application locally, follow these steps:
-
Download the Code:
- Clone the repository using Git:
git clone https://github.com/mridul0703/Cab-Fare-Prediction-ML-Web-Deployment.git
- Alternatively, you can download the code as a ZIP file and extract it to your desired location.
- Clone the repository using Git:
-
Navigate to the Project Directory:
- Open a terminal or command prompt.
- Change directory to the project directory:
cd Cab-Fare-Prediction-ML-Web-Deployment
-
Install Required Libraries:
- Make sure you have Python installed on your machine.
- Use
pip
to install the required libraries from therequirements.txt
file:pip install -r requirements.txt
- This will install Flask, pandas, numpy, scikit-learn, gunicorn, requests, and any other dependencies specified in the file.
-
Start the Web Server:
- Run the Flask application using the following command:
python app.py
- This will start the web server.
- Run the Flask application using the following command:
-
Access the Application:
- Open your preferred web browser and go to http://localhost:5000.
-
Use the Application:
- Input ride details, view predicted fares, and utilize the map integration for real-time estimations.
Use the Cab Fare Prediction Web Application as follows:
- Input Ride Details: Enter details such as pickup and drop-off locations, date, and time.
- View Predicted Fare: Get the predicted fare for the ride based on the entered details.
- Map Integration: View the route on Google Maps and get real-time fare estimation.
- Secure Transactions: Ensure secure transactions with user authentication and encryption.
The Cab Fare Prediction Web Application utilizes various machine learning models for predicting cab fares based on input parameters such as distance, time, and location. The models employed in this project include:
- Linear Regression
- Decision Trees
- Random Forest
- Gradient Boosting
- Support Vector Machines (SVM)
- Neural Networks
- k-Nearest Neighbors (k-NN)
- XGBoost
- LightGBM
These models are trained on historical data to provide accurate fare predictions for different ride scenarios.
We welcome contributions to enhance the features and usability of our Cab Fare Prediction Web Application. To contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes and push to your fork.
- Submit a pull request to the main repository.
Please ensure your code follows our coding standards and includes relevant documentation.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or feedback, please contact us at email@example.com.
Feel free to adjust any details or add additional sections as needed!