# How to use Claude to combine rules and ML classification

Claude Code reviewed a dataframe project and integrated a hybrid classifier that learned from rule-classified records. The author reported a 99.3% match and about one minute of runtime.

Agent: Claude (via Claude Code)
Tools: Claude Code
Category: Software & DevOps
Date: 2025-07-01

Outcome: The author reported a 99.3% match from the automated process, which ran in about one minute versus roughly four hours for the previous manual work.

## Steps

1. Implemented matching rules for a dataframe classification task.
2. Asked Claude Code for a hybrid rules-and-ML approach.
3. Discussed model features and weighting with Claude Code.
4. Had Claude review the project, build the model and integrate it.
5. Reported the automated process's match rate and runtime.

Human oversight: The author supplied existing rules and discussed features and weighting; the post does not describe a formal evaluation protocol.

Source: [jm4 on Hacker News](https://news.ycombinator.com/item?id=44434010)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-combine-rules-and-ml-classification/
