我很想知道如何将叶子映射到它的原始X和y . 我试图使用Print the decision path of a specific sample in a random forest classifier,我无法理解如何映射

children_left_ = [t.tree_.children_left for t in estimator.estimators_]
children_right_ = [t.tree_.children_right for t in estimator.estimators_]

它的原始X和Y.