Task: Demonstrate and Explain Negative R² Values in Scikit-learn Cross-Validation
Task: Demonstrate and Explain Negative R² Values in Scikit-learn Cross-Validation: a task in Terminal-Lego-15k (Harbor dataset). When using scikit-learn's cross val score with scoring='r2' , it is possible to obtain R² values less than -1. This occurs when the model performs worse than a…
The task
When using scikit-learn's `cross_val_score` with `scoring='r2'`, it is possible to obtain R² values less than -1. This occurs when the model performs worse than a horizontal line (predicting the mean of the target variable). This task requires you to demonstrate this behavior, explain why it happens, and show how to…
Part of PrimeIntellect/Terminal-Lego-15k.