I'm training a Scikit model but it seems that in all examples, they call the fit
method on the entire training set. What I want to do however is call it per sample (i.e. looping through all samples). This has multiple reasons but most importantly are
- MemoryError with my huge trainingset
- Training with new data instead of recompiling entire model
Yet when I loop and call the fit model self.gnb = self.gnb.fit(sample.data,labels)
and then debug, the gnb model only has one class (namely the last one). So how should I approach this?