def METHOD_NAME(self,file_path):
    # Given a file, return its average effectiveness
    # for each metric in each fold
    param_performance_list = {}
    for fold_id in range(self.fold):
        param_performance_list[fold_id] = {}
    with open(file_path) as f:
        for line in f:
            line = line.strip()
            if line:
                row = line.split()
                metric = row[0]
                if metric not in param_performance_list[0]:
                    for fold_id in param_performance_list:
                        param_performance_list[fold_id][metric] = []
                qid = row[1]
                try:
                    value = float(row[2])
                except:
                    self.logger.error('Cannot parse %s' %(row[2]))
                    continue
                else:
                    if qid != 'all':
                        # compute fold id base on qid
                        fold_id = self._compute_fold_id(qid)
                        param_performance_list[fold_id][metric].append(value)
    param_avg_performances = {}
    for metric in param_performance_list[0].keys():
        param_avg_performances[metric] = {}
        for fold_id in param_performance_list:
            param_avg_performances[metric][fold_id] = round(sum(param_performance_list[fold_id][metric])/len(param_performance_list[fold_id][metric]), 4)
    return param_avg_performances