torch_geometric.datasets.HM
- class HM(root: str, use_all_tables_as_node_types: bool = False, transform: Optional[Callable] = None, pre_transform: Optional[Callable] = None, force_reload: bool = False)[source]
Bases:
InMemoryDataset
The heterogeneous H&M dataset from the Kaggle H&M Personalized Fashion Recommendations challenge. The task is to develop product recommendations based on data from previous transactions, as well as from customer and product meta data.
- Parameters:
root (str) – Root directory where the dataset should be saved.
use_all_tables_as_node_types (bool, optional) – If set to
True
, will use the transaction table as a distinct node type. (default:False
)transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.HeteroData
object and returns a transformed version. The data object will be transformed before every access. (default:None
)pre_transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.HeteroData
object and returns a transformed version. The data object will be transformed before being saved to disk. (default:None
)force_reload (bool, optional) – Whether to re-process the dataset. (default:
False
)