zeeguu/core/word_scheduling/arts/tools/algo_parameter_approximator.py
def append_new_exercise(self, iteration):
        """
        Add a new exercise to the exercise log
        :param iteration: The current number of iteration / learning session
        :return: The exercise
        """
        random_outcome = ExerciseOutcome(
            ExerciseOutcome.CORRECT) if random.random() < self.prob_correct else ExerciseOutcome(ExerciseOutcome.WRONG)
        new_exercise = Exercise(random_outcome, self.exercise_source, self.avg_solving_speed, datetime.datetime.now())
        new_exercise.id = iteration
        self.exercises.append(new_exercise)
        self.exercises_iteration.append(iteration)
        return new_exercise

        Add a new exercise to the exercise log
        :param iteration: The current number of iteration / learning session
        :return: The exercise
        
Add a new exercise to the exercise log
Add a new exercise to the exercise log
def append_new_exercise(self, iteration):
        random_outcome = ExerciseOutcome(
            ExerciseOutcome.CORRECT) if random.random() < self.prob_correct else ExerciseOutcome(ExerciseOutcome.WRONG)
        new_exercise = Exercise(random_outcome, self.exercise_source, self.avg_solving_speed, datetime.datetime.now())
        new_exercise.id = iteration
        self.exercises.append(new_exercise)
        self.exercises_iteration.append(iteration)
        return new_exercise
def append_new_exercise ( self , iteration ) : random_outcome = ExerciseOutcome ( ExerciseOutcome . CORRECT ) if random . random ( ) < self . prob_correct else ExerciseOutcome ( ExerciseOutcome . WRONG ) new_exercise = Exercise ( random_outcome , self . exercise_source , self . avg_solving_speed , datetime . datetime . now ( ) ) new_exercise . id = iteration self . exercises . append ( new_exercise ) self . exercises_iteration . append ( iteration ) return new_exercise
Add a new exercise to the exercise log
Add a new exercise to the exercise log
"""
        Add a new exercise to the exercise log
        :param iteration: The current number of iteration / learning session
        :return: The exercise
        """
None
self
iteration
The current number of iteration / learning session
The current number of iteration / learning session