[scikit-learn] obtaining intervals from the decision tree struture

2023-03-07 Thread Sole Galli via scikit-learn
Hello, I would like to obtain final intervals from the decision tree structure. I am not interested in every node, just the limits that take a sample to a final decision /leaf. For example, if the tree structure is this one: |--- feature_0 <= 0.08 | |--- class: 0 |--- feature_0 > 0.08 | |

Re: [scikit-learn] obtaining intervals from the decision tree struture

2023-03-07 Thread Guillaume LemaƮtre
Hi Sole, You can use `apply` on the training `X` to get the leaf where the sample will fall in. Then a groupby should allow you to get the statistic that you want. Cheers, -- Guillaume Lemaitre Scikit-learn @ Inria Foundation https://glemaitre.github.io/ > On 7 Mar 2023, at 15:53, Sole Galli vi

[scikit-learn] scikit-learn monthly developer meeting: Monday March 27, 2023

2023-03-07 Thread Thomas J. Fan
Dear all, The scikit-learn developer monthly meeting will take place on Monday March 27 at 11:00 UTC. - Video call link: https://meet.google.com/gmn-acub-mrr - Meeting notes / agenda: https://hackmd.io/0yokz72CTZSny8y3Re648Q - Local times: https://www.timeanddate.com/worldclock/meetingdetails.htm