Show&Tell: interactively generate classification business rules

Hi all,

I think this might be interesting to some of you: I added rule creator dashboard to my rule-estimator library.

This is a dash app that allows you to interactively create business rules (basically if-then statements) to generate predictions for a given dataset.

This is what people used to do before machine learning became popular. However, business rules have the advantage that they are often much easier to understand and communicate. Creating good business rules can be a challenge and that’s where my dashboard comes in.

You can:

  • work interactively with your data to create new business rules
  • add rules based on a single feature or multiple features at once using the parallel plot
  • get suggestions for good rules to try
  • inspect performance of the overall model and individual rules
  • export the rules to a scikit-learn compatible estimator
  • export to pickle or to a transparent and editable .yaml file

Inspired by Vincent Warmerdam’s CSVconf talk and human-learn library, this is basically a dash implementation of the ideas outlined there.

You can generate a dashboard for you own dataset using the rule-estimator library: GitHub - oegedijk/rule_estimator: A scikit-learn compatible estimator based on business-rules with interactive dashboard included

Deployed example can be found at: https://ruledashboarddemo.herokuapp.com

Vincent’s csvconf talk: Vincent Warmerdam - Human-Learn: Let's Draw Machine Learning Models and Train Humans Instead - YouTube

Link to demo mp4

7 Likes

This is really really cool I appreciate the extensive write up in GitHub - oegedijk/rule_estimator: A scikit-learn compatible estimator based on business-rules!

Highly recommend folks check out the app. Very impressive:

Thanks for the shoutouts on twitter and Linkedin!

1 Like

Rules to Create Reference Data Values. The definitions of the reference data tables that are classification schemes can themselves become business rules.

Thanks for the information keep sharing this type of post.

You can create any type of business rule to run when a record is displayed, inserted, updated, or deleted, or when a table is queried.

navyarmyccu