Exemple #1
0
    def init_model(self):
        """Initializes two attributes of the model. Both attributes are
        dataframes. The first attribute represents difficulties of countries.
        The second attribute represents global knowledge of students.
        """
        self.places = tools.keydefaultdict(Place)
        self.users = tools.keydefaultdict(User)

        self.predictions = {}
Exemple #2
0
 def init_model(self):
     """Initializes attribute of the model that stores current
     knowledge of places for all students.
     """
     self.items = tools.keydefaultdict(
         lambda *args: Item(self.prior, *args)
     )
     self.predictions = {}