Skip to content

Instantly share code, notes, and snippets.

@psinger
Created March 18, 2018 13:54
Show Gist options
  • Save psinger/1cb269be1ea12f5929ade270a0e93e83 to your computer and use it in GitHub Desktop.
Save psinger/1cb269be1ea12f5929ade270a0e93e83 to your computer and use it in GitHub Desktop.
h5 = tb.open_file('dot.h5', 'r')
a = csr_matrix((h5.root.data[:], h5.root.indices[:], h5.root.indptr[:]), shape=(l,n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment