interactive_correlation_matrix

interactive_correlation_matrix#

class braintools.visualize.interactive_correlation_matrix(data, labels=None, method='pearson', title='Interactive Correlation Matrix', width=800, height=600, **kwargs)#

Create interactive correlation matrix heatmap using Plotly.

Parameters:
  • data (ndarray) – Data matrix of shape (samples, features).

  • labels (List[str] | None) – Feature labels.

  • method (str) – Correlation method: ‘pearson’, ‘spearman’.

  • title (str) – Plot title.

  • width (int) – Figure dimensions.

  • height (int) – Figure dimensions.

  • **kwargs – Additional arguments passed to Plotly heatmap.

Returns:

fig – Interactive plotly figure.

Return type:

plotly.graph_objects.Figure