How to Extract Samples from a Specific Subtree in DecisionTreeRegressor?

55 Views Asked by At

Suppose I want to get the first left child node tree with depth of 1 substree from the resulting decision regression tree. How to accomplish this?

An example of such extraction is depicted here extract subtree

From what I notice in DecisionTreeRegressor's documentation, there are no methods allowing such extraction but rather all what is allowed is to get decision paths and to browse according to those paths (to potentially obtain the involved node samples)

0

There are 0 best solutions below