keepset

LastFM (HGB)

Bipartite user-artist listening network from Last.fm, from the HetRec 2011 release. Users are linked to the artists they listened to, and each edge's weight is how many times the user listened to the artist.

npx keepset fetch lastfm-hgb

Nodes
19,524
Edges
92,834
Size
2.5 MiB

Fetch and preview this dataset on this page, or download the result as JSON. The command line fetches it without a browser.

Overview

Idlastfm-hgb
Categorygraph/v1
Kindgraph
DomainMusic recommendation network
Tagsheterogeneous
LicenceLast.fm HetRec 2011 data (non-commercial use)
Cataloguekeepset 1.33.0

Sources and provenance

#URLStatusRetrievedRead by recipePinned snapshotSHA-256
0https://files.grouplens.org/datasets/hetrec2011/hetrec2011-lastfm-2k.ziplive2026-03-03yes20260917053054raw6738f4819566

Citations

Recipe

Source#0
Archivezip
Memberuser_artists.dat
Parser format"user-item-counts"
Parser encoding"utf-8"
Parser delimiter"tab"
Parser skipLines1
Parser itemType"artist"

Crosswalk

keepset/typed-weighted to graph/v1, as a crossmap crosswalk.

RuleFromToDirection
movemetametaboth
movenodes[].idnodes[].idboth
moveedges[].sourceedges[].sourceboth
moveedges[].targetedges[].targetboth
movenodes[].typenodes[].typeboth
moveedges[].typeedges[].typeboth
moveedges[].weightedges[].weightboth

Expected counts

Edges92,834
Nodes19,524

Properties

Components8
Connectedno
Cyclicno
Density0.0005934
Directedyes
Download bytes2.5 MiB
Edge types1
Heterogeneousyes
Multigraphno
Node types2
Raw bytes0 B
Self loopsno
Weightedyes