This project aims to predict the price of a car based on its technical specifications using Multiple Linear Regression. The model was trained on the [Car Price Assignment Dataset], and evaluated using a scatter plot comparing predicted vs. actual prices.
- Python
- Pandas, NumPy
- Matplotlib, Seaborn
- Scikit-Learn
- File:
CarPrice_Assignment.csv
- Features used for training include:
wheelbase
,carlength
,carwidth
,carheight
,curbweight
enginesize
,boreratio
,stroke
,compressionratio
,horsepower
peakrpm
,citympg
,highwaympg
- The model was trained using 80% of the data and tested on 20%
- Model score (R²): displayed in terminal output
- Prediction example: Estimating the price of a car with custom values
- Final visualization: actual vs predicted prices saved as
img.png
- Install dependencies:
pip install -r requirements.txt
- Run the Jupyter Notebook in
notebooks/linear_regression_car_price.ipynb
- Ensure dataset is in
data/
and output image saved inimages/
يهدف هذا المشروع إلى التنبؤ بسعر السيارة بناءً على المواصفات الفنية باستخدام الانحدار الخطي المتعدد. تم تدريب النموذج على بيانات حقيقية وتقييمه عبر رسم السعر الحقيقي مقابل السعر المتوقع.
- لغة Python
- مكتبات: Pandas, NumPy, Matplotlib, Seaborn, Scikit-Learn
- الملف:
CarPrice_Assignment.csv
- الأعمدة المستخدمة في التدريب:
wheelbase
,carlength
,carwidth
,carheight
,curbweight
enginesize
,boreratio
,stroke
,compressionratio
,horsepower
peakrpm
,citympg
,highwaympg
- تم تقسيم البيانات: 80% للتدريب و 20% للاختبار
- عرض دقة النموذج في الإخراج
- تنفيذ تنبؤ على بيانات سيارة جديدة
- تم حفظ الرسم النهائي في
images/img.png
- تثبيت المكتبات:
pip install -r requirements.txt
- تشغيل ملف Jupyter الموجود في
notebooks/linear_regression_car_price.ipynb
- التأكد من وجود البيانات في
data/
وملف الصورة فيimages/
📌 هذا المشروع جزء من تدريبات الذكاء الاصطناعي باستخدام Python.