So I have a random forest and I am trying to make a workflow for each decision tree in it.
One of the things I want is to get sample indices from the nodes in decision trees.
Is that possible? I am looking at the answer from: is there any way to get samples under each leaf of a decision tree?
But this gives me a decision pathway of all samples in Random Forest, not the subset sample of a Decision tree.
Is there a way to get a subset of samples that the decision tree picks in a random forest? Or is it not saved by the pipeline :)
What am I missing?