/
githubmirror
/
Agent4Rec
Обзор
Документация
Войти
/
githubmirror
/
Agent4Rec
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
simulation/base/abstract_memory.py
30 строк
776 B
chenyuxin1999
init repo
12 окт 2023, 05:43
12 окт 2023, 05:43
9a08cc7
Код
Авторство
О чём код?
class abstract_memory: def __init__(self, args): super().__init__() self.args = args self.memory_size = 0 def add_memory(self): """ Add one new memory to the memory bank """ raise NotImplementedError def time_weighting(self): """ Weighting the memory according to the time """ raise NotImplementedError def importance_weighting(self): """ Weighting the importance of memory according to the results of recommendation and the personal taste """ raise NotImplementedError def reflect(self): """ Generate a high level understanding of previous memories """ raise NotImplementedError