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")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | pearson | |
| columns | No | ||
| df_name | No | ||
| save_path | No |