def _mutate_individual(self, indiv):
    position_to_mutate = np.random.randint(len(indiv))
    sp_list = self.search_space[self.action_list[position_to_mutate]]
    indiv[position_to_mutate] = np.random.randint(0, len(sp_list))
    return indiv
def _mutate_individual(self, indiv):
    position_to_mutate = np.random.randint(len(indiv))
    sp_list = self.search_space[self.action_list[position_to_mutate]]
    indiv[position_to_mutate] = np.random.randint(0, len(sp_list))
    return indiv