I would like to build a metric, to calculate the variance of each query\'s precision. E.g. I have a matrix as "y_true" and another matrix as "y_pred":