plot_residuals
Diagnose regression model quality by plotting residuals against predicted values and showing a residual histogram to reveal patterns or non-normality.
Instructions
Residuals vs predicted values plot for regression models. Use to diagnose model quality: random scatter = good, patterns = systematic error. Also shows a histogram of residuals to check normality. Example: plot_residuals(model_name="linear_regression_data_train", test_df_name="data_test")
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "plot_residuals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | No | ||
| model_name | No | ||
| test_df_name | No | ||
| target_column | No |