I have a csr_matrix objects calculate from TfidfTransformer.transform. I want to serialize or and unserialize:
tf_csrmtrix = TfidfTransformer.transform(data)
json.dumps(tf_csrmtrix)
TypeError: Object of type 'csr_matrix' is not JSON serializable
How can I work this king of data: csr matrices?