# Can I do incremental learning with the sklearn implementation of Linear Discriminant Analysis

I have a large number of pictures that I would like to use LDA on. However, it requires too much memory, so I was wondering if it would be possible to make the learning incremental, using a sklearn implementation, or maybe another library?

Yes, you can. Instead of using lda.fit(...)or lda.fit_transfrom(...) you basically just need to call lda.partial_fit(...). Here you take a mini-batch to update your model.