def get_total_training_phases(self):
    '\n        Returns the total number of "train" phases in the task\n        '
    num_training_phases = 0
    for phase in self.phases:
        if (phase['train'] is True):
            num_training_phases += 1
    return num_training_phases
Returns the total number of "train" phases in the task
def get_total_training_phases(self):
    '\n        \n        '
    num_training_phases = 0
    for phase in self.phases:
        if (phase['train'] is True):
            num_training_phases += 1
    return num_training_phases