How to give a tree to the factory as a training tree when using Regression?

How to give a tree to the factory as a training tree when using Regression?
I didn’t find the option for doing that

I’m sorry, I didn’t see the code clearly, solution like below

dataloader->AddRegressionTree(tTrain,1.0,Types::kTraining);
1 Like