Problem 2: Demonstrate Overfitting
Easypython
Problem Description
Write a Python program that trains an unrestricted Decision Tree (no max_depth limit) on the same dataset, and prints both training and test MSE to demonstrate overfitting.
Input
The same dataset as Problem 1.
Output
Training MSE (very low) and test MSE (noticeably higher).
Constraints
- Use the same dataset as Problem 1 for direct comparison.
Example Input
text(The same dataset as Problem 1)
Example Output
textTrain MSE: 0.001 Test MSE: 0.15
Concepts Covered
DecisionTreeRegressor, overfitting diagnosis.