Python and Decision Tree Based Business Rule Checks

Say that you have a set of deterministic business rules in the administrator system that you want to verify. Rules can be based on numerical, logical, categorical, etc. Values, for example:

if product in ['x','y','z']: if age > 30: if amount < 100000: rule = 'A' elif product == 'a': rule = 'B' elif .... 

Possible checks can be based on a file with possible values ​​or a check that compares the decision tree as a whole, provided that you have the analysis in a specific format.

You can program these tests, but before starting something from scratch, I am looking for if there are some python packages that can help with such work or approach to such a problem.

+7
source share
1 answer

DecisionTree is a pure-Python implementation for building a decision tree from multidimensional learning data and then using the decision tree to classify future data.

+2
source

All Articles