zeeguu/core/word_scheduling/arts/tools/algo_parameter_approximator.py
def calc_algorithm_stats(self, verbose=True):
        """
        Calculate the parameter stats for the algorithm
        :param verbose: Whether additional information is printed
        :return: [words_in_parallel_mean, repetition_correct_mean, repetition_incorrect_mean]
         words_in_parallel_mean = mean of words that where learned in parallel
         repetition_correct_mean = mean of how many other words are repeated
          before the correctly answered words is repeated (spacing)
         repetition_incorrect_mean = mean of how many other words are repeated
          before incorrectly answered words is repeated (spacing)
        """
        if len(self.bookmarks) == 0:
            return None

        # reset random seed
        random.seed(0)

        bookmark_exercises = self.__run_algorithm_on_bookmarks(self.bookmarks, verbose=verbose)
        return self.__calc_algorithm_result_stats(bookmark_exercises, verbose=verbose)

        Calculate the parameter stats for the algorithm
        :param verbose: Whether additional information is printed
        :return: [words_in_parallel_mean, repetition_correct_mean, repetition_incorrect_mean]
         words_in_parallel_mean = mean of words that where learned in parallel
         repetition_correct_mean = mean of how many other words are repeated
          before the correctly answered words is repeated (spacing)
         repetition_incorrect_mean = mean of how many other words are repeated
          before incorrectly answered words is repeated (spacing)
        
Calculate the parameter stats for the algorithm
Calculate the parameter stats for the algorithm
def calc_algorithm_stats(self, verbose=True):
        if len(self.bookmarks) == 0:
            return None
        random.seed(0)
        bookmark_exercises = self.__run_algorithm_on_bookmarks(self.bookmarks, verbose=verbose)
        return self.__calc_algorithm_result_stats(bookmark_exercises, verbose=verbose)
def calc_algorithm_stats ( self , verbose = True ) : if len ( self . bookmarks ) == 0 : return None random . seed ( 0 ) bookmark_exercises = self . __run_algorithm_on_bookmarks ( self . bookmarks , verbose = verbose ) return self . __calc_algorithm_result_stats ( bookmark_exercises , verbose = verbose )
Calculate the parameter stats for the algorithm
Calculate the parameter stats for the algorithm
"""
        Calculate the parameter stats for the algorithm
        :param verbose: Whether additional information is printed
        :return: [words_in_parallel_mean, repetition_correct_mean, repetition_incorrect_mean]
         words_in_parallel_mean = mean of words that where learned in parallel
         repetition_correct_mean = mean of how many other words are repeated
          before the correctly answered words is repeated (spacing)
         repetition_incorrect_mean = mean of how many other words are repeated
          before incorrectly answered words is repeated (spacing)
        """ # reset random seed
[words_in_parallel_mean, repetition_correct_mean, repetition_incorrect_mean]
words_in_parallel_mean = mean of words that where learned in parallel
repetition_correct_mean = mean of how many other words are repeated
before the correctly answered words is repeated (spacing)
repetition_incorrect_mean = mean of how many other words are repeated
before incorrectly answered words is repeated (spacing)
[ words_in_parallel_mean repetition_correct_mean repetition_incorrect_mean ] words_in_parallel_mean = mean of words that where learned in parallel repetition_correct_mean = mean of how many other words are repeated before the correctly answered words is repeated ( spacing ) repetition_incorrect_mean = mean of how many other words are repeated before incorrectly answered words is repeated ( spacing )
self
verbose
Whether additional information is printed
Whether additional information is printed