> @agramfort I'll take a look at replacing the batch slices with np.array_split I will also look at refactoring the similar code the fit method to reflect which also uses batch slices. I was trying to replicate the behavior in the fit method for the partial fit test.

sounds good

> @ogrisel I can add a test for sparse data for partial_fit Would it also be appropriate to add a test for the fit method for sparse data? My guidance for the test for partial_fit was to replicate the results of the fit method when splitting the data into batches. How would I go about setting a good target for rbm on sparse data? Use an rbm of a separate library on the same data?

use small sparse data, convert to dense and check you get the same output.