def trim(self, t=None, run=None):
    '\n        Trims all runs of the Evaluator to the length specified by the threshold value t.\n\n        @param t: Threshold parameter or number of top-k documents to be considered.\n        @param run: If run is not None, only the provided run will be trimmed.\n        '
    if run:
        run = break_ties(run)
        if t:
            trim(run, thresh=t)
        else:
            trim(run)
        return
    if self.run_b_orig:
        self.run_b_orig = break_ties(self.run_b_orig)
        if t:
            trim(self.run_b_orig, thresh=t)
        else:
            trim(self.run_b_orig)
    if self.run_a_orig:
        self.run_a_orig = break_ties(self.run_a_orig)
        if t:
            trim(self.run_a_orig, thresh=t)
        else:
            trim(self.run_a_orig)
    if self.run_b_rep:
        self.run_b_rep = break_ties(self.run_b_rep)
        if t:
            trim(self.run_b_rep, thresh=t)
        else:
            trim(self.run_b_rep)
    if self.run_a_rep:
        self.run_a_rep = break_ties(self.run_a_rep)
        if t:
            trim(self.run_a_rep, thresh=t)
        else:
            trim(self.run_a_rep)
Trims all runs of the Evaluator to the length specified by the threshold value t.

@param t: Threshold parameter or number of top-k documents to be considered.
@param run: If run is not None, only the provided run will be trimmed.
def trim(self, t=None, run=None):
    '\n        Trims all runs of the Evaluator to the length specified by the threshold value t.\n\n        @param t: Threshold parameter or number of top-k documents to be considered.\n        @param run: If run is not None, only the provided run will be trimmed.\n        '
    if run:
        run = break_ties(run)
        if t:
            trim(run, thresh=t)
        else:
            trim(run)
        return
    if self.run_b_orig:
        self.run_b_orig = break_ties(self.run_b_orig)
        if t:
            trim(self.run_b_orig, thresh=t)
        else:
            trim(self.run_b_orig)
    if self.run_a_orig:
        self.run_a_orig = break_ties(self.run_a_orig)
        if t:
            trim(self.run_a_orig, thresh=t)
        else:
            trim(self.run_a_orig)
    if self.run_b_rep:
        self.run_b_rep = break_ties(self.run_b_rep)
        if t:
            trim(self.run_b_rep, thresh=t)
        else:
            trim(self.run_b_rep)
    if self.run_a_rep:
        self.run_a_rep = break_ties(self.run_a_rep)
        if t:
            trim(self.run_a_rep, thresh=t)
        else:
            trim(self.run_a_rep)