tf.keras.ops.corrcoef

Compute the Pearson correlation coefficient matrix.

x A 2D tensor of shape (N, D), where N is the number of variables and D is the number of observations.

A tensor of shape (N, N) representing the correlation matrix.