plot_correlation_matrix
Generate a correlation heatmap to detect multicollinearity among numeric features and relationships with the target variable.
Instructions
Correlation heatmap with lower triangle mask and annotations. Methods: pearson, spearman, kendall. Empty columns = all numeric. Run after all numeric features are prepared. Identifies multicollinearity (features correlated with each other) and features correlated with the target. Example: plot_correlation_matrix(method="pearson")
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_correlation_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | pearson | |
| columns | No | ||
| df_name | No | ||
| save_path | No |