Skip to content

Create embeddings directly from an adjacency matrix (e.g. numpy.array or scipy.sparse)? #92

@dhimmel

Description

@dhimmel

I'm looking to create embeddings for the STRING protein-protein interaction database. In this notebook, I convert this network to scipy.sparse.csr_matrix and numpy.array formats. The network is big with 19,566 nodes and 11,759,454 (divide that in two for bidirectional edges).

It's easy to convert the adjacency matrix to network, e.g. with networkx.from_scipy_sparse_matrix. But this is time consuming and the resulting networkx graph takes up a lot of memory. So my question is whether there are any embedding methods that can directly take an adjacency matrix? If so, perhaps that would be computationally be more efficient than going through networkx.

Also any advice on what sort of hardware would be needed to operate on a graph of this size? Which methods are most efficient in terms of memory (and/or compute)? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions