I am learning multi label classification and trying to implement the tfidf tutorial from scikit learning. I am dealing with a text corpus to calculate its tf-idf score. I am
For this purpose, proper use of the scipy sparse matrix types is essential scipy.sparse. In this case scipy.sparse.lil_matrix it's ideal, whose "data" attribute stores an np.array of lists that represent the column values. A brief script follows
arrays_of_list = matriz.tolil().data
list_of_list = arrays_of_list.tolist()