Author: Nice Chetiwal
This project focuses on model validation, overfitting control, cross-validation, and hyperparameter tuning using the California Housing Dataset.
The goal is to compare multiple regression models and select the best final model based on RMSE, R2 score, and cross-validation performance.
- Dataset: California Housing Dataset
- Target variable: Median house value
- Problem type: Regression
- Linear Regression
- Ridge Regression
- Uncontrolled Decision Tree Regressor
- Tuned Decision Tree Regressor
- Train-test split
- Overfitting detection
- Cross-validation
- GridSearchCV
- Hyperparameter tuning
- RMSE evaluation
- R2 score evaluation
- Final model selection
The final selected model is the Tuned Decision Tree Regressor.
Best parameters:
max_depth = 12min_samples_leaf = 10min_samples_split = 2
Performance:
- Test RMSE:
0.6026 - Test R2 Score:
0.7229 - Cross-validation RMSE:
0.6098
Nice_Chetiwal_AI_ML_Task_3.ipynb- Main Jupyter NotebookNice_Chetiwal_AI_ML_Task_3_Report.pdf- Project report
The tuned Decision Tree performed better than the linear models and the uncontrolled Decision Tree. Hyperparameter tuning helped reduce overfitting and improved model generalization.