I have a model which have for each sample 8 outputs. I would like to compute for each sample pearson correlation and then compute the mean of the pearsons values of the samples.