caesar0301 / treelib

An efficient implementation of tree data structure in python 2/3.
http://treelib.readthedocs.io/en/latest/
Other
801 stars 185 forks source link

[feature request] Method for prune tree or subsample tree by a list of node name? #114

Open y9c opened 5 years ago

y9c commented 5 years ago
                                 /-1.0, A
                     /1.0, D1.0, C
               /1.0, F           \-1.0, B
              |     |
         /1.0, H     \-1.0, E
        |     |
-0.0, root     \-1.0, G
        |
        |      /-1.0, I
         \1.0, K
               \-1.0, J

---

         /-1.0, G
-1.0, root
         \-4.0, B
leonardbinet commented 4 years ago

@yech1990 I understand the title, but I'm not sure to understand your example, could you provide more details about it?