Language: Python · Sphere: programming · Category: Reasoning
Simple Decision Tree Classifier
A complete implementation of a decision tree classifier with information gain, prediction, and pruning capabilities.
When it runs, decision tree guarantees preds == truth; sum(preds) == 6; train_acc == 1.0 (proven by run).
Checkable constraints:
train_acc == 1.0preds == truthsum(preds) == 6acc_after >= acc_beforeacc_after == 1.0flat.predict([[9, 9], [0, 0]]) == [7, 7]
- Green-run: ✓ passes (re-run under the extractor's gate)
- Constraint strength: recovery (truth-pinned)
- Independent oracle: ✓ consensus — xlang (validator v1.9)
- Peer review: unreviewed
△ AURA Pattern Library — © Reality Optimizer