Does anyone has/knows a library that extracts a sklearn decision tree into rules/present each rule with its number of samples? The idea is present small rules that have an impact on the likelihood of a customer returning and time between purchases.
I know you can plot a tree like this. https://scikit-learn.org/stable/modules/generated/sklearn.tree.plot_tree.html
I presume there would be a way to extract the rules in a similar way?
Reply
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.