added support of csr_matrix to rbm