Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating a fitted sklearn Random Forest Model

While running in production, is it possible to update a trained model with new data without re-fitting the model? I see you can use the warm_start parameter to enable adding trees to the model; however, I am looking for a way to update the existing trees with the incoming data.

like image 602
jackalack Avatar asked Oct 17 '22 19:10

jackalack


1 Answers

As far as I can tell, this is not possible with sklearn (as they seem to implement the classical Breiman algorithm). However, you might have a look at Mondrian Forests (https://papers.nips.cc/paper/5234-mondrian-forests-efficient-online-random-forests.pdf, python implementation: https://github.com/balajiln/mondrianforest).

like image 118
TobiasWeis Avatar answered Oct 21 '22 02:10

TobiasWeis