def METHOD_NAME(self, attribute: str):
    cmat = self.cm_dict[attribute]
    num_attribute = cmat.shape[0]
    precision = []
    for i in range(num_attribute):
        precision.append(cmat[i, i] / cmat[:, i].sum())
    return np.nanmean(precision)