Since my feature matrix was too large, I used np.savez to to compress it. The resulting npy file values' as follows: indptr: 1, 21, 201, 219, 262, 285 ... indices: 125, 6, 921, 493, 218, 824 ...
I think if an element of indices is lower than the previous element, we are in next row due to csr data read direction. Specifically, in indices, 6 is lower than 125. So the second data should be in the next row but indptr states that the second row start with the 21st data. What is the possible problem?