def average_repetitions(repetitions):
    """ Averages all the timing values for the repeated trainings """
    averages = {
         "ONE_TWO" : sum([diff["ONE_TWO"] for diff in repetitions]) / len(repetitions),
         "ONE_THREE" : sum([diff["ONE_THREE"] for diff in repetitions]) / len(repetitions),
         "ONE_FOUR" : sum([diff["ONE_FOUR"] for diff in repetitions]) / len(repetitions),
         "TWO_THREE" : sum([diff["TWO_THREE"] for diff in repetitions]) / len(repetitions),
         "TWO_FOUR" : sum([diff["TWO_FOUR"] for diff in repetitions]) / len(repetitions),
         "THREE_FOUR" : sum([diff["THREE_FOUR"] for diff in repetitions]) / len(repetitions),
         "first_sensor": repetitions[0]['first_sensor']
    }
    return averages