Build a tree using a dataframe #1175
-
Hi I'm currently trying to work with two tree models at the same time (two HoeffdingAdaptiveTreeRegressor to be precise), one would be training with the new instances that arrive from a streaming and the other one would be making predictions that are requested. After a certain time, I would like to update the predicting model with the parameters of the training model but I don't know if there is any way to do that. I've searched in the API references and found the to_dataframe method, but is there any way to use this data frame to build a new tree? Something like a to_tree method that recives a dataframe and returns a new tree. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hey there! The Could you not simply replace the model using the predicting_model = training_model.clone() |
Beta Was this translation helpful? Give feedback.
Hey there!
The
to_dataframe
method is really just for introspection. At least, that was our intention. We haven't yet seen a lot of use cases for building a tree from a given structure, but I'll keep it in mind.Could you not simply replace the model using the
clone
method? Something like this: