def get_lastfm():
filename = os.path.join(_download.LOCAL_CACHE_DIR, "<STR_LIT>")<EOL>if not os.path.isfile(filename):<EOL><INDENT>log.info("<STR_LIT>", filename)<EOL>_download.download_file(URL, filename)<EOL><DEDENT>else:<EOL><INDENT>log.info("<STR_LIT>", filename)<EOL><DEDENT>with h5py.File(filename, '<STR_LIT:r>') as f:<EOL><INDENT>m = f.get('<STR_LIT>')<EOL>plays = csr_matrix((m.get('<STR_LIT:data>'), m.get('<STR_LIT>'), m.get('<STR_LIT>')))<EOL>return np.array(f['<STR_LIT>']), np.array(f['<STR_LIT:user>']), plays<EOL><DEDENT>
Returns the lastfm360k dataset, downloading locally if necessary.
    Returns a tuple of (artistids, userids, plays) where plays is a CSR matrix