Evaluate a regression model
Evaluate regression model performance
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Write Python code to fully evaluate a regression model on test set y_test vs y_pred. Report: MAE, RMSE, MAPE, R², adjusted R², and maximum error. Plot: actual vs predicted scatter, residual plot, residual distribution, and Q-Q plot. Identify systematic bias and heteroscedasticity patterns.
Personalize this prompt with Léa
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Ajoutez un test de Breusch-Pagan (statsmodels.stats.diagnostic.het_breuschpagan) pour quantifier l'hétéroscédasticité et un test de Shapiro-Wilk (scipy.stats.shapiro) sur les résidus pour vérifier leur normalité au-delà du Q-Q plot. Cela transforme l'analyse visuelle en diagnostic statistique robuste.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.