Gowalla
- class dhg.data.Gowalla(data_root=None)[source]
Bases:
dhg.data.base.BaseData
The Gowalla dataset is collected for user-item recommendation task. Locations are viewed as items. The full dataset can be found in this website.
The content of the Gowalla dataset includes the following:
num_users
: The number of users: \(29,858\).num_items
: The number of items: \(40,981\).num_interactions
: The number of interactions: \(1,027,370\).train_adj_list
: The train adjacency list.test_adj_list
: The test adjacency list.
Note
The first item of each line in the
adj_list
is the user id, and the rest is the item id.- Parameters
data_root (
str
, optional) – Thedata_root
has stored the data. If set toNone
, this function will auto-download from server and save into the default direction~/.dhg/datasets/
. Defaults toNone
.