I have built a M5 regression model tree using the train function of the caret
package. I am trying to extract the linear model coefficients
for each model of the tree.
The final model is called m5tune
. I tried to look into m5tune$finalModel
but I did not find it. The coeff()
function does not seem to work either...