from abc import abstractmethod
[docs]class AbstractDataset(metaclass=ForceRequiredAttributeDefinitionMeta):
required_attributes = [
"config", # comment
"args", # comment
"kwargs", # comment
"users", # comment
"items", # comment
"num_users", # comment
"num_items", # comment
"private_users", # comment
"public_users", # comment
"private_items", # comment
"public_items", # comment
"transactions", # comment
"train_dict", # comment
"i_train_dict", # comment
"sp_i_train", # comment
"test_dict" # comment
]
[docs] @abstractmethod
def build_dict(self):
raise NotImplementedError
[docs] @abstractmethod
def build_sparse(self, *args):
raise NotImplementedError
[docs] @abstractmethod
def get_test(self, *args):
raise NotImplementedError