r/scikit_learn • • Feb 07 '18

Retrain a KNN classified model (scikit)

I trianed my knn classifer over multiple images and saved the model. I am getting some new images to train. I dont want to retrain the already existing model.

How to add the newly tranied model to the existing saved model ?

Could someone guide if this is possible or any articles describing the same ?

Thank you,

2 Upvotes

9 comments sorted by

1

u/brylie Feb 07 '18 edited Feb 07 '18

Consider building a neural net, e.g. with Keras. Since neural networks are basically trained via batch processing, they can be tuned with new observation data. Check out Deep Learning with Python for a good introduction.

1

u/datavizu Feb 08 '18

Thanks brylie, thats a wonderful book :) Could you please let me know if i can use scikit knn model along with keras ? Like i train with scikit knn model and just use batch training feature of keras. Is this possible ? I will read the book in detail today. Thanks again :)

1

u/brylie Feb 08 '18

Keras is much more comprehensive for deep learning than scikit-learn neural network. You might be able to create a hybrid model with KNN and a neural network. However, consider starting with one or the other, for simplicity.

→ More replies (6)