Rules versus learning
Switch between hand-written if-then rules and a learned model, then auto-play to see how each handles five tricky dog edge cases.
Two tabs compare telling dogs from non-dogs with hand-written rules and with machine learning. At the default Rule-Based tab, a small decision tree asks about four legs, fur and barking, and the first edge case, a 3-legged dog, is wrongly labelled NOT DOG. Playing through shows the rules fail all five edge cases, while the machine learning tab reaches 97 percent training accuracy and gets all five right.