def iterate(self, params, repetition, iteration):
    """
    For each iteration try to infer the object represented by the 'iteration'
    parameter returning the number of touches required to unambiguously
    classify the object.
    :param params: Specific parameters for this iteration. See 'experiments.cfg'
                   for list of parameters
    :param repetition: Current repetition
    :param iteration: Use the iteration to select the object to infer
    :return: number of touches required to unambiguously classify the object
    """
    objectToInfer = self.objects[iteration]
    stats = collections.defaultdict(list)
    touches = self.infer(objectToInfer, stats)
    results = {'touches': touches}
    results.update(stats)

    return results
def iterate ( self , params , repetition , iteration ) : objectToInfer = self . objects [ iteration ] stats = collections . defaultdict ( list ) touches = self . infer ( objectToInfer , stats ) results = { 'touches' : touches } results . update ( stats ) return results
For each iteration try to infer the object represented by the 'iteration'
    parameter returning the number of touches required to unambiguously
    classify the object.
    :param params: Specific parameters for this iteration. See 'experiments.cfg'
                   for list of parameters
    :param repetition: Current repetition
    :param iteration: Use the iteration to select the object to infer
    :return: number of touches required to unambiguously classify the object