def evaluate(self, inference):
    'Evaluates the predicted pose.'
    self.reset_state()
    values = self.process_inference(inference)
    self.apply(values)
    angles = self.get_joints()
    self.calc_error(angles)
    return self.error
Evaluates the predicted pose.
def evaluate(self, inference):
    
    self.reset_state()
    values = self.process_inference(inference)
    self.apply(values)
    angles = self.get_joints()
    self.calc_error(angles)
    return self.error