Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Z.todense() # Generate a dense matrix from Z, which is stored as a sparse matrix data-type
- Out[35]:
- matrix([[3, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1],
- [0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0],
- [0, 1, 1, 0, 0, 2, 0, 0, 0, 0, 1, 2],
- [0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0]], dtype=int64)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement