README in English
🔗 Project Repository: Machine Learning Predicts Laptop Prices
This project aims to predict laptop prices based on their technical specifications using machine learning models. The models used in this project are Random Forest and XGBoost to achieve accurate price predictions.
- Utilization of Random Forest and XGBoost models
- Exploratory Data Analysis (EDA)
- Data preprocessing (converting categorical features to numerical values)
- Model comparison and evaluation
📉 Model Performance Comparison:
Model | Train R² | Validation R² | Test R² | Test RMSE |
---|---|---|---|---|
Random Forest | 0.894 | 0.887 | 0.883 | 0.085 |
XGBoost | 0.905 | 0.899 | 0.896 | 0.0807 |
The results show that XGBoost performed better on the test data compared to Random Forest, indicating better generalization.
- Clone the repository:
git clone https://github.com/sorna-fast/Machine_learning_predicts_laptop_prices.git
- Install dependencies:
cd Machine_learning_predicts_laptop_prices pip install -r requirements.txt
- Run the notebook:
jupyter notebook
This project is released under the MIT license.
👋 We hope you find this project useful! 🚀
For inquiries, reach out to: Email:masudpythongit@gmail.com 🔗 GitHub: sorna-fast
README in Persian
🔗 مخزن پروژه: Machine Learning Predicts Laptop Prices
این پروژه برای پیشبینی قیمت لپتاپها بر اساس ویژگیهای فنی و مشخصات آنها توسط مدلهای یادگیری ماشین توسعه یافته است. در این پروژه از مدلهای Random Forest و XGBoost برای پیشبینی دقیق قیمت لپتاپها استفاده شده است.
- استفاده از مدلهای Random Forest و XGBoost
- تحلیل اکتشافی دادهها (EDA)
- پیشپردازش دادهها (تبدیل ویژگیهای دستهای به عددی)
- مقایسه و ارزیابی مدلها
📉 مقایسه دقت مدلها:
مدل | Train R² | Validation R² | Test R² | Test RMSE |
---|---|---|---|---|
Random Forest | 0.894 | 0.887 | 0.883 | 0.085 |
XGBoost | 0.905 | 0.899 | 0.896 | 0.0807 |
نتایج نشان میدهد که XGBoost در دادههای آزمون بهتر از Random Forest عمل کرده است** که نشاندهنده عملکرد بهتر در تعمیم است.
- کلون کردن مخزن:
git clone https://github.com/sorna-fast/Machine_learning_predicts_laptop_prices.git
- نصب وابستگیها:
cd Machine_learning_predicts_laptop_prices pip install -r requirements.txt
- اجرای نوتبوک:
jupyter notebook
این پروژه تحت لایسنس MIT منتشر شده است.
👋 امیدواریم این پروژه برای شما مفید باشد! 🚀
Email:masudpythongit@gmail.com
🔗 حساب گیتهاب: sorna-fast