plot_distance_correlation_heatmap

plot_distance_correlation_heatmap#

mlproject.plotting.distance_correlation.plot_distance_correlation_heatmap(mat, pvals, std_mat=None, title='Distance Correlation Heatmap', cmap='Blues', figsize=(12, 11), show_values=True, min_corr=None)[source]#

Plot a heatmap of distance correlations with standard deviation and significance annotations.

Parameters:
  • mat (pd.DataFrame) – Symmetric matrix of distance correlations.

  • pvals (pd.DataFrame) – Symmetric matrix of permutation-test p-values (same shape as mat).

  • std_mat (pd.DataFrame, optional) – Symmetric matrix of std of distance correlations (from CV).

  • title (str, optional) – Title of the plot.

  • cmap (str, optional) – Colormap for heatmap.

  • show_values (bool, optional) – If True, annotates each cell with correlation + significance stars.

  • min_corr (float, optional) – Minimum correlation value for color scale (if None, uses min of mat).

  • figsize (tuple)

Return type:

Figure