{"id":25877651,"url":"https://github.com/spafic/hotelreservationpredictionsystem","last_synced_at":"2026-05-31T20:31:29.426Z","repository":{"id":278545514,"uuid":"935975028","full_name":"Spafic/HotelReservationPredictionSystem","owner":"Spafic","description":"Integrate machine learning into a Flask app to predict hotel reservation status.","archived":false,"fork":false,"pushed_at":"2025-02-20T13:32:56.000Z","size":27026,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T11:33:44.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spafic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-20T10:25:22.000Z","updated_at":"2025-02-20T13:32:59.000Z","dependencies_parsed_at":"2025-02-20T11:41:02.278Z","dependency_job_id":null,"html_url":"https://github.com/Spafic/HotelReservationPredictionSystem","commit_stats":null,"previous_names":["spafic/hotelreservationpredictionsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Spafic/HotelReservationPredictionSystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spafic%2FHotelReservationPredictionSystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spafic%2FHotelReservationPredictionSystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spafic%2FHotelReservationPredictionSystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spafic%2FHotelReservationPredictionSystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spafic","download_url":"https://codeload.github.com/Spafic/HotelReservationPredictionSystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spafic%2FHotelReservationPredictionSystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33748607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-02T11:27:56.511Z","updated_at":"2026-05-31T20:31:29.408Z","avatar_url":"https://github.com/Spafic.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotel Reservation Prediction System 🏨\n\nA sophisticated Flask web application leveraging machine learning to predict hotel reservation outcomes with high accuracy.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExbGIxdDNobXV2bW9zam1ydmt2aHV3a2ttOGx3MHQ1eDZjcG5rbzJjOCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/9yRMxLuRqyQ0x3jJXD/giphy.gif\" alt=\"Hotel Reservation Prediction\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    Why did the robot apply for a job at the hotel? Because it wanted to work with reservations!\n\u003c/p\u003e\n\n## 🌐 Live Demo\nExperience it live: [Hotel Reservation Predictor](https://hotelreservationpredictionsystem-production.up.railway.app/)\n\n## 📋 Overview\nThis intelligent system seamlessly integrates advanced machine learning algorithms with a Flask web application to predict hotel reservation outcomes (successful/cancelled) based on multiple parameters and historical patterns.\n\n## ✨ Key Features\n- **Smart Predictions**: Advanced ML models for accurate booking predictions\n- **Interactive UI**: Clean, responsive web interface\n- **Real-time Results**: Instant prediction feedback\n- **Cloud Deployment**: Hosted on Railway for high availability\n- **Secure Processing**: Safe handling of user inputs\n- **Data Visualization**: Clear presentation of results\n\n## 🚀 Getting Started\n1. Clone the repository\n2. Install dependencies: `pip install -r requirements.txt`\n3. Run locally: `python app.py`\n\n## 🧠 Machine Learning Models\nThe system utilizes a combination of five robust machine learning models:\n* **Random Forest**: Ensemble learning with multiple decision trees\n* **K-Nearest Neighbors (KNN)**: Pattern recognition based on proximity\n* **Logistic Regression**: Linear decision boundaries with probabilistic output\n* **XGBoost**: Advanced gradient boosting implementation\n* **Support Vector Machine (SVM)**: Optimal hyperplane separation\n\n## 📈 Performance Metrics\nOur model demonstrates robust performance across key metrics:\n\n### Classification Report for Random Forest\n```\n               precision    recall  f1-score   support\n    Cancelled     0.85      0.83      0.84      3565\nNot Cancelled     0.92      0.93      0.92      7310\n\n     accuracy                         0.90     10875\n    macro avg     0.88      0.88      0.88     10875\n weighted avg     0.89      0.90      0.90     10875\n```\n\n### Key Statistics for Random Forest\n- Overall Accuracy: 90%\n- Precision: 89%\n- Recall: 90%\n- F1-Score: 90%\n\nThe model shows particularly strong performance in predicting Not Cancelled reservations, with precision and recall both exceeding 92%.\n\n## 🤝 How to Contribute\nWe welcome contributions to enhance the Hotel Reservation Prediction System. To contribute, follow these steps:\n1. Fork the repository\n2. Create a new branch: `git checkout -b feature-branch`\n3. Make your changes and commit them: `git commit -m 'Add new feature'`\n4. Push to the branch: `git push origin feature-branch`\n5. Submit a pull request\n\nPlease ensure your code adheres to our coding standards and includes appropriate tests.\n\n## 📜 License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspafic%2Fhotelreservationpredictionsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspafic%2Fhotelreservationpredictionsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspafic%2Fhotelreservationpredictionsystem/lists"}