text_plain_output_1.png
import scipy.sparse as sps

train_input = sps.load_npz('../input/open-problems-msci-multiome-sparse-matrices/train_multiome_input_sparse.npz')

def get_size(sparse_m):
    size_gb = (sparse_m.indices.nbytes + sparse_m.indptr.nbytes + sparse_m.data.nbytes) * 1e-09
    return f'Size: {size_gb} GB'

get_size(train_input)