'Clear the evaluation metrics and reset the EvaluationMetrics object.'

def clear(self):

    self.sum_hit_at_one = 0.0
    self.sum_perr = 0.0
    self.sum_loss = 0.0
    self.map_calculator.clear()
    self.global_ap_calculator.clear()
    self.num_examples = 0
